Home
last modified time | relevance | path

Searched refs:DELTA (Results 1 – 12 of 12) sorted by relevance

/cts/tests/tests/view/src/android/view/cts/
DMotionEventUtils.java26 private static final float DELTA = 0.01f; field in MotionEventUtils
130 assertEquals("X coordinates should be the same", that.getX(), this.x, DELTA); in verifyMatches()
132 that.getAxisValue(MotionEvent.AXIS_X), this.x, DELTA); in verifyMatches()
134 assertEquals("Y coordinates should be the same", that.getY(), this.y, DELTA); in verifyMatches()
136 that.getAxisValue(MotionEvent.AXIS_Y), this.y, DELTA); in verifyMatches()
138 assertEquals("Pressure should be the same", that.getPressure(), this.pressure, DELTA); in verifyMatches()
140 that.getAxisValue(MotionEvent.AXIS_PRESSURE), this.pressure, DELTA); in verifyMatches()
142 assertEquals("Size should be the same", that.getSize(), this.size, DELTA); in verifyMatches()
144 that.getAxisValue(MotionEvent.AXIS_SIZE), this.size, DELTA); in verifyMatches()
147 that.getTouchMajor(), this.touchMajor,DELTA); in verifyMatches()
[all …]
DMotionEventTest.java68 private static final float DELTA = 0.01f; field in MotionEventTest
102 assertEquals(X_3F, mMotionEvent1.getX(), DELTA); in testObtainBasic()
103 assertEquals(Y_4F, mMotionEvent1.getY(), DELTA); in testObtainBasic()
104 assertEquals(X_3F, mMotionEvent1.getRawX(), DELTA); in testObtainBasic()
105 assertEquals(Y_4F, mMotionEvent1.getRawY(), DELTA); in testObtainBasic()
109 assertEquals(PRESSURE_1F, mMotionEvent1.getPressure(), DELTA); in testObtainBasic()
110 assertEquals(SIZE_1F, mMotionEvent1.getSize(), DELTA); in testObtainBasic()
111 assertEquals(1.0f, mMotionEvent1.getXPrecision(), DELTA); in testObtainBasic()
112 assertEquals(1.0f, mMotionEvent1.getYPrecision(), DELTA); in testObtainBasic()
122 assertEquals(mMotionEvent2.getX(), mMotionEventDynamic.getX(), DELTA); in testObtainFromMotionEvent() local
[all …]
/cts/tests/tests/location/src/android/location/cts/
DLocationTest.java37 private static final float DELTA = 0.1f; field in LocationTest
91 assertEquals(-128.66, location.bearingTo(dest), DELTA); in testBearingTo()
103 assertEquals(0.0f, bearing, DELTA); in testBearingTo()
106 assertEquals(90.0f, bearing, DELTA); in testBearingTo()
111 assertEquals(0.0f, bearing, DELTA); in testBearingTo()
224 assertEquals(0.0, result[0], DELTA); in testDistanceBetween()
225 assertEquals(0.0, result[1], DELTA); in testDistanceBetween()
226 assertEquals(0.0, result[2], DELTA); in testDistanceBetween()
230 assertEquals(125.4538, result[1], DELTA); in testDistanceBetween()
231 assertEquals(93.3971, result[2], DELTA); in testDistanceBetween()
[all …]
/cts/tests/tests/view/src/android/view/animation/cts/
DGridLayoutAnimationControllerTest.java52 private static final float DELTA = 0.1f; field in GridLayoutAnimationControllerTest
148 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay()
149 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay()
155 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay()
156 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay()
157 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay()
163 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay()
165 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in assertChildrenDelay()
171 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in assertChildrenDelay()
172 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in assertChildrenDelay()
[all …]
DLayoutAnimationControllerTest.java54 private static final float DELTA = 0.1f; field in LayoutAnimationControllerTest
108 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder()
109 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder()
115 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder()
117 assertEquals(0.0f, transformation3.getAlpha(), DELTA); in testAccessOrder()
123 assertEquals(1.0f, transformation1.getAlpha(), DELTA); in testAccessOrder()
124 assertEquals(1.0f, transformation2.getAlpha(), DELTA); in testAccessOrder()
148 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder()
149 assertEquals(0.0f, transformation2.getAlpha(), DELTA); in testAccessOrder()
156 assertEquals(0.0f, transformation1.getAlpha(), DELTA); in testAccessOrder()
[all …]
DScaleAnimationTest.java48 private static float DELTA = 0.001f; field in ScaleAnimationTest
165 assertEquals(expectedX, values[Matrix.MSCALE_X], DELTA);
166 assertEquals(expectedY, values[Matrix.MSCALE_Y], DELTA);
DAnimationSetTest.java54 private static final float DELTA = 0.001f; field in AnimationSetTest
345 assertEquals(expected.getAlpha(), actual.getAlpha(), DELTA); in assertTransformationEquals() local
351 assertEquals(expectedValues[i], actualValues[i], DELTA); in assertTransformationEquals()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAdaptiveIconMaskTest.java50 private static final double DELTA = .01f; field in AdaptiveIconMaskTest
83 assertTrue("Mask top should be larger than or equal to 0", -DELTA <= bounds.top); in testDeviceConfigMask_bounds()
84 assertTrue("Mask left should be larger than or equal to 0", -DELTA <= bounds.left); in testDeviceConfigMask_bounds()
87 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.bottom); in testDeviceConfigMask_bounds()
90 AdaptiveIconDrawable.MASK_SIZE + DELTA >= bounds.right); in testDeviceConfigMask_bounds()
/cts/tests/tests/media/src/android/media/cts/
DPlaybackStateTest.java40 private static final float DELTA = 1e-7f; field in PlaybackStateTest
60 assertEquals(0.0f, state.getPlaybackSpeed(), DELTA); in testBuilder()
91 assertEquals(TEST_PLAYBACK_SPEED, state.getPlaybackSpeed(), DELTA); in testBuilder_setterMethods()
108 assertEquals(TEST_PLAYBACK_SPEED_ON_REWIND, state.getPlaybackSpeed(), DELTA); in testBuilder_setStateWithUpdateTime()
198 assertEquals(TEST_PLAYBACK_SPEED, stateOut.getPlaybackSpeed(), DELTA); in testWriteToParcel()
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFadingEdgeTest.java57 public static final float DELTA = 0.01f; field in TextViewFadingEdgeTest
152 data.expectationLeft, textView.getLeftFadingEdgeStrength(), DELTA); in testFadingEdge()
154 data.expectationRight, textView.getRightFadingEdgeStrength(), DELTA); in testFadingEdge()
DGalleryTest.java66 private final static float DELTA = 0.01f; field in GalleryTest
146 assertEquals(DEFAULT_ALPHA, t.getAlpha(), DELTA); in checkUnselectedAlpha()
148 assertEquals(alpha, t.getAlpha(), DELTA); in checkUnselectedAlpha()
DAbsListViewTest.java123 private static final float DELTA = 0.001f; field in AbsListViewTest
645 assertEquals(0.0f, listView.getTopFadingEdgeStrength(), DELTA); in testGetTopBottomFadingEdgeStrength()
646 assertEquals(0.0f, listView.getBottomFadingEdgeStrength(), DELTA); in testGetTopBottomFadingEdgeStrength()