diff options
author | destradaa <destradaa@google.com> | 2014-07-22 09:59:43 -0700 |
---|---|---|
committer | destradaa <destradaa@google.com> | 2014-07-22 10:03:28 -0700 |
commit | 81cabb8a7fb5b61f16bf49c2757ccb51bc88e708 (patch) | |
tree | 764694ca6dc9e33b2a812c6d795de7e654fb63d8 /services/core/jni | |
parent | caf26263a7e186882c1875f022530324852fe75f (diff) | |
download | frameworks_base-81cabb8a7fb5b61f16bf49c2757ccb51bc88e708.zip frameworks_base-81cabb8a7fb5b61f16bf49c2757ccb51bc88e708.tar.gz frameworks_base-81cabb8a7fb5b61f16bf49c2757ccb51bc88e708.tar.bz2 |
Add uncertainty for GPS received TOW field.
b/16463499
Change-Id: I5dde8a2737d9345eb7f77edc64ab7286254a65e4
Diffstat (limited to 'services/core/jni')
-rw-r--r-- | services/core/jni/com_android_server_location_GpsLocationProvider.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/services/core/jni/com_android_server_location_GpsLocationProvider.cpp b/services/core/jni/com_android_server_location_GpsLocationProvider.cpp index 46af471..8bb6e8a 100644 --- a/services/core/jni/com_android_server_location_GpsLocationProvider.cpp +++ b/services/core/jni/com_android_server_location_GpsLocationProvider.cpp @@ -950,6 +950,15 @@ static jobject translate_gps_measurement(JNIEnv* env, GpsMeasurement* measuremen receivedGpsTowSetterMethod, measurement->received_gps_tow_ns); + jmethodID receivedGpsTowUncertaintySetterMethod = env->GetMethodID( + gpsMeasurementClass, + "setReceivedGpsTowUncertaintyInNs", + longSignature); + env->CallVoidMethod( + gpsMeasurementObject, + receivedGpsTowUncertaintySetterMethod, + measurement->received_gps_tow_uncertainty_ns); + jmethodID cn0SetterMethod = env->GetMethodID(gpsMeasurementClass, "setCn0InDbHz", doubleSignature); env->CallObjectMethod(gpsMeasurementObject, cn0SetterMethod, measurement->c_n0_dbhz); |