Home
last modified time | relevance | path

Searched refs:TOLERANCE (Results 1 – 19 of 19) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DColorMatrixTest.java31 private static final float TOLERANCE = 0.0000001f; field in ColorMatrixTest
134 assertEquals(-1.0f, ret[6], TOLERANCE); in testSetRotate()
135 assertEquals(-1.0f, ret[12], TOLERANCE); in testSetRotate()
136 assertEquals(0, ret[7], TOLERANCE); in testSetRotate()
137 assertEquals(0, ret[11], TOLERANCE); in testSetRotate()
140 assertEquals(-1.0f, ret[0], TOLERANCE); in testSetRotate()
141 assertEquals(-1.0f, ret[12], TOLERANCE); in testSetRotate()
142 assertEquals(0, ret[2], TOLERANCE); in testSetRotate()
143 assertEquals(0, ret[10], TOLERANCE); in testSetRotate()
146 assertEquals(-1.0f, ret[0], TOLERANCE); in testSetRotate()
[all …]
DLightingColorFilterTest.java31 private static final int TOLERANCE = 2; field in LightingColorFilterTest
84 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE); in assertColor() local
85 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); in assertColor() local
86 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); in assertColor() local
87 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE); in assertColor() local
DComposeShaderTest.java39 private static final int TOLERANCE = 5; field in ComposeShaderTest
61 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); in testPorterDuff()
62 assertEquals(y, Color.red(pixel), TOLERANCE); in testPorterDuff()
63 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff()
64 assertEquals(x, Color.blue(pixel), TOLERANCE); in testPorterDuff()
DSweepGradientTest.java41 private static final int TOLERANCE = 10; field in SweepGradientTest
58 checkColors(colors, positions, TOLERANCE); in test2Colors()
68 checkColors(colors, positions, TOLERANCE); in testColorArray()
79 checkColors(colors, positions, TOLERANCE); in testMultiColor()
DPorterDuffColorFilterTest.java29 private static final int TOLERANCE = 5; field in PorterDuffColorFilterTest
51 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE); in testPorterDuffColorFilter()
52 assertEquals(0x80, Color.green(lowerLeft), TOLERANCE); in testPorterDuffColorFilter()
DCornerPathEffectTest.java39 private static final int TOLERANCE = 5; field in CornerPathEffectTest
73 expectedPaint.setStrokeWidth(TOLERANCE); in testCornerPathEffect()
DInterpolatorTest.java27 private static final float TOLERANCE = 0.1f; field in InterpolatorTest
263 assertEquals(expected, values[0], TOLERANCE); in assertValue()
276 assertEquals(expected, values[0], TOLERANCE); in assertValue()
282 assertEquals(expected[i], actual[i], TOLERANCE); in assertFloatArray()
DColorMatrixColorFilterTest.java31 private static final int TOLERANCE = 1; field in ColorMatrixColorFilterTest
95 assertColor(expected, actual, TOLERANCE); in assertColor()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DPathShapeTest.java35 private static final int TOLERANCE = 4; field in PathShapeTest
88 assertEquals(50, horizontal, TOLERANCE); in testDraw()
89 assertEquals(50, vertical, TOLERANCE); in testDraw()
90 assertEquals(25, diagonal, TOLERANCE); in testDraw()
DArcShapeTest.java37 private static final int TOLERANCE = 4; // tolerance in pixels field in ArcShapeTest
75 assertEquals((double)SQUARE / 2 / Math.sqrt(2), count, TOLERANCE); in testDraw()
DOvalShapeTest.java38 private static final int TOLERANCE = 4; // tolerance in pixels field in OvalShapeTest
68 assertEquals((double)SQUARE / Math.sqrt(2), count, TOLERANCE); in testDraw()
/cts/tests/tests/media/src/android/media/cts/
DEqualizerTest.java35 private final static float TOLERANCE = 100; // +/-1dB field in EqualizerTest
91 (level >= (levelRange[1] - TOLERANCE)) && in test1_0BandLevel()
92 (level <= (levelRange[1] + TOLERANCE))); in test1_0BandLevel()
172 (settings.bandLevels[0] >= (newLevel - TOLERANCE)) && in test1_3Properties()
173 (settings.bandLevels[0] <= (newLevel + TOLERANCE))); in test1_3Properties()
DMediaMuxerTest.java45 private static final float TOLERANCE = 0.0002f; field in MediaMuxerTest
404 Math.abs(latitude - LATITUDE) <= TOLERANCE); in verifyLocationInFile()
406 Math.abs(longitude - LONGITUDE) <= TOLERANCE); in verifyLocationInFile()
DMediaRecorderTest.java55 private static final float TOLERANCE = 0.0002f; field in MediaRecorderTest
358 assertTrue("Incorrect latitude: " + latitude, Math.abs(latitude - LATITUDE) <= TOLERANCE); in checkLocationInFile()
359 … assertTrue("Incorrect longitude: " + longitude, Math.abs(longitude - LONGITUDE) <= TOLERANCE); in checkLocationInFile()
/cts/tests/tests/widget/src/android/widget/cts/
DScrollViewTest.java55 private static final int TOLERANCE = 2; field in ScrollViewTest
285 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled()
304 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled()
537 assertEquals(mPageHeight, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
540 assertEquals(mPageHeight * 2, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
544 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
547 assertEquals(mScrollBottom - mPageHeight, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
550 assertEquals(mScrollBottom -mPageHeight * 2, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
668 mScrollView.computeVerticalScrollRange(), TOLERANCE); in testComputeVerticalScrollRange()
/cts/tests/tests/telephony/src/android/telephony/cts/
DTelephonyManagerTest.java45 private static final int TOLERANCE = 1000; field in TelephonyManagerTest
101 mLock.wait(TOLERANCE); in testListen()
121 mLock.wait(TOLERANCE); in testListen()
DSubscriptionManagerTest.java36 private static final int TOLERANCE = 1000; field in SubscriptionManagerTest
/cts/tests/app/src/android/app/cts/
DNotificationTest.java37 private static final int TOLERANCE = 200; field in NotificationTest
50 assertTrue(System.currentTimeMillis() - mNotification.when < TOLERANCE); in testConstructor()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimationDrawableTest.java44 private static final long TOLERANCE = 500; field in AnimationDrawableTest
398 new PollingCheck(timeout + TOLERANCE) { in pollingCheckDrawable()
414 Thread.sleep(duration + TOLERANCE); in assertStoppedAnimation()