Home
last modified time | relevance | path

Searched refs:TOLERANCE (Results 1 – 20 of 20) 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()
DAvoidXfermodeTest.java31 private static final int TOLERANCE = 255; field in AvoidXfermodeTest
43 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.AVOID); in testAvoidXfermode()
48 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.TARGET); in testAvoidXfermode()
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()
DColorMatrixColorFilterTest.java31 private static final int TOLERANCE = 1; field in ColorMatrixColorFilterTest
95 assertColor(expected, actual, TOLERANCE); in assertColor()
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()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DPathShapeTest.java34 private static final int TOLERANCE = 4; field in PathShapeTest
85 assertEquals(50, horizontal, TOLERANCE); in testDraw()
86 assertEquals(50, vertical, TOLERANCE); in testDraw()
87 assertEquals(25, diagonal, TOLERANCE); in testDraw()
DArcShapeTest.java36 private static final int TOLERANCE = 4; // tolerance in pixels field in ArcShapeTest
72 assertEquals((double)SQUARE / 2 / Math.sqrt(2), count, TOLERANCE); in testDraw()
DOvalShapeTest.java36 private static final int TOLERANCE = 4; // tolerance in pixels field in OvalShapeTest
66 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.java56 private static final float TOLERANCE = 0.0002f; field in MediaRecorderTest
308 assertTrue("Incorrect latitude: " + latitude, Math.abs(latitude - LATITUDE) <= TOLERANCE); in checkLocationInFile()
309 … assertTrue("Incorrect longitude: " + longitude, Math.abs(longitude - LONGITUDE) <= TOLERANCE); in checkLocationInFile()
/cts/tests/tests/widget/src/android/widget/cts/
DScrollViewTest.java51 private static final int TOLERANCE = 2; field in ScrollViewTest
281 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled()
300 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled()
360 assertEquals(mPageHeight, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
363 assertEquals(mPageHeight * 2, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
367 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
370 assertEquals(mScrollBottom - mPageHeight, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
373 assertEquals(mScrollBottom -mPageHeight * 2, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
491 mScrollView.computeVerticalScrollRange(), TOLERANCE); in testComputeVerticalScrollRange()
/cts/tests/tests/telephony/src/android/telephony/cts/
DSubscriptionManagerTest.java36 private static final int TOLERANCE = 1000; field in SubscriptionManagerTest
DTelephonyManagerTest.java43 private static final int TOLERANCE = 1000; field in TelephonyManagerTest
121 mLock.wait(TOLERANCE); in testListen()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimationDrawableTest.java44 private static final long TOLERANCE = 500; field in AnimationDrawableTest
367 new PollingCheck(timeout + TOLERANCE) { in pollingCheckDrawable()
383 Thread.sleep(duration + TOLERANCE); in assertStoppedAnimation()
/cts/tests/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()