blob: 7a2c6e91f4141fc4cf9eee07d76f5d22a16b9247 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef android_hardware_gnss_V1_0_GnssDebug_H_
18#define android_hardware_gnss_V1_0_GnssDebug_H_
19
20#include <android/hardware/gnss/1.0/IGnssDebug.h>
21#include <hidl/Status.h>
22#include <hardware/gps.h>
23#include <hardware/gps_mtk.h>
24
25namespace android {
26namespace hardware {
27namespace gnss {
28namespace V1_0 {
29namespace implementation {
30
31using ::android::hardware::gnss::V1_0::IGnssDebug;
32using ::android::hardware::Return;
33using ::android::hardware::Void;
34using ::android::hardware::hidl_vec;
35using ::android::hardware::hidl_string;
36using ::android::sp;
37
38/* Interface for GNSS Debug support. */
39struct GnssDebug : public IGnssDebug {
40 GnssDebug(const GpsDebugInterface_ext* gpsDebugIface);
41
42 /*
43 * Methods from ::android::hardware::gnss::V1_0::IGnssDebug follow.
44 * These declarations were generated from IGnssDebug.hal.
45 */
46 Return<void> getDebugData(getDebugData_cb _hidl_cb) override;
47
48 private:
49 /*
50 * Constant added for backward compatibility to conventional GPS Hals which
51 * returned a debug string.
52 */
53 const GpsDebugInterface_ext* mGnssDebugIface = nullptr;
54};
55
56} // namespace implementation
57} // namespace V1_0
58} // namespace gnss
59} // namespace hardware
60} // namespace android
61
62#endif // android_hardware_gnss_V1_0_GnssDebug_H_