Merge "Ignore enableFullTracking in HAL v1.0" into rvc-dev am: 05bf24a6c8 am: 2ddcb7ba45 am: ed05e7bb37

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11958654

Change-Id: If3edb9c1959ad3901d2ad1f9113e5b84edcb84e3
This commit is contained in:
TreeHugger Robot
2020-06-23 14:43:48 +00:00
committed by Automerger Merge Worker

View File

@@ -3109,9 +3109,7 @@ static jboolean android_location_GnssMeasurementsProvider_start_measurement_coll
result = gnssMeasurementIface_V1_1->setCallback_1_1(cbIface, enableFullTracking);
} else {
if (enableFullTracking == JNI_TRUE) {
// full tracking mode not supported in 1.0 HAL
result.assertOk(); // isOk() must be called before result destructor is invoked.
return JNI_FALSE;
ALOGW("Full tracking mode not supported in 1.0 GNSS HAL.");
}
result = gnssMeasurementIface->setCallback(cbIface);
}