/cts/tests/tests/animation/src/android/animation/cts/ |
D | EvaluatorTest.java | 45 private static final float EPSILON = 0.001f; field in EvaluatorTest 55 assertEquals(start, result, EPSILON); in testFloatEvaluator() 58 assertEquals(.5f, result, EPSILON); in testFloatEvaluator() 61 assertEquals(end, result, EPSILON); in testFloatEvaluator() 80 assertEquals(start[0], result[0], EPSILON); in floatArrayEvaluatorTestImpl() 81 assertEquals(start[1], result[1], EPSILON); in floatArrayEvaluatorTestImpl() 84 assertEquals(.4f, result[0], EPSILON); in floatArrayEvaluatorTestImpl() 85 assertEquals(.5f, result[1], EPSILON); in floatArrayEvaluatorTestImpl() 88 assertEquals(end[0], result[0], EPSILON); in floatArrayEvaluatorTestImpl() 89 assertEquals(end[1], result[1], EPSILON); in floatArrayEvaluatorTestImpl() [all …]
|
D | InterpolatorTest.java | 37 private static final float EPSILON = 0.00001f; field in InterpolatorTest 58 assertEquals(0f, interpolator.getInterpolation(0), EPSILON); in testFastOutExtraSlowIn() 59 assertEquals(1f, interpolator.getInterpolation(1), EPSILON); in testFastOutExtraSlowIn() 63 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn() 67 for (float fraction = EPSILON; fraction < turningPointX; fraction += 0.05f) { in testFastOutExtraSlowIn() 74 for (float fraction = turningPointX + EPSILON; fraction < 1f; fraction += 0.05f) { in testFastOutExtraSlowIn() 80 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn()
|
D | CreationTest.java | 39 private static final float EPSILON = 0.0001f; field in CreationTest 163 assertEquals((Float) animator.getAnimatedValue(), values[0], EPSILON); in verifyValues() local 166 assertEquals((Float) animator.getAnimatedValue(), values[i], EPSILON); in verifyValues() local 169 assertEquals((Float) animator.getAnimatedValue(), values[values.length - 1], EPSILON); in verifyValues() local 174 assertEquals((Float) animator.getAnimatedValue(propertyName), values[0], EPSILON); in verifyValues() local 177 assertEquals((Float) animator.getAnimatedValue(propertyName), values[i], EPSILON); in verifyValues() local 181 EPSILON); in verifyValues() local
|
D | AnimatorSetTest.java | 72 private static final float EPSILON = 0.001f; field in AnimatorSetTest 386 assertEquals((float) a1.getAnimatedValue(), 50f, EPSILON); in testSeekAfterPause() local 387 assertEquals((float) a2.getAnimatedValue(), 60f, EPSILON); in testSeekAfterPause() local 391 assertEquals((float) a1.getAnimatedValue(), 40f, EPSILON); in testSeekAfterPause() local 392 assertEquals((float) a2.getAnimatedValue(), 50f, EPSILON); in testSeekAfterPause() local 742 assertEquals(100f, (Float) a1.getAnimatedValue(), EPSILON); in testSeeking() 743 assertEquals(150f, (Float) a2.getAnimatedValue(), EPSILON); in testSeeking() 744 assertEquals(250f, (Float) a3.getAnimatedValue(), EPSILON); in testSeeking() 747 assertEquals(150f, (Float) a1.getAnimatedValue(), EPSILON); in testSeeking() 748 assertEquals(250f, (Float) a2.getAnimatedValue(), EPSILON); in testSeeking() [all …]
|
D | ValueAnimatorTest.java | 65 private static final float EPSILON = 0.0001f; field in ValueAnimatorTest 182 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime() 183 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime() 190 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime() 191 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime() 200 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime() 201 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime() 207 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime() 208 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime() 215 assertEquals(.5f, delayedAnim.getAnimatedFraction(), EPSILON); in testSetCurrentPlayTime() [all …]
|
D | PropertyValuesHolderTest.java | 71 private static final float EPSILON = .001f; field in PropertyValuesHolderTest 400 assertEquals(expectedX, values[0], EPSILON); in testOfMultiFloat_Array() 401 assertEquals(expectedX * 2, values[1], EPSILON); in testOfMultiFloat_Array()
|
D | ObjectAnimatorTest.java | 73 private static final float EPSILON = .001f; field in ObjectAnimatorTest 576 assertEquals(expectedX, values[0], EPSILON); in testOfMultiFloat() 577 assertEquals(expectedX * 2, values[1], EPSILON); in testOfMultiFloat()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | DynamicsProcessingTest.java | 45 private static final float EPSILON = 0.00001f; field in DynamicsProcessingTest 118 preferredFrameDuration, EPSILON); in test1_0ParametersEngine() 148 assertEquals("inputGain is different", DEFAULT_INPUT_GAIN, inputGain, EPSILON); in test1_1ParametersChannel() 268 channelTest.getInputGain(), EPSILON); in test1_6Channel_perStage() 273 TEST_BAND_INDEX, TEST_GAIN1, preEqBandTest.getGain(), EPSILON); in test1_6Channel_perStage() 278 TEST_BAND_INDEX, TEST_GAIN1, mbcBandTest.getPreGain(), EPSILON); in test1_6Channel_perStage() 283 TEST_BAND_INDEX, TEST_GAIN1, postEqBandTest.getGain(), EPSILON); in test1_6Channel_perStage() 287 TEST_GAIN1, limiterTest.getPostGain(), EPSILON); in test1_6Channel_perStage() 292 mDP.getInputGainByChannelIndex(i), EPSILON); in test1_6Channel_perStage() 299 mDP.getPreEqBandByChannelIndex(i, TEST_BAND_INDEX).getGain(), EPSILON); in test1_6Channel_perStage() [all …]
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextLanguageTest.java | 35 private static final float EPSILON = 0.000001f; field in TextLanguageTest 60 assertEquals(0.6f, language.getConfidenceScore(ULocale.ENGLISH), EPSILON); in testTextLanguage() 61 assertEquals(0.3f, language.getConfidenceScore(ULocale.CHINESE), EPSILON); in testTextLanguage() 62 assertEquals(0.1f, language.getConfidenceScore(ULocale.JAPANESE), EPSILON); in testTextLanguage() 75 assertEquals(1f, language.getConfidenceScore(ULocale.ENGLISH), EPSILON); in testTextLanguage_clippedScore()
|
D | TextLinksTest.java | 50 private static final float EPSILON = 0.000001f; field in TextLinksTest 92 EPSILON); in testTextLinks_full() 98 EPSILON); in testTextLinks_full()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | CursorAnchorInfoTest.java | 45 private static final float EPSILON = 0.0000001f; field in CursorAnchorInfoTest 125 assertEquals(insertionMarkerHorizontal, info.getInsertionMarkerHorizontal(), EPSILON); in testBuilder() 126 assertEquals(insertionMarkerTop, info.getInsertionMarkerTop(), EPSILON); in testBuilder() 127 assertEquals(insertionMarkerBaseline, info.getInsertionMarkerBaseline(), EPSILON); in testBuilder() 128 assertEquals(insertionMarkerBottom, info.getInsertionMarkerBottom(), EPSILON); in testBuilder() 150 assertEquals(insertionMarkerHorizontal, info2.getInsertionMarkerHorizontal(), EPSILON); in testBuilder() 151 assertEquals(insertionMarkerTop, info2.getInsertionMarkerTop(), EPSILON); in testBuilder() 152 assertEquals(insertionMarkerBaseline, info2.getInsertionMarkerBaseline(), EPSILON); in testBuilder() 153 assertEquals(insertionMarkerBottom, info2.getInsertionMarkerBottom(), EPSILON); in testBuilder() 177 assertEquals(insertionMarkerHorizontal, info3.getInsertionMarkerHorizontal(), EPSILON); in testBuilder() [all …]
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarPropertyConfigTest.java | 49 private static final float EPSILON = 0.00001f; field in CarPropertyConfigTest 155 if (Math.abs(maxSampleRate - 0.0f) > EPSILON in testSampleRate() 156 || Math.abs(minSampleRate - 0.0f) > EPSILON) { in testSampleRate()
|
/cts/tests/uwb/src/android/uwb/cts/ |
D | DistanceMeasurementTest.java | 37 private static final double EPSILON = 0.00000000001; field in DistanceMeasurementTest
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorAdditionalInfoTest.java | 41 private static final double EPSILON = 1E-6; field in SensorAdditionalInfoTest 276 mIsSensorPlacementRotationValid = (Math.abs(determinant - 1) < EPSILON); in verifySensorPlacementData()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | AudioLoopbackLatencyActivity.java | 91 && mMeanLatencyMillis > EPSILON in handleTestCompletion()
|
D | AudioLoopbackBaseActivity.java | 118 protected static final float EPSILON = 1.0f; field in AudioLoopbackBaseActivity
|