/cts/tests/tests/graphics/src/android/graphics/cts/ |
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);
|
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...] |
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);
|
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);
|
PorterDuffColorFilterTest.java | 29 private static final int TOLERANCE = 5; 51 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE); 52 assertEquals(0x80, Color.green(lowerLeft), 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);
|
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
|
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);
|
/external/chromium_org/third_party/skia/src/gpu/ |
FlingState.cpp | 41 const SkScalar TOLERANCE = SkDoubleToScalar(0.15); 42 if (SkScalarAbs(unit->fX) < TOLERANCE) { 45 } else if (SkScalarAbs(unit->fY) < TOLERANCE) {
|
/external/skia/src/gpu/ |
FlingState.cpp | 41 const SkScalar TOLERANCE = SkDoubleToScalar(0.15); 42 if (SkScalarAbs(unit->fX) < TOLERANCE) { 45 } else if (SkScalarAbs(unit->fY) < TOLERANCE) {
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
PathShapeTest.java | 34 private static final int TOLERANCE = 4; 85 assertEquals(50, horizontal, TOLERANCE); 86 assertEquals(50, vertical, TOLERANCE); 87 assertEquals(25, diagonal, TOLERANCE);
|
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);
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/picking/ |
BresenhamYUpGridTracer.java | 62 protected static float TOLERANCE = 0.0000001f; 87 if (direction.x > TOLERANCE) { 91 } else if (direction.x < -TOLERANCE) { 102 if (direction.z > TOLERANCE) { 106 } else if (direction.z < -TOLERANCE) {
|
/external/ceres-solver/internal/ceres/ |
conjugate_gradients_solver.cc | 89 summary.termination_type = TOLERANCE; 106 summary.termination_type = TOLERANCE; 214 summary.termination_type = TOLERANCE; 224 summary.termination_type = TOLERANCE;
|
symmetric_linear_solver_test.cc | 74 EXPECT_EQ(summary.termination_type, TOLERANCE); 131 EXPECT_EQ(summary.termination_type, TOLERANCE);
|
dense_normal_cholesky_solver.cc | 98 summary.termination_type = TOLERANCE; 150 summary.termination_type = info == 0 ? TOLERANCE : FAILURE;
|
dense_qr_solver.cc | 115 summary.termination_type = TOLERANCE; 164 summary.termination_type = TOLERANCE;
|
unsymmetric_linear_solver_test.cc | 102 EXPECT_EQ(unregularized_solve_summary.termination_type, TOLERANCE); 108 EXPECT_EQ(regularized_solve_summary.termination_type, TOLERANCE);
|
/cts/tests/tests/media/src/android/media/cts/ |
EqualizerTest.java | 35 private final static float TOLERANCE = 100; // +/-1dB 97 // allow +/- TOLERANCE margin on actual level compared to requested level 99 (level >= (levelRange[1] - TOLERANCE)) && 100 (level <= (levelRange[1] + TOLERANCE))); 180 (settings.bandLevels[0] >= (newLevel - TOLERANCE)) && 181 (settings.bandLevels[0] <= (newLevel + TOLERANCE)));
|
MediaMuxerTest.java | 45 private static final float TOLERANCE = 0.0002f; 373 // Make sure the tolerance is very small - due to rounding errors. 386 Math.abs(latitude - LATITUDE) <= TOLERANCE); 388 Math.abs(longitude - LONGITUDE) <= TOLERANCE);
|
/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;
|
/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);
|
/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);
|