Home
last modified time | relevance | path

Searched refs:softAssert (Results 1 – 15 of 15) sorted by relevance

/cts/tests/location/location_gnss/src/android/location/cts/gnss/
DGnssLocationValuesTest.java73 SoftAssert softAssert = new SoftAssert(TAG); in testAccuracyFields() local
76 softAssert.assertTrue( in testAccuracyFields()
83 checkLocationAccuracyFields(softAssert, location, in testAccuracyFields()
87 softAssert.assertAll(); in testAccuracyFields()
90 public static void checkLocationAccuracyFields(SoftAssert softAssert, in checkLocationAccuracyFields() argument
92 softAssert.assertTrue("All locations generated by the LocationManager " in checkLocationAccuracyFields()
95 softAssert.assertTrue("Location Accuracy should be greater than 0.", in checkLocationAccuracyFields()
105 softAssert.assertOrWarnTrue(/* strict= */ YEAR_2017_CAPABILITY_ENFORCED, in checkLocationAccuracyFields()
111 softAssert.assertOrWarnTrue(/* strict= */ true, in checkLocationAccuracyFields()
115 softAssert.assertOrWarnTrue(/* strict= */ YEAR_2017_CAPABILITY_ENFORCED, in checkLocationAccuracyFields()
[all …]
DGnssLocationRateChangeTest.java81 SoftAssert softAssert = new SoftAssert(TAG); in testVariedRates() local
83 softAssert.assertTrue("Location should be received at test start", in testVariedRates()
94 softAssert.assertTrue("Location should be received at test end", in testVariedRates()
97 softAssert.assertAll(); in testVariedRates()
111 SoftAssert softAssert = new SoftAssert(TAG); in testVariedRatesOnOff() local
113 softAssert.assertTrue("Location should be received at test start", in testVariedRatesOnOff()
125 softAssert.assertTrue("Location should be received at test end", in testVariedRatesOnOff()
128 softAssert.assertAll(); in testVariedRatesOnOff()
142 SoftAssert softAssert = new SoftAssert(TAG); in testVariedRatesRepetitive() local
144 softAssert.assertTrue("Location should be received at test start", in testVariedRatesRepetitive()
[all …]
DGnssStatusTest.java52 SoftAssert softAssert = new SoftAssert(TAG); in checkGnssChange() local
53 softAssert.assertTrue( in checkGnssChange()
58 softAssert.assertAll(); in checkGnssChange()
69 SoftAssert softAssert = new SoftAssert(TAG); in testGnssStatusValues() local
74 validateGnssStatus(testGnssStatusCallback.getGnssStatus(), softAssert); in testGnssStatusValues() local
75 softAssert.assertAll(); in testGnssStatusValues()
83 private void validateGnssStatus(GnssStatus status, SoftAssert softAssert) { in validateGnssStatus() argument
87 softAssert.assertTrue("Satellite count test sCount : " + sCount , sCount < 200); in validateGnssStatus()
89 softAssert.assertTrue("azimuth_degrees: Azimuth in degrees: ", in validateGnssStatus()
93 TestMeasurementUtil.verifyGnssCarrierFrequency(softAssert, mTestLocationManager, in validateGnssStatus()
[all …]
DGnssTtffTests.java75 SoftAssert softAssert = new SoftAssert(TAG); in checkTtffColdWithWifiOn() local
79 TimeUnit.SECONDS.toMillis(threshold), softAssert); in checkTtffColdWithWifiOn()
80 softAssert.assertAll(); in checkTtffColdWithWifiOn()
90 SoftAssert softAssert = new SoftAssert(TAG); in checkTtffHotWithWifiOn() local
92 TimeUnit.SECONDS.toMillis(threshold), softAssert); in checkTtffHotWithWifiOn()
93 softAssert.assertAll(); in checkTtffHotWithWifiOn()
128 long threshold, SoftAssert softAssert) throws Exception { in checkTtffByThreshold() argument
147 softAssert.assertTrue( in checkTtffByThreshold()
155 softAssert.assertTrue("Test case: " + testName +", TTFF should be less than " + threshold in checkTtffByThreshold()
DGnssMeasurementValuesTest.java105 SoftAssert softAssert = new SoftAssert(TAG); in testListenForGnssMeasurements() local
107 softAssert.assertTrue( in testListenForGnssMeasurements()
120 softAssert.assertTrue("GnssMeasurementEvent count", "X > 0", in testListenForGnssMeasurements()
131 TestMeasurementUtil.assertGnssClockFields(event.getClock(), softAssert, timeInNs); in testListenForGnssMeasurements() local
135 measurement, softAssert, timeInNs); in testListenForGnssMeasurements()
149 TestMeasurementUtil.assertGnssClockHasConsistentFullBiasNanos(softAssert, events); in testListenForGnssMeasurements()
151 softAssert.assertTrue( in testListenForGnssMeasurements()
166 softAssert.assertOrWarnTrue(/* strict= */ YEAR_2017_CAPABILITY_ENFORCED, in testListenForGnssMeasurements()
170 softAssert.assertAll(); in testListenForGnssMeasurements()
DGnssMeasurementWhenNoLocationTest.java145 SoftAssert softAssert = new SoftAssert(TAG); in testGnssMeasurementWhenNoLocation() local
146 softAssert.assertTrue( in testGnssMeasurementWhenNoLocation()
154 softAssert.assertTrue( in testGnssMeasurementWhenNoLocation()
163 softAssert.assertTrue( in testGnssMeasurementWhenNoLocation()
186 softAssert.assertTrue("GPS measurement satellite count check: ", in testGnssMeasurementWhenNoLocation()
192 TestMeasurementUtil.assertGnssClockFields(firstEvent.getClock(), softAssert, timeInNs); in testGnssMeasurementWhenNoLocation() local
197 measurement, softAssert, timeInNs); in testGnssMeasurementWhenNoLocation()
199 softAssert.assertAll(); in testGnssMeasurementWhenNoLocation()
DGnssLocationUpdateIntervalTest.java199 SoftAssert softAssert = new SoftAssert(TAG); in validateTimeDriftBetweenUtcTimeAndElapsedRealtime() local
206 softAssert.assertTrue("Time drift between elapsedRealtime and utcTime must be bounded: " in validateTimeDriftBetweenUtcTimeAndElapsedRealtime()
210 softAssert.assertAll(); in validateTimeDriftBetweenUtcTimeAndElapsedRealtime()
228 SoftAssert softAssert = new SoftAssert(TAG); in validateLocationUpdateInterval() local
229 assertMeanAndStdev(softAssert, LocationManager.GPS_PROVIDER, fixIntervalMillis, in validateLocationUpdateInterval()
231 assertMeanAndStdev(softAssert, LocationManager.PASSIVE_PROVIDER, fixIntervalMillis, in validateLocationUpdateInterval()
233 softAssert.assertAll(); in validateLocationUpdateInterval()
267 private static void assertMeanAndStdev(SoftAssert softAssert, String provider, in assertMeanAndStdev() argument
273 softAssert.assertTrue(provider + " provider mean too small: " + mean in assertMeanAndStdev()
277 softAssert.assertTrue(provider + " provider stdev too big: " in assertMeanAndStdev()
DGnssMeasurementsConstellationTest.java97 SoftAssert softAssert = new SoftAssert(TAG); in testGnssMultiConstellationSupported() local
98 softAssert.assertTrue( in testGnssMultiConstellationSupported()
107 softAssert.assertTrue("time_ns: clock value", in testGnssMultiConstellationSupported()
127 softAssert.assertTrueAsWarning( in testGnssMultiConstellationSupported()
136 softAssert.assertAll(); in testGnssMultiConstellationSupported()
DGnssPseudorangeVerificationTest.java130 SoftAssert softAssert = new SoftAssert(TAG); in testPseudorangeValue() local
131 softAssert.assertTrue( in testPseudorangeValue()
142 softAssert.assertTrue( in testPseudorangeValue()
153 TestMeasurementUtil.assertGnssClockFields(event.getClock(), softAssert, timeInNs); in testPseudorangeValue() local
159 validatePseudorange(measurements, softAssert, timeInNs); in testPseudorangeValue()
168 softAssert.assertTrue( in testPseudorangeValue()
173 softAssert.assertAll(); in testPseudorangeValue()
216 SoftAssert softAssert, long timeInNs) { in validatePseudorange() argument
239 softAssert.assertTrue("deltaiSeconds in Seconds.", in validatePseudorange()
DGnssMeasurementRegistrationTest.java151 SoftAssert softAssert = new SoftAssert(TAG); in verifyGnssMeasurementsReceived() local
152 softAssert.assertTrue( in verifyGnssMeasurementsReceived()
156 softAssert.assertTrue( in verifyGnssMeasurementsReceived()
163 softAssert.assertAll(); in verifyGnssMeasurementsReceived()
DGnssNavigationMessageTest.java106 SoftAssert softAssert = new SoftAssert(TAG); in testGnssNavigationMessageMandatoryFieldRanges() local
107 softAssert.assertTrue( in testGnssNavigationMessageMandatoryFieldRanges()
117 softAssert.assertAll(); in testGnssNavigationMessageMandatoryFieldRanges()
/cts/tests/location/common/src/android/location/cts/common/
DTestMeasurementUtil.java151 SoftAssert softAssert, in assertGnssClockFields() argument
153 softAssert.assertTrue("time_ns: clock value", in assertGnssClockFields()
164 softAssert.assertTrue("TimeNanos - FullBiasNanos = GpsTimeNanos: clock value", in assertGnssClockFields()
183 public static void assertGnssClockHasConsistentFullBiasNanos(SoftAssert softAssert, in assertGnssClockHasConsistentFullBiasNanos() argument
203 softAssert.assertTrue("FullBiasNanos are the same at the same timeNanos", in assertGnssClockHasConsistentFullBiasNanos()
223 SoftAssert softAssert, long timeInNs) { in assertAllGnssMeasurementMandatoryFields() argument
225 verifySvid(measurement, softAssert, timeInNs); in assertAllGnssMeasurementMandatoryFields()
226 verifyReceivedSatelliteVehicleTimeInNs(measurement, softAssert, timeInNs); in assertAllGnssMeasurementMandatoryFields()
227 verifyAccumulatedDeltaRanges(measurement, softAssert, timeInNs); in assertAllGnssMeasurementMandatoryFields()
230 softAssert.assertTrue("state: Satellite code sync state", in assertAllGnssMeasurementMandatoryFields()
[all …]
/cts/tests/location/location_privileged/src/android/location/cts/privileged/
DGnssLocationValuesTest.java110 SoftAssert softAssert = new SoftAssert(TAG); in waitAndValidateLowPowerLocations() local
111 softAssert.assertTrue( in waitAndValidateLowPowerLocations()
120 checkLocationRegularFields(softAssert, location, checkSpeed); in waitAndValidateLowPowerLocations()
124 softAssert.assertAll(); in waitAndValidateLowPowerLocations()
127 private static void checkLocationRegularFields(SoftAssert softAssert, Location location, in checkLocationRegularFields() argument
133 softAssert.assertTrue("All GNSS locations generated by the LocationManager " in checkLocationRegularFields()
136 softAssert.assertTrue("Altitude should be greater than -500 (meters).", in checkLocationRegularFields()
138 softAssert.assertTrue("Altitude should be less than 6000 (meters).", in checkLocationRegularFields()
145 softAssert.assertTrue("When speed is greater than 0, all GNSS locations generated by " in checkLocationRegularFields()
148 softAssert.assertTrue("Bearing should be in the range of [0.0, 360.0]", in checkLocationRegularFields()
[all …]
DGnssMeasurementValuesTest.java112 SoftAssert softAssert = new SoftAssert(TAG); in testListenForGnssMeasurements() local
114 softAssert.assertTrue( in testListenForGnssMeasurements()
124 softAssert.assertTrue( in testListenForGnssMeasurements()
132 softAssert.assertTrue( in testListenForGnssMeasurements()
144 softAssert.assertTrue( in testListenForGnssMeasurements()
153 … TestMeasurementUtil.assertAllGnssMeasurementSystemFields(measurement, softAssert, timeInNs); in testListenForGnssMeasurements()
156 softAssert.assertAll(); in testListenForGnssMeasurements()
DGnssMeasurementRegistrationTest.java161 SoftAssert softAssert = new SoftAssert(TAG); in verifyGnssMeasurementsReceived() local
162 softAssert.assertTrue( in verifyGnssMeasurementsReceived()
165 softAssert.assertAll(); in verifyGnssMeasurementsReceived()