Home
last modified time | relevance | path

Searched refs:assertRoughlyEqual (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/animation/src/android/animation/cts/
DCreationTest.java141 private void assertRoughlyEqual(float checkValue, float correctValue) { in assertRoughlyEqual() method in CreationTest
149 assertRoughlyEqual((Float) animator.getAnimatedValue(), values[0]); in verifyValues()
152 assertRoughlyEqual((Float) animator.getAnimatedValue(), values[i]); in verifyValues()
155 assertRoughlyEqual((Float) animator.getAnimatedValue(), values[values.length - 1]); in verifyValues()
160 assertRoughlyEqual((Float) animator.getAnimatedValue(propertyName), values[0]); in verifyValues()
163 assertRoughlyEqual((Float) animator.getAnimatedValue(propertyName), values[i]); in verifyValues()
166 assertRoughlyEqual((Float) animator.getAnimatedValue(propertyName), in verifyValues()
DValueAnimatorTest.java102 private void assertRoughlyEqual(float expected, float actual) { in assertRoughlyEqual() method in ValueAnimatorTest
120 assertRoughlyEqual(.5f, currentFraction); in testSetCurrentPlayTime()
121 assertRoughlyEqual(50, currentValue); in testSetCurrentPlayTime()
128 assertRoughlyEqual(.5f, currentFraction); in testSetCurrentPlayTime()
129 assertRoughlyEqual(50, currentValue); in testSetCurrentPlayTime()
139 assertRoughlyEqual(.5f, currentFraction); in testSetCurrentPlayTime()
140 assertRoughlyEqual(50, currentValue); in testSetCurrentPlayTime()
146 assertRoughlyEqual(.5f, currentFraction); in testSetCurrentPlayTime()
147 assertRoughlyEqual(50, currentValue); in testSetCurrentPlayTime()
159 assertRoughlyEqual(.5f, currentFraction); in testSetCurrentPlayTime()
[all …]
/cts/tests/tests/hardware/src/android/hardware/cts/
DSensorManagerStaticTest.java62 assertRoughlyEqual("getAltitude identity property violated.", altitude, 0.0f, 0.1f); in testGetAltitude()
85 assertRoughlyEqual( in testGetAltitude()
137 assertRoughlyEqual( in testGetAngleChange()
162 assertRoughlyEqual( in testGetInclination()
195 assertRoughlyEqual( in testGetOrientation()
291 assertRoughlyEqual( in testGetRotationMatrix()
398 assertRoughlyEqual("getRotationMatrixFromVector do not return proper matrix", in testGetRotationMatrixFromVector()
439 assertRoughlyEqual("getRotationMatrixFromVector returns incorrect matrix", in testGetRotationMatrixFromVector()
606 private static void assertRoughlyEqual(String message, float a, float b, float bound) { in assertRoughlyEqual() method in SensorManagerStaticTest
618 assertRoughlyEqual(message, (float)Math.sqrt(sum), 0.f, bound); in assertVectorRoughlyEqual()