HomeSort by relevance Sort by last modified time
    Searched full:tolerance (Results 1 - 25 of 198) sorted by null

1 2 3 4 5 6 7 8

  /frameworks/base/graphics/java/android/graphics/
AvoidXfermode.java 40 * There are two modes, and each mode interprets a tolerance value.
44 * Tolerance near 0: avoid any colors even remotely similar to the op-color
45 * Tolerance near 255: avoid only colors nearly identical to the op-color
49 * Tolerance near 0: draw only on colors that are nearly identical to the op-color
50 * Tolerance near 255: draw on any colors even remotely similar to the op-color
52 public AvoidXfermode(int opColor, int tolerance, Mode mode) {
53 if (tolerance < 0 || tolerance > 255) {
54 throw new IllegalArgumentException("tolerance must be 0..255");
56 native_instance = nativeCreate(opColor, tolerance, mode.nativeInt)
    [all...]
  /external/skia/include/effects/
SkAvoidXfermode.h 30 There are two modes, and each mode interprets a tolerance value.
34 Tolerance near 0: avoid any colors even remotely similar to the op-color
35 Tolerance near 255: avoid only colors nearly identical to the op-color
39 Tolerance near 0: draw only on colors that are nearly identical to the op-color
40 Tolerance near 255: draw on any colors even remotely similar to the op-color
42 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
  /external/webkit/LayoutTests/fast/encoding/
namespace-tolerance-expected.txt 5 If this test passes, the UTF-8 character below should exactly match the character the character in namespace-tolerance-expected.txt. ?
namespace-tolerance.html 12 If this test passes, the UTF-8 character below should exactly match the character the character in namespace-tolerance-expected.txt.
  /external/valgrind/main/docs/internals/
SPEC-notes.txt 21 const long double tolerance = std::max (static_cast<long double>
30 } while (abs(p1/pp) > tolerance);
33 The tolerance in this case is being set to ~2.22e-18, but the
  /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/
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);
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
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);
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);
  /cts/tests/tests/media/src/android/media/cts/
FaceDetector_FaceTest.java 57 float tolerance = 5f; local
61 assertEquals(eyesDistance, face.eyesDistance(), tolerance);
64 assertEquals(eyesMidpointX, eyesMP.x, tolerance);
65 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,
  /ndk/tests/device/test-gnustl-full/unit/
math_aux.h 14 * This function is not only used to compare floating point values with a tolerance,
  /ndk/tests/device/test-stlport/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 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);
  /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) {
  /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/media/jni/mediaeditor/
VideoEditorThumbnailMain.h 53 M4OSA_UInt32 tolerance);
68 M4OSA_UInt32 tolerance);
VideoEditorThumbnailMain.cpp 77 M4OSA_UInt32* pTimeMS, M4OSA_UInt32 tolerance);
222 M4OSA_UInt32* pTimeMS, M4OSA_UInt32 tolerance)
252 err = videoBrowserPrepareFrame(pC->m_pVideoBrowser, pTimeMS, tolerance);
268 M4OSA_UInt32 tolerance)
281 err = ThumbnailGetPixels(pContext, pixelArray, width, height, timeMS, tolerance);
291 M4OSA_UInt32 tolerance)
304 timeMS, tolerance);

Completed in 772 milliseconds

1 2 3 4 5 6 7 8