/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 | AnimatorSetTest.java | 75 private static final float EPSILON = 0.001f; field in AnimatorSetTest 396 assertEquals((float) a1.getAnimatedValue(), 50f, EPSILON); in testSeekAfterPause() local 397 assertEquals((float) a2.getAnimatedValue(), 60f, EPSILON); in testSeekAfterPause() local 401 assertEquals((float) a1.getAnimatedValue(), 40f, EPSILON); in testSeekAfterPause() local 402 assertEquals((float) a2.getAnimatedValue(), 50f, EPSILON); in testSeekAfterPause() local 752 assertEquals(100f, (Float) a1.getAnimatedValue(), EPSILON); in testSeeking() 753 assertEquals(150f, (Float) a2.getAnimatedValue(), EPSILON); in testSeeking() 754 assertEquals(250f, (Float) a3.getAnimatedValue(), EPSILON); in testSeeking() 757 assertEquals(150f, (Float) a1.getAnimatedValue(), EPSILON); in testSeeking() 758 assertEquals(250f, (Float) a2.getAnimatedValue(), EPSILON); in testSeeking() [all …]
|
D | InterpolatorTest.java | 39 private static final float EPSILON = 0.00001f; field in InterpolatorTest 67 assertEquals(0f, interpolator.getInterpolation(0), EPSILON); in testFastOutExtraSlowIn() 68 assertEquals(1f, interpolator.getInterpolation(1), EPSILON); in testFastOutExtraSlowIn() 72 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn() 76 for (float fraction = EPSILON; fraction < turningPointX; fraction += 0.05f) { in testFastOutExtraSlowIn() 83 for (float fraction = turningPointX + EPSILON; fraction < 1f; fraction += 0.05f) { in testFastOutExtraSlowIn() 89 assertEquals(turningPointY, interpolator.getInterpolation(turningPointX), EPSILON); in testFastOutExtraSlowIn()
|
D | CreationTest.java | 41 private static final float EPSILON = 0.0001f; field in CreationTest 172 assertEquals((Float) animator.getAnimatedValue(), values[0], EPSILON); in verifyValues() local 175 assertEquals((Float) animator.getAnimatedValue(), values[i], EPSILON); in verifyValues() local 178 assertEquals((Float) animator.getAnimatedValue(), values[values.length - 1], EPSILON); in verifyValues() local 183 assertEquals((Float) animator.getAnimatedValue(propertyName), values[0], EPSILON); in verifyValues() local 186 assertEquals((Float) animator.getAnimatedValue(propertyName), values[i], EPSILON); in verifyValues() local 190 EPSILON); in verifyValues() local
|
D | ValueAnimatorTest.java | 67 private static final float EPSILON = 0.0001f; field in ValueAnimatorTest 191 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime() 192 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime() 199 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime() 200 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime() 209 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime() 210 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime() 216 assertEquals(.5f, currentFraction, EPSILON); in testSetCurrentPlayTime() 217 assertEquals(50, currentValue, EPSILON); in testSetCurrentPlayTime() 224 assertEquals(.5f, delayedAnim.getAnimatedFraction(), EPSILON); in testSetCurrentPlayTime() [all …]
|
D | PropertyValuesHolderTest.java | 74 private static final float EPSILON = .001f; field in PropertyValuesHolderTest 414 assertEquals(expectedX, values[0], EPSILON); in testOfMultiFloat_Array() 415 assertEquals(expectedX * 2, values[1], EPSILON); in testOfMultiFloat_Array()
|
D | ObjectAnimatorTest.java | 78 private static final float EPSILON = .001f; field in ObjectAnimatorTest 630 assertEquals(expectedX, values[0], EPSILON); in testOfMultiFloat() 631 assertEquals(expectedX * 2, values[1], EPSILON); in testOfMultiFloat()
|
/cts/tests/tests/media/audio/src/android/media/audio/cts/ |
D | DynamicsProcessingTest.java | 51 private static final float EPSILON = 0.00001f; field in DynamicsProcessingTest 127 preferredFrameDuration, EPSILON); in test1_0ParametersEngine() 158 assertEquals("inputGain is different", DEFAULT_INPUT_GAIN, inputGain, EPSILON); in test1_1ParametersChannel() 283 channelTest.getInputGain(), EPSILON); in test1_6Channel_perStage() 288 TEST_BAND_INDEX, TEST_GAIN1, preEqBandTest.getGain(), EPSILON); in test1_6Channel_perStage() 293 TEST_BAND_INDEX, TEST_GAIN1, mbcBandTest.getPreGain(), EPSILON); in test1_6Channel_perStage() 298 TEST_BAND_INDEX, TEST_GAIN1, postEqBandTest.getGain(), EPSILON); in test1_6Channel_perStage() 302 TEST_GAIN1, limiterTest.getPostGain(), EPSILON); in test1_6Channel_perStage() 307 mDP.getInputGainByChannelIndex(i), EPSILON); in test1_6Channel_perStage() 314 mDP.getPreEqBandByChannelIndex(i, TEST_BAND_INDEX).getGain(), EPSILON); in test1_6Channel_perStage() [all …]
|
D | LoudnessEnhancerTest.java | 49 private static final float EPSILON = 0.0001f; field in LoudnessEnhancerTest 90 0.0f, mLE.getTargetGain(), EPSILON); in test1_0TargetGain() 93 800.0f, mLE.getTargetGain(), EPSILON); in test1_0TargetGain() 215 mLE.getTargetGain(), EPSILON); in test3_0MeasureGainChange()
|
/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/libs/input/src/com/android/cts/input/ |
D | InputEventMatchers.kt | 29 private const val EPSILON = 0.001f constant 37 return (abs(event.x - pt.x) < EPSILON) && in withCoords() 38 (abs(event.y - pt.y) < EPSILON) in withCoords() 61 return (abs(event.getX(index)) - pt.x < EPSILON) && in withCoords() 62 (abs(event.getY(index)) - pt.y < EPSILON) in withCoords() 72 return (abs(event.rawX) - pt.x < EPSILON) && in withRawCoords() 73 (abs(event.rawY) - pt.y < EPSILON) in withRawCoords() 219 return abs(event.pressure - pressure) < EPSILON in withPressure() 229 return abs(event.size - size) < EPSILON in withSize() 240 return abs(event.xPrecision - xPrecision) < EPSILON in withXPrecision() [all …]
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | CursorAnchorInfoTest.java | 62 private static final float EPSILON = 0.0000001f; field in CursorAnchorInfoTest 178 assertEquals(insertionMarkerHorizontal, info.getInsertionMarkerHorizontal(), EPSILON); in testBuilder() 179 assertEquals(insertionMarkerTop, info.getInsertionMarkerTop(), EPSILON); in testBuilder() 180 assertEquals(insertionMarkerBaseline, info.getInsertionMarkerBaseline(), EPSILON); in testBuilder() 181 assertEquals(insertionMarkerBottom, info.getInsertionMarkerBottom(), EPSILON); in testBuilder() 211 assertEquals(insertionMarkerHorizontal, info2.getInsertionMarkerHorizontal(), EPSILON); in testBuilder() 212 assertEquals(insertionMarkerTop, info2.getInsertionMarkerTop(), EPSILON); in testBuilder() 213 assertEquals(insertionMarkerBaseline, info2.getInsertionMarkerBaseline(), EPSILON); in testBuilder() 214 assertEquals(insertionMarkerBottom, info2.getInsertionMarkerBottom(), EPSILON); in testBuilder() 242 assertEquals(insertionMarkerHorizontal, info3.getInsertionMarkerHorizontal(), EPSILON); in testBuilder() [all …]
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | VirtualMouseTest.java | 48 private static final float EPSILON = 0.001f; field in VirtualMouseTest 108 firstStopPositionX, cursorPosition1.x, EPSILON); in sendRelativeEvent() 110 firstStopPositionY, cursorPosition1.y, EPSILON); in sendRelativeEvent() 124 secondStopPositionX, cursorPosition2.x, EPSILON); in sendRelativeEvent() 126 secondStopPositionY, cursorPosition2.y, EPSILON); in sendRelativeEvent() 206 assertEquals("Cursor position x differs", startPosition.x, position.x, EPSILON); in testStartingCursorPosition() 207 assertEquals("Cursor position y differs", startPosition.y, position.y, EPSILON); in testStartingCursorPosition()
|
D | VirtualDeviceMirrorDisplayTest.java | 68 private static final float EPSILON = 0.001f; field in VirtualDeviceMirrorDisplayTest 160 firstStopPositionX, cursorPosition1.x, EPSILON); in virtualMouse_relativeEvent() 162 firstStopPositionY, cursorPosition1.y, EPSILON); in virtualMouse_relativeEvent() 177 secondStopPositionX, cursorPosition2.x, EPSILON); in virtualMouse_relativeEvent() 179 secondStopPositionY, cursorPosition2.y, EPSILON); in virtualMouse_relativeEvent()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | GainmapTest.java | 60 private static final float EPSILON = 0.0001f; field in GainmapTest 104 assertEquals("value[" + i + "] didn't match " + expected, expected, value[i], EPSILON); in assertAllAre() 110 assertEquals(r, value[0], EPSILON); in assertAre() 111 assertEquals(g, value[1], EPSILON); in assertAre() 112 assertEquals(b, value[2], EPSILON); in assertAre() 137 assertEquals(1.f, gainmap.getMinDisplayRatioForHdrTransition(), EPSILON); in checkGainmap() 141 assertEquals(5f, gainmap.getDisplayRatioForFullHdr(), EPSILON); in checkGainmap() 169 assertEquals(1.f, gainmap.getMinDisplayRatioForHdrTransition(), EPSILON); in checkFountainGainmap() 173 assertEquals(10.63548f, gainmap.getDisplayRatioForFullHdr(), EPSILON); in checkFountainGainmap() 375 assertEquals(1.f, gainmap.getMinDisplayRatioForHdrTransition(), EPSILON); in testDefaults() [all …]
|
/cts/tests/sensor/src/android/hardware/cts/ |
D | SensorAdditionalInfoTest.java | 39 private static final double EPSILON = 1E-6; field in SensorAdditionalInfoTest 269 mIsSensorPlacementRotationValid = (Math.abs(determinant - 1) < EPSILON); in verifySensorPlacementData()
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarPropertyConfigTest.java | 58 private static final float EPSILON = 0.00001f; field in CarPropertyConfigTest 226 if (Math.abs(maxSampleRate - 0.0f) > EPSILON in testSampleRate() 227 || Math.abs(minSampleRate - 0.0f) > EPSILON) { in testSampleRate()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | VerifyInputEventTest.java | 73 private static final float EPSILON = 0.001f; field in VerifyInputEventTest 353 assertEquals(motionEvent.getRawX(), verifiedMotion.getRawX(), EPSILON); in compareMotions() local 354 assertEquals(motionEvent.getRawY(), verifiedMotion.getRawY(), EPSILON); in compareMotions() local
|
/cts/tests/tests/virtualdevice/camera/src/android/virtualdevice/cts/camera/ |
D | VirtualCameraUtils.java | 94 private static final float EPSILON = 0.3f; field in VirtualCameraUtils 163 return mse < EPSILON; in areColorsAlmostIdentical()
|
/cts/tests/input/src/android/input/cts/ |
D | DrawingTabletTest.kt | 198 const val EPSILON = 0.001f constant
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | current.txt | 49946 field @HalfFloat public static final short EPSILON = 5120; // 0x1400
|