/frameworks/base/graphics/java/android/graphics/ |
AvoidXfermode.java | 39 * There are two modes, and each mode interprets a tolerance value. 43 * Tolerance near 0: avoid any colors even remotely similar to the op-color 44 * Tolerance near 255: avoid only colors nearly identical to the op-color 48 * Tolerance near 0: draw only on colors that are nearly identical to the op-color 49 * Tolerance near 255: draw on any colors even remotely similar to the op-color 51 public AvoidXfermode(int opColor, int tolerance, Mode mode) { 52 if (tolerance < 0 || tolerance > 255) { 53 throw new IllegalArgumentException("tolerance must be 0..255"); 55 native_instance = nativeCreate(opColor, tolerance, mode.nativeInt) [all...] |
/external/skia/include/effects/ |
SkAvoidXfermode.h | 37 There are two modes, and each mode interprets a tolerance value. 41 Tolerance near 0: avoid any colors even remotely similar to the op-color 42 Tolerance near 255: avoid only colors nearly identical to the op-color 46 Tolerance near 0: draw only on colors that are nearly identical to the op-color 47 Tolerance near 255: draw on any colors even remotely similar to the op-color 49 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
|
/frameworks/base/core/java/android/test/ |
FlakyTest.java | 27 * the test fails. The total number of executions is specified by the tolerance and 35 * as a failed test. If the tolerance factor is less than 1, the test runs 40 int tolerance() default 1;
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
RadialGradientTest.java | 47 int tolerance = (int)(0xFF / (0.3f * RADIUS) * 2); local 55 checkPixels(b, colors, positions, tolerance); 66 int tolerance = (int)(0xFF / RADIUS * 2); local 74 checkPixels(b, colors, positions, tolerance); 77 private void checkPixels(Bitmap bitmap, int[] colors, float[] positions, int tolerance) { 111 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); local 112 assertEquals(Color.red(color), Color.red(pixel), tolerance); local 113 assertEquals(Color.green(color), Color.green(pixel), tolerance); local 114 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); local
|
SweepGradientTest.java | 45 private static final int TOLERANCE = 5; 67 checkColors(colors, positions, TOLERANCE); 82 checkColors(colors, positions, TOLERANCE); 98 checkColors(colors, positions, TOLERANCE); 101 private void checkColors(int[] colors, float[] positions, int tolerance) { 143 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); local 144 assertEquals(Color.red(color), Color.red(pixel), tolerance); local 145 assertEquals(Color.green(color), Color.green(pixel), tolerance); local 146 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); local
|
AvoidXfermodeTest.java | 36 * ToBeFixed: This test ought to work with a TOLERANCE of 0. See bug 2034547. 38 private static final int TOLERANCE = 255; 49 explanation = "AvoidXfermode does not work as expected with tolerance 0.") 57 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.AVOID); 62 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.TARGET);
|
ColorMatrixColorFilterTest.java | 36 private static final int TOLERANCE = 1; 109 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); 110 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); 111 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE); 112 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE);
|
ComposeShaderTest.java | 43 private static final int TOLERANCE = 5; 70 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); 71 assertEquals(y, Color.red(pixel), TOLERANCE); 72 assertEquals(green, Color.green(pixel), TOLERANCE); 73 assertEquals(x, Color.blue(pixel), TOLERANCE);
|
LightingColorFilterTest.java | 35 private static final int TOLERANCE = 2; 93 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE); 94 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); 95 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); 96 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE);
|
ColorMatrixTest.java | 36 private static final float TOLERANCE = 0.0000001f; 204 assertEquals(-1.0f, ret[6], TOLERANCE); 205 assertEquals(-1.0f, ret[12], TOLERANCE); 206 assertEquals(0, ret[7], TOLERANCE); 207 assertEquals(0, ret[11], TOLERANCE); 210 assertEquals(-1.0f, ret[0], TOLERANCE); 211 assertEquals(-1.0f, ret[12], TOLERANCE); 212 assertEquals(0, ret[2], TOLERANCE); 213 assertEquals(0, ret[10], TOLERANCE); 216 assertEquals(-1.0f, ret[0], TOLERANCE); [all...] |
CornerPathEffectTest.java | 44 private static final int TOLERANCE = 5; 81 // A paint that draws the expected path with a tolerance width into the red channel 85 expectedPaint.setStrokeWidth(TOLERANCE);
|
PorterDuffColorFilterTest.java | 33 private static final int TOLERANCE = 5; 60 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE); 61 assertEquals(0x80, Color.green(lowerLeft), TOLERANCE);
|
/cts/tests/tests/media/src/android/media/cts/ |
FaceDetector_FaceTest.java | 85 float tolerance = 5f; local 89 assertEquals(eyesDistance, face.eyesDistance(), tolerance); 92 assertEquals(eyesMidpointX, eyesMP.x, tolerance); 93 assertEquals(eyesMidpointY, eyesMP.y, tolerance);
|
/external/stlport/test/unit/ |
math_aux.h | 14 * This function is not only used to compare floating point values with a tolerance,
|
/packages/apps/Mms/src/org/w3c/dom/smil/ |
ElementSyncBehavior.java | 25 * The sync tolerance for the associated element. It has an effect only if 37 * Defines the default value for the sync tolerance for an element, and
|
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
ArcShapeTest.java | 40 private static final int TOLERANCE = 4; // tolerance in pixels 86 assertEquals((double)SQUARE / 2 / Math.sqrt(2), count, TOLERANCE);
|
OvalShapeTest.java | 40 private static final int TOLERANCE = 4; // tolerance in pixels 80 assertEquals((double)SQUARE / Math.sqrt(2), count, TOLERANCE);
|
PathShapeTest.java | 39 private static final int TOLERANCE = 4; 107 assertEquals(50, horizontal, TOLERANCE); 108 assertEquals(50, vertical, TOLERANCE); 109 assertEquals(25, diagonal, TOLERANCE);
|
/frameworks/base/core/tests/coretests/src/android/view/ |
GlobalFocusChangeTest.java | 51 @FlakyTest(tolerance = 4) 63 @FlakyTest(tolerance = 4) 74 @FlakyTest(tolerance = 4)
|
/frameworks/base/core/jni/android/graphics/ |
Xfermode.cpp | 35 U8CPU tolerance, SkAvoidXfermode::Mode mode) 37 return new SkAvoidXfermode(opColor, tolerance, mode);
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
AutoCompleteTextViewPopup.java | 44 @FlakyTest(tolerance=3) 76 @FlakyTest(tolerance=3) 103 @FlakyTest(tolerance=3) 136 @FlakyTest(tolerance=3) 170 @FlakyTest(tolerance=3)
|
AutoCompleteTextViewCallbacks.java | 35 @FlakyTest(tolerance=3) 60 @FlakyTest(tolerance=3) 109 @FlakyTest(tolerance=3)
|
/external/skia/tests/ |
MatrixTest.cpp | 6 const float tolerance = 0.000005f; local 8 const int32_t tolerance = 3; 11 return SkScalarAbs(a - b) <= tolerance;
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
LifecycleTest.java | 54 // @FlakyTest(tolerance=2) 62 //@FlakyTest(tolerance=2)
|
/external/skia/src/effects/ |
SkAvoidXfermode.cpp | 21 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) 23 if (tolerance > 255) { 24 tolerance = 255; 28 fDistMul = (256 << 14) / (tolerance + 1);
|