Home
last modified time | relevance | path

Searched refs:isWithin (Results 1 – 21 of 21) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/aggregation/
DUtils.java28 assertThat(energy.getInCalories()).isWithin(1).of(expected); in assertEnergyWithTolerance()
33 assertThat(length.getInMeters()).isWithin(0.001).of(expected); in assertLengthWithTolerance()
38 assertThat(mass.getInGrams()).isWithin(0.001).of(expected); in assertMassWithTolerance()
43 assertThat(value).isWithin(0.001).of(expected); in assertDoubleWithTolerance()
DBasalCaloriesAggregationTest.java461 assertThat(oldEnergy.getInCalories() / 1000).isWithin(1).of(13118); in testAggregation_BasalCaloriesBurntTotal()
464 .isWithin(1) in testAggregation_BasalCaloriesBurntTotal()
/packages/modules/AdServices/adservices/libraries/cobalt/tests/src/com/android/cobalt/observations/
DPrivacyGeneratorStatisticalTest.java112 assertThat((double) totalIndicesAdded).isWithin(3 * stddev).of(expectedIndicesAdded); in totalIndicesAddedTest()
147 assertThat((double) totalSum).isWithin(3 * stddev).of(expectedSum); in indexOffsetTest()
204 assertThat(totalSum).isWithin(3 * stddev).of(expectedSum); in doubleToIndexTest()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/dataentries/units/
DLengthConverterTest.kt27 assertThat(value).isWithin(/*tolerance*/ 0.1).of(/*expected*/ 0.8) in convertDistanceFromMeters_toMiles()
DSpeedConverterTest.kt27 assertThat(value).isWithin(/*tolerance*/ 0.1).of(/*expected*/ 26.84) in convertToDistancePerHour_toMiles()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/adselection/
DBuyerInputGeneratorTest.java300 .isWithin(10F) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
306 .isWithin(10F) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
313 .isWithin(10F) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
329 .isWithin(10F) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
345 .isWithin(10F) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
352 .isWithin(10F) in testBuyerInputGenerator_returnsBuyerInputs_onlyCAsWithRenderIdReturned_successPayloadMetricsEnabled()
/packages/modules/ExtServices/java/tests/src/android/ext/services/autofill/
DEditDistanceScorerTest.java83 assertThat(actualValue).isWithin(0.01F).of(expectedValue); in assertFloat()
DExactMatchTest.java97 assertThat(actualValue).isWithin(0.01F).of(expectedValue); in assertFloat()
DCreditCardMatcherTest.java95 assertThat(actualValue).isWithin(0.01F).of(expectedValue); in assertFloat()
DAutofillFieldClassificationServiceImplTest.java106 assertWithMessage("wrong score at [%s, %s]", i, j).that(cell).isWithin(0.01F) in testCalculateScores()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/
DFakeSettingsTest.kt62 assertThat(settings.getFloatOrNull(longKey)).isWithin(0.00001f).of(Long.MAX_VALUE.toFloat()) in testMismatchedTypes()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/filtering/
DMedAvgFilterTest.java114 assertThat(filter.getResult().value).isWithin(0.000001f).of(weightedResult); in weightedTest()
/packages/modules/HealthFitness/tests/unittests/src/com/android/server/healthconnect/storage/datatypehelpers/aggregation/
DRealDataStepsTest.java154 assertThat(mOneGroupAggregator.getResultForGroup(0)).isWithin(1.0).of(5084.0); in testAppStepsRecord_returnCorrectAggregation()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/primers/
DBackAzimuthPrimerTest.java110 .isWithin(5f) in simulateRotation()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DVideoPreferenceTest.java93 assertThat(layout.mAspectRatio).isWithin(0.01f).of(VIDEO_WIDTH / (float) VIDEO_HEIGHT); in onBindViewHolder_hasCorrectRatio()
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dtruth.py146 def isWithin(self, time_bound): member in TimeDeltaSubject
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/
DMatrixTest.java54 assertThat(transformed.length()).isWithin(EPSILON).of(0); in transformPoint_zeroZerosVector()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
DBatteryUtilsTest.java218 .isWithin(PRECISION) in testCalculateBatteryPercent()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/measurement/
DSourceTest.java1735 .isWithin(PrivacyParams.NUMBER_EQUAL_THRESHOLD) in testGetInformationGain_attributionScopeOff_doesNotIncludeAttributionScopeParams()
1756 .isWithin(PrivacyParams.NUMBER_EQUAL_THRESHOLD) in testGetInformationGain_attributionScopeOn_includesAttributionScopeParams()
1773 .isWithin(PrivacyParams.NUMBER_EQUAL_THRESHOLD) in testGetInformationGain_attributionScopeOnParamsNull_fallbackToDefaultValue()
/packages/apps/TV/libs/
Dtruth-0.45.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stats/
DAdServicesLoggerImplTest.java337 .isWithin(0.0f) in testLogRunAdBiddingProcessReportedStats()