summaryrefslogtreecommitdiff
path: root/location/tests
diff options
context:
space:
mode:
authorgomo <gomo@google.com>2019-01-26 03:08:18 -0800
committergomo <gomo@google.com>2019-01-29 16:20:13 -0800
commit6ec9538233a17820cb018d3a49c18e280c03fbfe (patch)
tree3c0174dc4974d3609d063676728137581ed04566 /location/tests
parentefb4132ba31d715a2b0a4830d764b5288c8bf3c8 (diff)
Bluesky add position uncertainty field
Add the horizontal position uncertainty for the provided location by Bluesky at which the corrections are computed. Bug: 111441283 Test: Existing tests pass. Change-Id: I396bfce10deb9561b9f4d128b1f6a9641dedc3cc
Diffstat (limited to 'location/tests')
-rw-r--r--location/tests/locationtests/src/android/location/GnssMeasurementCorrectionsTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/location/tests/locationtests/src/android/location/GnssMeasurementCorrectionsTest.java b/location/tests/locationtests/src/android/location/GnssMeasurementCorrectionsTest.java
index d6227bbfcd0d..8f46e84195d5 100644
--- a/location/tests/locationtests/src/android/location/GnssMeasurementCorrectionsTest.java
+++ b/location/tests/locationtests/src/android/location/GnssMeasurementCorrectionsTest.java
@@ -48,6 +48,8 @@ public class GnssMeasurementCorrectionsTest extends TestCase {
assertEquals(37.386051, measurementCorrections.getLatitudeDegrees());
assertEquals(-122.083855, measurementCorrections.getLongitudeDegrees());
assertEquals(32.0, measurementCorrections.getAltitudeMeters());
+ assertEquals(9.25, measurementCorrections.getHorizontalPositionUncertaintyMeters());
+ assertEquals(2.3, measurementCorrections.getVerticalPositionUncertaintyMeters());
assertEquals(604000000000000L, measurementCorrections.getToaGpsNanosecondsOfWeek());
GnssSingleSatCorrection singleSatCorrection =
@@ -74,6 +76,8 @@ public class GnssMeasurementCorrectionsTest extends TestCase {
.setLatitudeDegrees(37.386051)
.setLongitudeDegrees(-122.083855)
.setAltitudeMeters(32)
+ .setHorizontalPositionUncertaintyMeters(9.25)
+ .setVerticalPositionUncertaintyMeters(2.3)
.setToaGpsNanosecondsOfWeek(604000000000000L);
List<GnssSingleSatCorrection> singleSatCorrectionList = new ArrayList<>();
singleSatCorrectionList.add(GnssSingleSatCorrectionsTest.generateTestSingleSatCorrection());