Yu-Han Yang | 73f16ad | 2018-02-24 10:05:32 -0800 | [diff] [blame] | 1 | #ifndef ANDROID_HARDWARE_GNSS_V1_1_GNSSCONFIGURATION_H |
| 2 | #define ANDROID_HARDWARE_GNSS_V1_1_GNSSCONFIGURATION_H |
| 3 | |
| 4 | #include <android/hardware/gnss/1.1/IGnssConfiguration.h> |
| 5 | #include <hidl/MQDescriptor.h> |
| 6 | #include <hidl/Status.h> |
| 7 | |
| 8 | namespace android { |
| 9 | namespace hardware { |
| 10 | namespace gnss { |
| 11 | namespace V1_1 { |
| 12 | namespace implementation { |
| 13 | |
| 14 | using ::android::hardware::hidl_array; |
| 15 | using ::android::hardware::hidl_memory; |
| 16 | using ::android::hardware::hidl_string; |
| 17 | using ::android::hardware::hidl_vec; |
| 18 | using ::android::hardware::Return; |
| 19 | using ::android::hardware::Void; |
| 20 | using ::android::sp; |
| 21 | |
| 22 | struct GnssConfiguration : public IGnssConfiguration { |
| 23 | // Methods from ::android::hardware::gnss::V1_0::IGnssConfiguration follow. |
| 24 | Return<bool> setSuplEs(bool enabled) override; |
| 25 | Return<bool> setSuplVersion(uint32_t version) override; |
| 26 | Return<bool> setSuplMode(hidl_bitfield<SuplMode> mode) override; |
| 27 | Return<bool> setGpsLock(hidl_bitfield<GpsLock> lock) override; |
| 28 | Return<bool> setLppProfile(hidl_bitfield<LppProfile> lppProfile) override; |
| 29 | Return<bool> setGlonassPositioningProtocol(hidl_bitfield<GlonassPosProtocol> protocol) override; |
| 30 | Return<bool> setEmergencySuplPdn(bool enable) override; |
| 31 | |
| 32 | // Methods from ::android::hardware::gnss::V1_1::IGnssConfiguration follow. |
| 33 | Return<bool> setBlacklist( |
| 34 | const hidl_vec<::android::hardware::gnss::V1_1::IGnssConfiguration::BlacklistedSource>& |
| 35 | blacklist) override; |
| 36 | |
| 37 | // Methods from ::android::hidl::base::V1_0::IBase follow. |
| 38 | }; |
| 39 | |
| 40 | } // namespace implementation |
| 41 | } // namespace V1_1 |
| 42 | } // namespace gnss |
| 43 | } // namespace hardware |
| 44 | } // namespace android |
| 45 | |
| 46 | #endif // ANDROID_HARDWARE_GNSS_V1_1_GNSSCONFIGURATION_H |