/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | ColorMatrixTest.java | 34 private static final float TOLERANCE = 0.0000001f; field in ColorMatrixTest 126 assertEquals(-1.0f, ret[6], TOLERANCE); in testSetRotate() 127 assertEquals(-1.0f, ret[12], TOLERANCE); in testSetRotate() 128 assertEquals(0, ret[7], TOLERANCE); in testSetRotate() 129 assertEquals(0, ret[11], TOLERANCE); in testSetRotate() 132 assertEquals(-1.0f, ret[0], TOLERANCE); in testSetRotate() 133 assertEquals(-1.0f, ret[12], TOLERANCE); in testSetRotate() 134 assertEquals(0, ret[2], TOLERANCE); in testSetRotate() 135 assertEquals(0, ret[10], TOLERANCE); in testSetRotate() 138 assertEquals(-1.0f, ret[0], TOLERANCE); in testSetRotate() [all …]
|
D | ComposeShaderTest.java | 46 private static final int TOLERANCE = 5; field in ComposeShaderTest 69 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); in testPorterDuff() 70 assertEquals(y, Color.red(pixel), TOLERANCE); in testPorterDuff() 71 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff() 72 assertEquals(x, Color.blue(pixel), TOLERANCE); in testPorterDuff() 102 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); in testBlendMode() 103 assertEquals(y, Color.red(pixel), TOLERANCE); in testBlendMode() 104 assertEquals(green, Color.green(pixel), TOLERANCE); in testBlendMode() 105 assertEquals(x, Color.blue(pixel), TOLERANCE); in testBlendMode()
|
D | PorterDuffColorFilterTest.java | 37 private static final int TOLERANCE = 5; field in PorterDuffColorFilterTest 60 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE); in testPorterDuffColorFilter() 61 assertEquals(0x80, Color.green(lowerLeft), TOLERANCE); in testPorterDuffColorFilter()
|
D | InterpolatorTest.java | 38 private static final float TOLERANCE = 0.1f; field in InterpolatorTest 281 assertEquals(expected, values[0], TOLERANCE); in verifyValue() 288 assertArrayEquals(expected, values, TOLERANCE); in verifyValues() 294 assertEquals(expected, values[0], TOLERANCE); in verifyValue()
|
D | CornerPathEffectTest.java | 47 private static final int TOLERANCE = 5; field in CornerPathEffectTest 83 expectedPaint.setStrokeWidth(TOLERANCE); in testCornerPathEffect()
|
D | LightingColorFilterTest.java | 37 private static final int TOLERANCE = 2; field in LightingColorFilterTest 40 ColorUtils.verifyColor(expected, actual, TOLERANCE); in verifyColor()
|
D | SweepGradientTest.java | 52 private static final int TOLERANCE = 10; field in SweepGradientTest 73 verifyColors(colors, positions, TOLERANCE); in test2Colors() 84 verifyColors(colors, positions, TOLERANCE); in testColorArray() 96 verifyColors(colors, positions, TOLERANCE); in testMultiColor()
|
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/ |
D | BitmapImage.java | 35 private static final int TOLERANCE = 4; field in BitmapImage 110 return lhs == rhs || (Math.abs(Color.red(lhs) - Color.red(rhs)) <= TOLERANCE in robustMatchInternal() 111 && Math.abs(Color.green(lhs) - Color.green(rhs)) <= TOLERANCE in robustMatchInternal() 112 && Math.abs(Color.blue(lhs) - Color.blue(rhs)) <= TOLERANCE); in robustMatchInternal()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
D | PathShapeTest.java | 44 private static final int TOLERANCE = 4; field in PathShapeTest 97 assertEquals(50, horizontal, TOLERANCE); in testDraw() 98 assertEquals(50, vertical, TOLERANCE); in testDraw() 99 assertEquals(25, diagonal, TOLERANCE); in testDraw()
|
D | ArcShapeTest.java | 46 private static final int TOLERANCE = 4; // tolerance in pixels field in ArcShapeTest 96 assertEquals((double) SQUARE / 2 / Math.sqrt(2), count, TOLERANCE); in testDraw()
|
D | OvalShapeTest.java | 48 private static final int TOLERANCE = 4; // tolerance in pixels field in OvalShapeTest 80 assertEquals((double)SQUARE / Math.sqrt(2), count, TOLERANCE); in testDraw()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | Watermark.java | 35 private static final int TOLERANCE = 4; field in Watermark 120 || (Math.abs(Color.red(targetPx) - Color.red(sourcePx)) <= TOLERANCE in robustMatch() 121 && Math.abs(Color.green(targetPx) - Color.green(sourcePx)) <= TOLERANCE in robustMatch() 122 && Math.abs(Color.blue(targetPx) - Color.blue(sourcePx)) <= TOLERANCE); in robustMatch()
|
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/ |
D | GameviceGv186Test.java | 33 private static final float TOLERANCE = 0.005f; field in GameviceGv186Test 48 expectedEvent.getAxisValue(axis), actualEvent.getAxisValue(axis), TOLERANCE); in assertAxis()
|
D | InputTestCase.java | 54 private static final float TOLERANCE = 0.005f; field in InputTestCase 182 TOLERANCE); in assertAxis()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | EqualizerTest.java | 36 private final static float TOLERANCE = 100; // +/-1dB field in EqualizerTest 92 (level >= (levelRange[1] - TOLERANCE)) && in test1_0BandLevel() 93 (level <= (levelRange[1] + TOLERANCE))); in test1_0BandLevel() 173 (settings.bandLevels[0] >= (newLevel - TOLERANCE)) && in test1_3Properties() 174 (settings.bandLevels[0] <= (newLevel + TOLERANCE))); in test1_3Properties()
|
D | DecodeEditEncodeTest.java | 72 private static final int TOLERANCE = 8; field in DecodeEditEncodeTest 769 int maxDelta = frameIndex < INITIAL_TOLERANCE_FRAME_LIMIT ? INITIAL_TOLERANCE : TOLERANCE; in checkSurfaceFrame()
|
D | MediaMuxerTest.java | 53 private static final float TOLERANCE = 0.0002f; field in MediaMuxerTest 884 Math.abs(latitude - LATITUDE) <= TOLERANCE); in verifyLocationInFile() 886 Math.abs(longitude - LONGITUDE) <= TOLERANCE); in verifyLocationInFile()
|
D | MediaRecorderTest.java | 86 private static final float TOLERANCE = 0.0002f; field in MediaRecorderTest 543 assertTrue("Incorrect latitude: " + latitude, Math.abs(latitude - LATITUDE) <= TOLERANCE); in checkLocationInFile() 544 … assertTrue("Incorrect longitude: " + longitude, Math.abs(longitude - LONGITUDE) <= TOLERANCE); in checkLocationInFile()
|
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/ |
D | TextClassifierEventTest.java | 39 private static final float TOLERANCE = 0.000001f; field in TextClassifierEventTest 201 assertThat(event.getScores()[0]).isWithin(TOLERANCE).of(0.5f); in assertFullTextSelectionEvent() 261 assertThat(event.getScores()[0]).isWithin(TOLERANCE).of(0.5f); in assertFullTextLinkifyEvent() 325 assertThat(event.getScores()[0]).isWithin(TOLERANCE).of(0.5f); in assertFullConversationActionsEvent() 391 assertThat(event.getScores()[0]).isWithin(TOLERANCE).of(0.5f); in assertFullLanguageDetectionEvent()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | ScrollViewTest.java | 78 private static final int TOLERANCE = 2; field in ScrollViewTest 324 assertEquals(mScrollBottom, mScrollViewCustom.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled() 335 assertEquals(mScrollBottom, mScrollViewCustom.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled() 580 assertEquals(mPageHeight, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll() 583 assertEquals(mPageHeight * 2, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll() 587 assertEquals(mScrollBottom, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll() 590 assertEquals(mScrollBottom - mPageHeight, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll() 593 assertEquals(mScrollBottom -mPageHeight * 2, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll() 710 ((MyScrollView) mScrollViewCustom).computeVerticalScrollRange(), TOLERANCE); in testComputeVerticalScrollRange()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimationDrawableTest.java | 62 private static final long TOLERANCE = 500; field in AnimationDrawableTest 361 PollingCheck.waitFor(timeout + TOLERANCE, in pollingCheckDrawable() 372 Thread.sleep(duration + TOLERANCE); in verifyStoppedAnimation()
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | TelephonyManagerTest.java | 163 private static final int TOLERANCE = 1000; field in TelephonyManagerTest 164 private static final int TIMEOUT_FOR_NETWORK_OPS = TOLERANCE * 180; 584 mLock.wait(TOLERANCE); // wait for mListener in testListen() 591 mLock.wait(TOLERANCE); in testListen() 600 mLock.wait(TOLERANCE); in testListen() 610 Thread.sleep(TOLERANCE); in testListen() 618 mLock.wait(TOLERANCE); in testListen() 1355 TOLERANCE/5 /*timeout per poll*/); in testResetSettings() local 1364 5 /*times*/, TOLERANCE/5 /*timeout per poll*/)); in testResetSettings() 1379 5 /*times*/, TOLERANCE/5 /*timeout per poll*/)); in testResetSettings() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | BlendModeColorFilterTest.java | 40 private static final int TOLERANCE = 5; field in BlendModeColorFilterTest
|
/cts/tests/tests/view/src/android/view/cts/input/ |
D | InputDeviceSensorManagerTest.java | 93 private static final float TOLERANCE = 0.01f; field in InputDeviceSensorManagerTest 259 assertEquals("Data index[" + i + "] not match", expected[i], received[i], TOLERANCE); in assertSensorDataEquals()
|
/cts/tests/media/src/android/mediav2/cts/ |
D | MuxerTest.java | 433 private static final float TOLERANCE = 0.0002f; field in MuxerTest.TestApi 511 Math.abs(latitude - annapurnaLat) <= TOLERANCE); in verifyLocationInFile() 513 Math.abs(longitude - annapurnaLong) <= TOLERANCE); in verifyLocationInFile()
|