Michael Bestas | 3a0209e | 2023-05-04 01:15:47 +0300 | [diff] [blame^] | 1 | /* |
| 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 | |
| 21 | #include <android/hardware/gnss/1.0/IGnssDebug.h> |
| 22 | #include <hidl/Status.h> |
| 23 | |
| 24 | namespace android { |
| 25 | namespace hardware { |
| 26 | namespace gnss { |
| 27 | namespace V1_0 { |
| 28 | namespace implementation { |
| 29 | |
| 30 | using ::android::hardware::gnss::V1_0::IGnssDebug; |
| 31 | using ::android::hardware::Return; |
| 32 | using ::android::hardware::Void; |
| 33 | using ::android::hardware::hidl_vec; |
| 34 | using ::android::hardware::hidl_string; |
| 35 | using ::android::sp; |
| 36 | |
| 37 | /* Interface for GNSS Debug support. */ |
| 38 | struct Gnss; |
| 39 | struct GnssDebug : public IGnssDebug { |
| 40 | GnssDebug(Gnss* gnss); |
| 41 | ~GnssDebug() {}; |
| 42 | |
| 43 | /* |
| 44 | * Methods from ::android::hardware::gnss::V1_0::IGnssDebug follow. |
| 45 | * These declarations were generated from IGnssDebug.hal. |
| 46 | */ |
| 47 | Return<void> getDebugData(getDebugData_cb _hidl_cb) override; |
| 48 | |
| 49 | private: |
| 50 | Gnss* mGnss = nullptr; |
| 51 | }; |
| 52 | |
| 53 | } // namespace implementation |
| 54 | } // namespace V1_0 |
| 55 | } // namespace gnss |
| 56 | } // namespace hardware |
| 57 | } // namespace android |
| 58 | |
| 59 | #endif // ANDROID_HARDWARE_GNSS_V1_0_GNSSDEBUG_H |