diff options
author | Baili Feng <bailif@codeaurora.org> | 2018-01-08 16:21:29 +0800 |
---|---|---|
committer | Baili Feng <bailif@codeaurora.org> | 2018-04-10 08:24:34 +0800 |
commit | d856a9414d745634c9dff7650a4d3dc48b8563f0 (patch) | |
tree | 5a596bcff98c58d78025c40170f6bddb7888c0f7 /android/GnssConfiguration.h | |
parent | ab95d2dc2e128793d6616f65916e40d25a82cedd (diff) | |
download | gps-d856a9414d745634c9dff7650a4d3dc48b8563f0.tar.gz |
hidl gnss hal 1.1 implementation
Implement new apis for IGnss 1.1
Change-Id: I2c98c32355f6d9681d51b709697e49ec735fe1cf
CRs-fixed: 2133458
Diffstat (limited to 'android/GnssConfiguration.h')
-rw-r--r-- | android/GnssConfiguration.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/android/GnssConfiguration.h b/android/GnssConfiguration.h index f9ea423..f46f607 100644 --- a/android/GnssConfiguration.h +++ b/android/GnssConfiguration.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2017, The Linux Foundation. All rights reserved. + * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved. * Not a Contribution */ @@ -22,16 +22,16 @@ #ifndef ANDROID_HARDWARE_GNSS_V1_1_GNSSCONFIGURATION_H #define ANDROID_HARDWARE_GNSS_V1_1_GNSSCONFIGURATION_H -#include <android/hardware/gnss/1.0/IGnssConfiguration.h> +#include <android/hardware/gnss/1.1/IGnssConfiguration.h> #include <hidl/Status.h> namespace android { namespace hardware { namespace gnss { -namespace V1_0 { +namespace V1_1 { namespace implementation { -using ::android::hardware::gnss::V1_0::IGnssConfiguration; +using ::android::hardware::gnss::V1_1::IGnssConfiguration; using ::android::hardware::Return; using ::android::hardware::Void; using ::android::hardware::hidl_vec; @@ -58,12 +58,16 @@ struct GnssConfiguration : public IGnssConfiguration { Return<bool> setEmergencySuplPdn(bool enable) override; Return<bool> setGpsLock(uint8_t lock) override; + // Methods from ::android::hardware::gnss::V1_1::IGnssConfiguration follow. + Return<bool> setBlacklist( + const hidl_vec<GnssConfiguration::BlacklistedSource>& blacklist) override; + private: Gnss* mGnss = nullptr; }; } // namespace implementation -} // namespace V1_0 +} // namespace V1_1 } // namespace gnss } // namespace hardware } // namespace android |