/cts/tests/location/location_gnss/src/android/location/cts/gnss/ |
D | GnssLocationValuesTest.java | 75 SoftAssert softAssert = new SoftAssert(TAG); in testAccuracyFields() local 78 softAssert.assertTrue( in testAccuracyFields() 85 checkLocationAccuracyFields(softAssert, location, in testAccuracyFields() 89 softAssert.assertAll(); in testAccuracyFields() 92 public static void checkLocationAccuracyFields(SoftAssert softAssert, in checkLocationAccuracyFields() argument 94 softAssert.assertTrue("All locations generated by the LocationManager " in checkLocationAccuracyFields() 97 softAssert.assertTrue("Location Accuracy should be greater than 0.", in checkLocationAccuracyFields() 107 softAssert.assertOrWarnTrue(/* strict= */ YEAR_2017_CAPABILITY_ENFORCED, in checkLocationAccuracyFields() 113 softAssert.assertOrWarnTrue(/* strict= */ true, in checkLocationAccuracyFields() 117 softAssert.assertOrWarnTrue(/* strict= */ YEAR_2017_CAPABILITY_ENFORCED, in checkLocationAccuracyFields() [all …]
|
D | GnssLocationRateChangeTest.java | 82 SoftAssert softAssert = new SoftAssert(TAG); in testVariedRates() local 84 softAssert.assertTrue("Location should be received at test start", in testVariedRates() 95 softAssert.assertTrue("Location should be received at test end", in testVariedRates() 98 softAssert.assertAll(); in testVariedRates() 112 SoftAssert softAssert = new SoftAssert(TAG); in testVariedRatesOnOff() local 114 softAssert.assertTrue("Location should be received at test start", in testVariedRatesOnOff() 126 softAssert.assertTrue("Location should be received at test end", in testVariedRatesOnOff() 129 softAssert.assertAll(); in testVariedRatesOnOff() 143 SoftAssert softAssert = new SoftAssert(TAG); in testVariedRatesRepetitive() local 145 softAssert.assertTrue("Location should be received at test start", in testVariedRatesRepetitive() [all …]
|
D | GnssStatusTest.java | 81 SoftAssert softAssert = new SoftAssert(TAG); in checkGnssChange() local 82 softAssert.assertTrue( in checkGnssChange() 87 softAssert.assertAll(); in checkGnssChange() 106 SoftAssert softAssert = new SoftAssert(TAG); in testGnssStatusValues() local 111 validateGnssStatus(testGnssStatusCallback.getGnssStatus(), softAssert); in testGnssStatusValues() local 112 softAssert.assertAll(); in testGnssStatusValues() 125 private void validateGnssStatus(GnssStatus status, SoftAssert softAssert) { in validateGnssStatus() argument 129 softAssert.assertTrue("Satellite count test sCount : " + sCount , sCount < 200); in validateGnssStatus() 131 softAssert.assertTrue("azimuth_degrees: Azimuth in degrees: ", in validateGnssStatus() 135 TestMeasurementUtil.verifyGnssCarrierFrequency(softAssert, mTestLocationManager, in validateGnssStatus() [all …]
|
D | GnssTtffTests.java | 82 SoftAssert softAssert = new SoftAssert(TAG); in checkTtffColdWithWifiOn() local 86 TimeUnit.SECONDS.toMillis(threshold), softAssert); in checkTtffColdWithWifiOn() 87 softAssert.assertAll(); in checkTtffColdWithWifiOn() 97 SoftAssert softAssert = new SoftAssert(TAG); in checkTtffHotWithWifiOn() local 99 TimeUnit.SECONDS.toMillis(threshold), softAssert); in checkTtffHotWithWifiOn() 100 softAssert.assertAll(); in checkTtffHotWithWifiOn() 135 long threshold, SoftAssert softAssert) throws Exception { in checkTtffByThreshold() argument 155 softAssert.assertTrue( in checkTtffByThreshold() 163 softAssert.assertTrue("Test case: " + testName +", TTFF should be less than " + threshold in checkTtffByThreshold()
|
D | GnssMeasurementValuesTest.java | 108 SoftAssert softAssert = new SoftAssert(TAG); in testListenForGnssMeasurements() local 110 softAssert.assertTrue( in testListenForGnssMeasurements() 123 softAssert.assertTrue("GnssMeasurementEvent count", "X > 0", in testListenForGnssMeasurements() 134 TestMeasurementUtil.assertGnssClockFields(event.getClock(), softAssert, timeInNs); in testListenForGnssMeasurements() local 138 measurement, softAssert, timeInNs); in testListenForGnssMeasurements() 152 TestMeasurementUtil.assertGnssClockHasConsistentFullBiasNanos(softAssert, events); in testListenForGnssMeasurements() 154 softAssert.assertTrue( in testListenForGnssMeasurements() 169 softAssert.assertOrWarnTrue(/* strict= */ YEAR_2017_CAPABILITY_ENFORCED, in testListenForGnssMeasurements() 173 softAssert.assertAll(); in testListenForGnssMeasurements()
|
D | GnssMeasurementWhenNoLocationTest.java | 146 SoftAssert softAssert = new SoftAssert(TAG); in testGnssMeasurementWhenNoLocation() local 147 softAssert.assertTrue( in testGnssMeasurementWhenNoLocation() 155 softAssert.assertTrue( in testGnssMeasurementWhenNoLocation() 164 softAssert.assertTrue( in testGnssMeasurementWhenNoLocation() 187 softAssert.assertTrue("GPS measurement satellite count check: ", in testGnssMeasurementWhenNoLocation() 193 TestMeasurementUtil.assertGnssClockFields(firstEvent.getClock(), softAssert, timeInNs); in testGnssMeasurementWhenNoLocation() local 198 measurement, softAssert, timeInNs); in testGnssMeasurementWhenNoLocation() 200 softAssert.assertAll(); in testGnssMeasurementWhenNoLocation()
|
D | GnssMeasurementsConstellationTest.java | 99 SoftAssert softAssert = new SoftAssert(TAG); in testGnssMultiConstellationSupported() local 100 softAssert.assertTrue( in testGnssMultiConstellationSupported() 109 softAssert.assertTrue("time_ns: clock value", in testGnssMultiConstellationSupported() 129 softAssert.assertTrueAsWarning( in testGnssMultiConstellationSupported() 138 softAssert.assertAll(); in testGnssMultiConstellationSupported()
|
D | GnssLocationUpdateIntervalTest.java | 218 SoftAssert softAssert = new SoftAssert(TAG); in validateTimeDriftBetweenUtcTimeAndElapsedRealtime() local 225 softAssert.assertTrue("Time drift between elapsedRealtime and utcTime must be bounded: " in validateTimeDriftBetweenUtcTimeAndElapsedRealtime() 229 softAssert.assertAll(); in validateTimeDriftBetweenUtcTimeAndElapsedRealtime() 247 SoftAssert softAssert = new SoftAssert(TAG); in validateLocationUpdateInterval() local 248 assertMeanAndStdev(softAssert, LocationManager.GPS_PROVIDER, fixIntervalMillis, in validateLocationUpdateInterval() 250 assertMeanAndStdev(softAssert, LocationManager.PASSIVE_PROVIDER, fixIntervalMillis, in validateLocationUpdateInterval() 252 softAssert.assertAll(); in validateLocationUpdateInterval() 286 private static void assertMeanAndStdev(SoftAssert softAssert, String provider, in assertMeanAndStdev() argument 292 softAssert.assertTrue(provider + " provider mean too small: " + mean in assertMeanAndStdev() 296 softAssert.assertTrue(provider + " provider stdev too big: " in assertMeanAndStdev()
|
D | GnssPseudorangeVerificationTest.java | 133 SoftAssert softAssert = new SoftAssert(TAG); in testPseudorangeValue() local 134 softAssert.assertTrue( in testPseudorangeValue() 145 softAssert.assertTrue( in testPseudorangeValue() 156 TestMeasurementUtil.assertGnssClockFields(event.getClock(), softAssert, timeInNs); in testPseudorangeValue() local 162 validatePseudorange(measurements, softAssert, timeInNs); in testPseudorangeValue() 171 softAssert.assertTrue( in testPseudorangeValue() 176 softAssert.assertAll(); in testPseudorangeValue() 219 SoftAssert softAssert, long timeInNs) { in validatePseudorange() argument 242 softAssert.assertTrue("deltaiSeconds in Seconds.", in validatePseudorange()
|
D | GnssMeasurementRegistrationTest.java | 233 SoftAssert softAssert = new SoftAssert(TAG); in verifyGnssMeasurementsReceived() local 234 softAssert.assertTrue( in verifyGnssMeasurementsReceived() 238 softAssert.assertTrue( in verifyGnssMeasurementsReceived() 245 softAssert.assertAll(); in verifyGnssMeasurementsReceived()
|
D | GnssNavigationMessageTest.java | 108 SoftAssert softAssert = new SoftAssert(TAG); in testGnssNavigationMessageMandatoryFieldRanges() local 109 softAssert.assertTrue( in testGnssNavigationMessageMandatoryFieldRanges() 119 softAssert.assertAll(); in testGnssNavigationMessageMandatoryFieldRanges()
|
/cts/tests/location/common/src/android/location/cts/common/ |
D | TestMeasurementUtil.java | 155 SoftAssert softAssert, in assertGnssClockFields() argument 157 softAssert.assertTrue("time_ns: clock value", in assertGnssClockFields() 168 softAssert.assertTrue("TimeNanos - FullBiasNanos = GpsTimeNanos: clock value", in assertGnssClockFields() 187 public static void assertGnssClockHasConsistentFullBiasNanos(SoftAssert softAssert, in assertGnssClockHasConsistentFullBiasNanos() argument 207 softAssert.assertTrue("FullBiasNanos are the same at the same timeNanos", in assertGnssClockHasConsistentFullBiasNanos() 227 SoftAssert softAssert, long timeInNs) { in assertAllGnssMeasurementMandatoryFields() argument 229 verifySvid(measurement, softAssert, timeInNs); in assertAllGnssMeasurementMandatoryFields() 230 verifyReceivedSatelliteVehicleTimeInNs(measurement, softAssert, timeInNs); in assertAllGnssMeasurementMandatoryFields() 231 verifyAccumulatedDeltaRanges(measurement, softAssert, timeInNs); in assertAllGnssMeasurementMandatoryFields() 234 softAssert.assertTrue("state: Satellite code sync state", in assertAllGnssMeasurementMandatoryFields() [all …]
|
/cts/tests/location/location_privileged/src/android/location/cts/privileged/ |
D | GnssLocationValuesTest.java | 112 SoftAssert softAssert = new SoftAssert(TAG); in waitAndValidateLowPowerLocations() local 113 softAssert.assertTrue( in waitAndValidateLowPowerLocations() 122 checkLocationRegularFields(softAssert, location, checkSpeed); in waitAndValidateLowPowerLocations() 126 softAssert.assertAll(); in waitAndValidateLowPowerLocations() 129 private static void checkLocationRegularFields(SoftAssert softAssert, Location location, in checkLocationRegularFields() argument 135 softAssert.assertTrue("All GNSS locations generated by the LocationManager " in checkLocationRegularFields() 138 softAssert.assertTrue("Altitude should be greater than -500 (meters).", in checkLocationRegularFields() 140 softAssert.assertTrue("Altitude should be less than 6000 (meters).", in checkLocationRegularFields() 147 softAssert.assertTrue("When speed is greater than 0, all GNSS locations generated by " in checkLocationRegularFields() 150 softAssert.assertTrue("Bearing should be in the range of [0.0, 360.0]", in checkLocationRegularFields() [all …]
|
D | GnssMeasurementValuesTest.java | 114 SoftAssert softAssert = new SoftAssert(TAG); in testListenForGnssMeasurements() local 116 softAssert.assertTrue( in testListenForGnssMeasurements() 126 softAssert.assertTrue( in testListenForGnssMeasurements() 134 softAssert.assertTrue( in testListenForGnssMeasurements() 146 softAssert.assertTrue( in testListenForGnssMeasurements() 155 … TestMeasurementUtil.assertAllGnssMeasurementSystemFields(measurement, softAssert, timeInNs); in testListenForGnssMeasurements() 158 softAssert.assertAll(); in testListenForGnssMeasurements()
|
D | GnssMeasurementRegistrationTest.java | 163 SoftAssert softAssert = new SoftAssert(TAG); in verifyGnssMeasurementsReceived() local 164 softAssert.assertTrue( in verifyGnssMeasurementsReceived() 167 softAssert.assertAll(); in verifyGnssMeasurementsReceived()
|