/cts/tests/tests/app/src/android/app/cts/ |
NotificationTest.java | 37 private static final int TOLERANCE = 200; 50 assertTrue(System.currentTimeMillis() - mNotification.when < TOLERANCE);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
AvoidXfermodeTest.java | 29 * ToBeFixed: This test ought to work with a TOLERANCE of 0. See bug 2034547. 31 private static final int TOLERANCE = 255; 43 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.AVOID); 48 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.TARGET);
|
LightingColorFilterTest.java | 31 private static final int TOLERANCE = 2; 84 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE); 85 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); 86 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); 87 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE);
|
PorterDuffColorFilterTest.java | 29 private static final int TOLERANCE = 5; 51 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE); 52 assertEquals(0x80, Color.green(lowerLeft), TOLERANCE);
|
ColorMatrixColorFilterTest.java | 31 private static final int TOLERANCE = 1; 92 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); 93 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); 94 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE); 95 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE);
|
ComposeShaderTest.java | 39 private static final int TOLERANCE = 5; 61 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); 62 assertEquals(y, Color.red(pixel), TOLERANCE); 63 assertEquals(green, Color.green(pixel), TOLERANCE); 64 assertEquals(x, Color.blue(pixel), TOLERANCE);
|
CornerPathEffectTest.java | 39 private static final int TOLERANCE = 5; 69 // A paint that draws the expected path with a tolerance width into the red channel 73 expectedPaint.setStrokeWidth(TOLERANCE);
|
InterpolatorTest.java | 27 private static final float TOLERANCE = 0.1f; 65 // deviate more than TOLERANCE 263 assertEquals(expected, values[0], TOLERANCE); 276 assertEquals(expected, values[0], TOLERANCE); 282 assertEquals(expected[i], actual[i], TOLERANCE);
|
ColorMatrixTest.java | 31 private static final float TOLERANCE = 0.0000001f; 134 assertEquals(-1.0f, ret[6], TOLERANCE); 135 assertEquals(-1.0f, ret[12], TOLERANCE); 136 assertEquals(0, ret[7], TOLERANCE); 137 assertEquals(0, ret[11], TOLERANCE); 140 assertEquals(-1.0f, ret[0], TOLERANCE); 141 assertEquals(-1.0f, ret[12], TOLERANCE); 142 assertEquals(0, ret[2], TOLERANCE); 143 assertEquals(0, ret[10], TOLERANCE); 146 assertEquals(-1.0f, ret[0], TOLERANCE); [all...] |
SweepGradientTest.java | 41 private static final int TOLERANCE = 10; 58 checkColors(colors, positions, TOLERANCE); 68 checkColors(colors, positions, TOLERANCE); 79 checkColors(colors, positions, TOLERANCE); 82 private void checkColors(int[] colors, float[] positions, int tolerance) { 124 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); local 125 assertEquals(Color.red(color), Color.red(pixel), tolerance); local 126 assertEquals(Color.green(color), Color.green(pixel), tolerance); local 127 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); local
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
ArcShapeTest.java | 36 private static final int TOLERANCE = 4; // tolerance in pixels 72 assertEquals((double)SQUARE / 2 / Math.sqrt(2), count, TOLERANCE);
|
OvalShapeTest.java | 36 private static final int TOLERANCE = 4; // tolerance in pixels 66 assertEquals((double)SQUARE / Math.sqrt(2), count, TOLERANCE);
|
PathShapeTest.java | 34 private static final int TOLERANCE = 4; 85 assertEquals(50, horizontal, TOLERANCE); 86 assertEquals(50, vertical, TOLERANCE); 87 assertEquals(25, diagonal, TOLERANCE);
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
ViewClippingTests.java | 65 static final int TOLERANCE = 10; 67 return new RectVerifier(Color.WHITE, Color.BLUE, blueBoundsRect, TOLERANCE);
|
/frameworks/base/core/java/com/android/internal/util/ |
ImageUtils.java | 33 private static final int TOLERANCE = 20; 116 return Math.abs(r - g) < TOLERANCE 117 && Math.abs(r - b) < TOLERANCE 118 && Math.abs(g - b) < TOLERANCE;
|
/external/chromium_org/third_party/skia/src/views/ |
SkTouchGesture.cpp | 41 const SkScalar TOLERANCE = SkDoubleToScalar(0.15); 42 if (SkScalarAbs(unit->fX) < TOLERANCE) { 45 } else if (SkScalarAbs(unit->fY) < TOLERANCE) { 221 // GrPrintf("--- drop touchMove, withing jitter tolerance %g %g\n", rec.fLastX - x, rec.fLastY - y);
|
/external/opencv/cv/src/ |
cvcamshift.cpp | 170 const int TOLERANCE = 10; 193 windowIn.x -= TOLERANCE; 197 windowIn.y -= TOLERANCE; 201 windowIn.width += 2 * TOLERANCE; 205 windowIn.height += 2 * TOLERANCE;
|
/external/skia/src/views/ |
SkTouchGesture.cpp | 41 const SkScalar TOLERANCE = SkDoubleToScalar(0.15); 42 if (SkScalarAbs(unit->fX) < TOLERANCE) { 45 } else if (SkScalarAbs(unit->fY) < TOLERANCE) { 221 // GrPrintf("--- drop touchMove, withing jitter tolerance %g %g\n", rec.fLastX - x, rec.fLastY - y);
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
AnimationDrawableTest.java | 44 private static final long TOLERANCE = 500; 373 new PollingCheck(timeout + TOLERANCE) { 383 * Assert animation had been stopped. It will sleep duration + TOLERANCE milliseconds and 389 Thread.sleep(duration + TOLERANCE);
|
/cts/tests/tests/media/src/android/media/cts/ |
EqualizerTest.java | 35 private final static float TOLERANCE = 100; // +/-1dB 95 // allow +/- TOLERANCE margin on actual level compared to requested level 97 (level >= (levelRange[1] - TOLERANCE)) && 98 (level <= (levelRange[1] + TOLERANCE))); 187 (settings.bandLevels[0] >= (newLevel - TOLERANCE)) && 188 (settings.bandLevels[0] <= (newLevel + TOLERANCE)));
|
MediaMuxerTest.java | 45 private static final float TOLERANCE = 0.0002f; 378 // Make sure the tolerance is very small - due to rounding errors. 392 Math.abs(latitude - LATITUDE) <= TOLERANCE); 394 Math.abs(longitude - LONGITUDE) <= TOLERANCE);
|
MediaRecorderTest.java | 46 private static final float TOLERANCE = 0.0002f; 263 // Make sure the tolerance is very small - due to rounding errors?. 276 assertTrue("Incorrect latitude: " + latitude, Math.abs(latitude - LATITUDE) <= TOLERANCE); 277 assertTrue("Incorrect longitude: " + longitude, Math.abs(longitude - LONGITUDE) <= TOLERANCE); 400 private void checkRecordedTime(long expectedMs, long actualMs, long tolerance) { 401 assertEquals(expectedMs, actualMs, tolerance); 403 assertEquals(actualFileDurationMs, actualMs, tolerance); 422 long fileSize, long tolerance) throws Exception { 441 checkOutputFileSize(OUTPUT_PATH, fileSize, tolerance); 444 private void checkOutputFileSize(final String fileName, long fileSize, long tolerance) { [all...] |
/frameworks/native/libs/gui/tests/ |
SRGB_test.cpp | 45 TOLERANCE = 1, 223 return diff >= 0 ? diff <= TOLERANCE : -diff <= TOLERANCE;
|
/cts/tests/tests/telephony/src/android/telephony/cts/ |
TelephonyManagerTest.java | 43 private static final int TOLERANCE = 1000; 119 mLock.wait(TOLERANCE);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ScrollViewTest.java | 51 private static final int TOLERANCE = 2; 281 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); 300 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); 360 assertEquals(mPageHeight, mScrollView.getScrollY(), TOLERANCE); 363 assertEquals(mPageHeight * 2, mScrollView.getScrollY(), TOLERANCE); 367 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); 370 assertEquals(mScrollBottom - mPageHeight, mScrollView.getScrollY(), TOLERANCE); 373 assertEquals(mScrollBottom -mPageHeight * 2, mScrollView.getScrollY(), TOLERANCE); 491 mScrollView.computeVerticalScrollRange(), TOLERANCE);
|