/cts/tests/tests/view/src/android/view/cts/ |
D | MotionEventTest.java | 48 private static final float DELTA = 0.01f; field in MotionEventTest 81 assertEquals(X_3F, mMotionEvent1.getX(), DELTA); in testObtain1() 82 assertEquals(Y_4F, mMotionEvent1.getY(), DELTA); in testObtain1() 83 assertEquals(X_3F, mMotionEvent1.getRawX(), DELTA); in testObtain1() 84 assertEquals(Y_4F, mMotionEvent1.getRawY(), DELTA); in testObtain1() 88 assertEquals(PRESSURE_1F, mMotionEvent1.getPressure(), DELTA); in testObtain1() 89 assertEquals(SIZE_1F, mMotionEvent1.getSize(), DELTA); in testObtain1() 90 assertEquals(1.0f, mMotionEvent1.getXPrecision(), DELTA); in testObtain1() 91 assertEquals(1.0f, mMotionEvent1.getYPrecision(), DELTA); in testObtain1() 102 assertEquals(motionEvent.getX(), mMotionEvent1.getX(), DELTA); in testObtain2() local [all …]
|
/cts/tests/tests/location/src/android/location/cts/ |
D | LocationTest.java | 37 private static final float DELTA = 0.1f; field in LocationTest 87 assertEquals(-128.66, location.bearingTo(dest), DELTA); in testBearingTo() 99 assertEquals(0.0f, bearing, DELTA); in testBearingTo() 102 assertEquals(90.0f, bearing, DELTA); in testBearingTo() 107 assertEquals(0.0f, bearing, DELTA); in testBearingTo() 220 assertEquals(0.0, result[0], DELTA); in testDistanceBetween() 221 assertEquals(0.0, result[1], DELTA); in testDistanceBetween() 222 assertEquals(0.0, result[2], DELTA); in testDistanceBetween() 226 assertEquals(125.4538, result[1], DELTA); in testDistanceBetween() 227 assertEquals(93.3971, result[2], DELTA); in testDistanceBetween() [all …]
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | GridLayoutAnimationControllerTest.java | 49 private static final float DELTA = 0.1f; field in GridLayoutAnimationControllerTest 138 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 139 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 145 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 146 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() 147 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 153 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 155 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay() 161 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay() 162 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay() [all …]
|
D | LayoutAnimationControllerTest.java | 51 private static final float DELTA = 0.1f; field in LayoutAnimationControllerTest 101 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 102 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 108 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 110 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder() 116 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 117 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 141 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() 142 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder() 149 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder() [all …]
|
D | ScaleAnimationTest.java | 35 private static float DELTA = 0.001f; field in ScaleAnimationTest 146 assertEquals(expectedX, values[Matrix.MSCALE_X], DELTA); 147 assertEquals(expectedY, values[Matrix.MSCALE_Y], DELTA);
|
D | AnimationSetTest.java | 42 private static final float DELTA = 0.001f; field in AnimationSetTest 318 assertEquals(expected.getAlpha(), actual.getAlpha(), DELTA); in assertTransformationEquals() local 324 assertEquals(expectedValues[i], actualValues[i], DELTA); in assertTransformationEquals()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | TextViewFadingEdgeTest.java | 36 public static final float DELTA = 0.01f; field in TextViewFadingEdgeTest 137 data.expectationLeft, textView.getLeftFadingEdgeStrength(), DELTA); in testFadingEdge() 139 data.expectationRight, textView.getRightFadingEdgeStrength(), DELTA); in testFadingEdge()
|
D | GalleryTest.java | 64 private final static float DELTA = 0.01f; field in GalleryTest 156 assertEquals(DEFAULT_ALPHA, t.getAlpha(), DELTA); in checkUnselectedAlpha() 158 assertEquals(alpha, t.getAlpha(), DELTA); in checkUnselectedAlpha()
|
D | AbsListViewTest.java | 74 private static final float DELTA = 0.001f; field in AbsListViewTest 609 assertEquals(0.0f, listView.getTopFadingEdgeStrength(), DELTA); in testGetTopBottomFadingEdgeStrength() 610 assertEquals(0.0f, listView.getBottomFadingEdgeStrength(), DELTA); in testGetTopBottomFadingEdgeStrength()
|