From 3f963bb897e8c5f8c633af50c96bdb4e68a6c5a8 Mon Sep 17 00:00:00 2001 From: Davide Garberi Date: Thu, 6 Dec 2018 20:47:47 +0100 Subject: msm8996-common: gps: Switch back to 89xx tags * Basically just remove the gnss 1.1 support * Tag: LA.UM.7.6.r1-03100-89xx.0 Change-Id: Ie52463e60c6f6bb127e736fe3e23a8b75c044a3a Signed-off-by: Davide Garberi --- gps/android/GnssMeasurement.cpp | 34 ++-------------------------------- 1 file changed, 2 insertions(+), 32 deletions(-) (limited to 'gps/android/GnssMeasurement.cpp') diff --git a/gps/android/GnssMeasurement.cpp b/gps/android/GnssMeasurement.cpp index 2578a85..1c65bd6 100644 --- a/gps/android/GnssMeasurement.cpp +++ b/gps/android/GnssMeasurement.cpp @@ -27,7 +27,7 @@ namespace android { namespace hardware { namespace gnss { -namespace V1_1 { +namespace V1_0 { namespace implementation { void GnssMeasurement::GnssMeasurementDeathRecipient::serviceDied( @@ -89,43 +89,13 @@ Return GnssMeasurement::close() { mGnssMeasurementCbIface->unlinkToDeath(mGnssMeasurementDeathRecipient); mGnssMeasurementCbIface = nullptr; } - if (mGnssMeasurementCbIface_1_1 != nullptr) { - mGnssMeasurementCbIface_1_1->unlinkToDeath(mGnssMeasurementDeathRecipient); - mGnssMeasurementCbIface_1_1 = nullptr; - } mApi->measurementClose(); return Void(); } -// Methods from ::android::hardware::gnss::V1_1::IGnssMeasurement follow. -Return GnssMeasurement::setCallback_1_1( - const sp& callback, bool /*enableFullTracking*/) { - - Return ret = - IGnssMeasurement::GnssMeasurementStatus::ERROR_GENERIC; - if (mGnssMeasurementCbIface_1_1 != nullptr) { - LOC_LOGE("%s]: GnssMeasurementCallback is already set", __FUNCTION__); - return IGnssMeasurement::GnssMeasurementStatus::ERROR_ALREADY_INIT; - } - - if (callback == nullptr) { - LOC_LOGE("%s]: callback is nullptr", __FUNCTION__); - return ret; - } - if (mApi == nullptr) { - LOC_LOGE("%s]: mApi is nullptr", __FUNCTION__); - return ret; - } - - mGnssMeasurementCbIface_1_1 = callback; - mGnssMeasurementCbIface_1_1->linkToDeath(mGnssMeasurementDeathRecipient, 0); - - return mApi->measurementSetCallback_1_1(callback); -} - } // namespace implementation -} // namespace V1_1 +} // namespace V1_0 } // namespace gnss } // namespace hardware } // namespace android -- cgit v1.2.3