blob: 8d75beaf56349c2ce0d94dc816578ff04661e85e [file] [log] [blame]
Michael Bestas3a0209e2023-05-04 01:15:47 +03001/*
2 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
3 * Not a Contribution
4 */
5/*
6 * Copyright (C) 2016 The Android Open Source Project
7 *
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 */
20
21#ifndef ANDROID_HARDWARE_GNSS_V2_0_GNSSDEBUG_H
22#define ANDROID_HARDWARE_GNSS_V2_0_GNSSDEBUG_H
23
24
25#include <android/hardware/gnss/2.0/IGnssDebug.h>
26#include <hidl/Status.h>
27
28namespace android {
29namespace hardware {
30namespace gnss {
31namespace V2_0 {
32namespace implementation {
33
34using ::android::hardware::gnss::V2_0::IGnssDebug;
35using ::android::hardware::Return;
36using ::android::hardware::Void;
37using ::android::hardware::hidl_vec;
38using ::android::hardware::hidl_string;
39using ::android::sp;
40
41/* Interface for GNSS Debug support. */
42struct Gnss;
43struct GnssDebug : public IGnssDebug {
44 GnssDebug(Gnss* gnss);
45 ~GnssDebug() {};
46
47 // Methods from ::android::hardware::gnss::V1_0::IGnssDebug follow
48 Return<void> getDebugData(getDebugData_cb _hidl_cb) override;
49 // Methods from ::android::hardware::gnss::V2_0::IGnssDebug follow.
50 Return<void> getDebugData_2_0(getDebugData_2_0_cb _hidl_cb) override;
51
52private:
53 Gnss* mGnss = nullptr;
54};
55
56} // namespace implementation
57} // namespace V2_0
58} // namespace gnss
59} // namespace hardware
60} // namespace android
61
62#endif // ANDROID_HARDWARE_GNSS_V2_0_GNSSDEBUG_H