/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorMatrixTest.java | 33 private static final float TOLERANCE = 0.0000001f; field in ColorMatrixTest 125 assertEquals(-1.0f, ret[6], TOLERANCE); in testSetRotate() 126 assertEquals(-1.0f, ret[12], TOLERANCE); in testSetRotate() 127 assertEquals(0, ret[7], TOLERANCE); in testSetRotate() 128 assertEquals(0, ret[11], TOLERANCE); in testSetRotate() 131 assertEquals(-1.0f, ret[0], TOLERANCE); in testSetRotate() 132 assertEquals(-1.0f, ret[12], TOLERANCE); in testSetRotate() 133 assertEquals(0, ret[2], TOLERANCE); in testSetRotate() 134 assertEquals(0, ret[10], TOLERANCE); in testSetRotate() 137 assertEquals(-1.0f, ret[0], TOLERANCE); in testSetRotate() [all …]
|
D | ComposeShaderTest.java | 44 private static final int TOLERANCE = 5; field in ComposeShaderTest 67 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); in testPorterDuff() 68 assertEquals(y, Color.red(pixel), TOLERANCE); in testPorterDuff() 69 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff() 70 assertEquals(x, Color.blue(pixel), TOLERANCE); in testPorterDuff()
|
D | PorterDuffColorFilterTest.java | 36 private static final int TOLERANCE = 5; field in PorterDuffColorFilterTest 59 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE); in testPorterDuffColorFilter() 60 assertEquals(0x80, Color.green(lowerLeft), TOLERANCE); in testPorterDuffColorFilter()
|
D | SweepGradientTest.java | 47 private static final int TOLERANCE = 10; field in SweepGradientTest 68 verifyColors(colors, positions, TOLERANCE); in test2Colors() 79 verifyColors(colors, positions, TOLERANCE); in testColorArray() 91 verifyColors(colors, positions, TOLERANCE); in testMultiColor()
|
D | CornerPathEffectTest.java | 46 private static final int TOLERANCE = 5; field in CornerPathEffectTest 81 expectedPaint.setStrokeWidth(TOLERANCE); in testCornerPathEffect()
|
D | InterpolatorTest.java | 37 private static final float TOLERANCE = 0.1f; field in InterpolatorTest 280 assertEquals(expected, values[0], TOLERANCE); in verifyValue() 287 assertArrayEquals(expected, values, TOLERANCE); in verifyValues() 293 assertEquals(expected, values[0], TOLERANCE); in verifyValue()
|
D | LightingColorFilterTest.java | 36 private static final int TOLERANCE = 2; field in LightingColorFilterTest 39 ColorUtils.verifyColor(expected, actual, TOLERANCE); in verifyColor()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | PathShapeTest.java | 43 private static final int TOLERANCE = 4; field in PathShapeTest 96 assertEquals(50, horizontal, TOLERANCE); in testDraw() 97 assertEquals(50, vertical, TOLERANCE); in testDraw() 98 assertEquals(25, diagonal, TOLERANCE); in testDraw()
|
D | ArcShapeTest.java | 45 private static final int TOLERANCE = 4; // tolerance in pixels field in ArcShapeTest 95 assertEquals((double) SQUARE / 2 / Math.sqrt(2), count, TOLERANCE); in testDraw()
|
D | OvalShapeTest.java | 47 private static final int TOLERANCE = 4; // tolerance in pixels field in OvalShapeTest 79 assertEquals((double)SQUARE / Math.sqrt(2), count, TOLERANCE); in testDraw()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EqualizerTest.java | 35 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()
|
D | MediaMuxerTest.java | 49 private static final float TOLERANCE = 0.0002f; field in MediaMuxerTest 501 Math.abs(latitude - LATITUDE) <= TOLERANCE); in verifyLocationInFile() 503 Math.abs(longitude - LONGITUDE) <= TOLERANCE); in verifyLocationInFile()
|
D | MediaRecorderTest.java | 77 private static final float TOLERANCE = 0.0002f; field in MediaRecorderTest 527 assertTrue("Incorrect latitude: " + latitude, Math.abs(latitude - LATITUDE) <= TOLERANCE); in checkLocationInFile() 528 … assertTrue("Incorrect longitude: " + longitude, Math.abs(longitude - LONGITUDE) <= TOLERANCE); in checkLocationInFile()
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 69 private static final int TOLERANCE = 1000; field in TelephonyManagerTest 127 mLock.wait(TOLERANCE); // wait for mListener in testListen() 134 mLock.wait(TOLERANCE); in testListen() 143 mLock.wait(TOLERANCE); in testListen() 151 Thread.sleep(TOLERANCE); in testListen() 159 mLock.wait(TOLERANCE); in testListen() 496 mLock.wait(TOLERANCE); in testGetServiceState()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollViewTest.java | 67 private static final int TOLERANCE = 2; field in ScrollViewTest 303 assertEquals(mScrollBottom, mScrollViewCustom.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled() 314 assertEquals(mScrollBottom, mScrollViewCustom.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled() 559 assertEquals(mPageHeight, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll() 562 assertEquals(mPageHeight * 2, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll() 566 assertEquals(mScrollBottom, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll() 569 assertEquals(mScrollBottom - mPageHeight, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll() 572 assertEquals(mScrollBottom -mPageHeight * 2, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll() 689 ((MyScrollView) mScrollViewCustom).computeVerticalScrollRange(), TOLERANCE); in testComputeVerticalScrollRange()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimationDrawableTest.java | 61 private static final long TOLERANCE = 500; field in AnimationDrawableTest 360 PollingCheck.waitFor(timeout + TOLERANCE, in pollingCheckDrawable() 371 Thread.sleep(duration + TOLERANCE); in verifyStoppedAnimation()
|
/cts/tests/app/src/android/app/cts/ |
D | NotificationTest.java | 59 private static final int TOLERANCE = 200; field in NotificationTest 77 assertTrue(System.currentTimeMillis() - mNotification.when < TOLERANCE); in testConstructor()
|