Home
last modified time | relevance | path

Searched refs:EPSILON (Results 1 – 8 of 8) sorted by relevance

/cts/tests/tests/animation/src/android/animation/cts/
DEvaluatorTest.java44 private static final float EPSILON = 0.001f; field in EvaluatorTest
54 assertEquals(start, result, EPSILON); in testFloatEvaluator()
57 assertEquals(.5f, result, EPSILON); in testFloatEvaluator()
60 assertEquals(end, result, EPSILON); in testFloatEvaluator()
79 assertEquals(start[0], result[0], EPSILON); in floatArrayEvaluatorTestImpl()
80 assertEquals(start[1], result[1], EPSILON); in floatArrayEvaluatorTestImpl()
83 assertEquals(.4f, result[0], EPSILON); in floatArrayEvaluatorTestImpl()
84 assertEquals(.5f, result[1], EPSILON); in floatArrayEvaluatorTestImpl()
87 assertEquals(end[0], result[0], EPSILON); in floatArrayEvaluatorTestImpl()
88 assertEquals(end[1], result[1], EPSILON); in floatArrayEvaluatorTestImpl()
[all …]
DInterpolatorTest.java36 private static final float EPSILON = 0.00001f; field in InterpolatorTest
57 assertEquals(0f, interpolator.getInterpolation(0), EPSILON); in testFastOutExtraSlowIn()
58 assertEquals(1f, interpolator.getInterpolation(1), EPSILON); in testFastOutExtraSlowIn()
62 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn()
66 for (float fraction = EPSILON; fraction < turningPointX; fraction += 0.05f) { in testFastOutExtraSlowIn()
73 for (float fraction = turningPointX + EPSILON; fraction < 1f; fraction += 0.05f) { in testFastOutExtraSlowIn()
79 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn()
DCreationTest.java38 private static final float EPSILON = 0.0001f; field in CreationTest
162 assertEquals((Float) animator.getAnimatedValue(), values[0], EPSILON); in verifyValues() local
165 assertEquals((Float) animator.getAnimatedValue(), values[i], EPSILON); in verifyValues() local
168 assertEquals((Float) animator.getAnimatedValue(), values[values.length - 1], EPSILON); in verifyValues() local
173 assertEquals((Float) animator.getAnimatedValue(propertyName), values[0], EPSILON); in verifyValues() local
176 assertEquals((Float) animator.getAnimatedValue(propertyName), values[i], EPSILON); in verifyValues() local
180 EPSILON); in verifyValues() local
DAnimatorSetTest.java71 private static final float EPSILON = 0.001f; field in AnimatorSetTest
714 assertEquals(100f, (Float) a1.getAnimatedValue(), EPSILON); in testSeeking()
715 assertEquals(150f, (Float) a2.getAnimatedValue(), EPSILON); in testSeeking()
716 assertEquals(250f, (Float) a3.getAnimatedValue(), EPSILON); in testSeeking()
719 assertEquals(150f, (Float) a1.getAnimatedValue(), EPSILON); in testSeeking()
720 assertEquals(250f, (Float) a2.getAnimatedValue(), EPSILON); in testSeeking()
721 assertEquals(280f, (Float) a3.getAnimatedValue(), EPSILON); in testSeeking()
727 assertEquals(150f, (Float) a1.getAnimatedValue(), EPSILON); in testSeeking()
728 assertEquals(250f, (Float) a2.getAnimatedValue(), EPSILON); in testSeeking()
729 assertEquals(300f, (Float) a3.getAnimatedValue(), EPSILON); in testSeeking()
[all …]
DValueAnimatorTest.java61 private static final float EPSILON = 0.0001f; field in ValueAnimatorTest
178 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime()
179 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime()
186 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime()
187 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime()
196 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime()
197 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime()
203 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime()
204 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime()
211 assertEquals(.5f, delayedAnim.getAnimatedFraction(), EPSILON); in testSetCurrentPlayTime()
[all …]
DPropertyValuesHolderTest.java70 private static final float EPSILON = .001f; field in PropertyValuesHolderTest
399 assertEquals(expectedX, values[0], EPSILON); in testOfMultiFloat_Array()
400 assertEquals(expectedX * 2, values[1], EPSILON); in testOfMultiFloat_Array()
DObjectAnimatorTest.java72 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/
DDynamicsProcessingTest.java45 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 …]