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

1 2

  /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...]
  /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;
InstrumentationTestCase.java 174 runCount = method.getAnnotation(FlakyTest.class).tolerance();
178 final int tolerance = runCount; local
184 runMethod(testMethod, tolerance);
198 private void runMethod(Method runMethod, int tolerance) throws Throwable {
215 } while ((runCount < tolerance) && (exception != null));
  /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/view/
GlobalFocusChangeTest.java 51 @FlakyTest(tolerance = 4)
63 @FlakyTest(tolerance = 4)
74 @FlakyTest(tolerance = 4)
  /frameworks/base/core/tests/coretests/src/android/widget/
AutoCompleteTextViewCallbacks.java 35 @FlakyTest(tolerance=3)
60 @FlakyTest(tolerance=3)
109 @FlakyTest(tolerance=3)
AutoCompleteTextViewPopup.java 44 @FlakyTest(tolerance=3)
76 @FlakyTest(tolerance=3)
103 @FlakyTest(tolerance=3)
136 @FlakyTest(tolerance=3)
170 @FlakyTest(tolerance=3)
  /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
  /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/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);
  /cts/tests/tests/webkit/src/android/webkit/cts/
CacheManager_CacheResultTest.java 132 final long tolerance = 5 * 1000; // 5s local
156 DateUtils.parseDate(result.getLastModified()).getTime(), tolerance);
162 assertEquals(time + validity, result.getExpires(), tolerance);
  /external/skia/tests/
MatrixTest.cpp 6 const float tolerance = 0.000005f; local
8 const int32_t tolerance = 3;
11 return SkScalarAbs(a - b) <= tolerance;
  /external/webkit/WebKitTools/DumpRenderTree/qt/
ImageDiff.cpp 33 qreal tolerance = 0; local
37 if (args[i] == "-t" || args[i] == "--tolerance")
38 tolerance = args[i + 1].toDouble();
118 if (difference <= tolerance) {
  /bionic/libc/kernel/common/linux/
timex.h 45 long tolerance; member in struct:timex
  /development/ndk/platforms/android-3/include/linux/
timex.h 45 long tolerance; member in struct:timex
  /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);
  /frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
ListWithEditTextHeaderTest.java 50 @FlakyTest(tolerance=2)
  /frameworks/base/graphics/tests/graphicstests/src/android/graphics/
BitmapTest.java 193 final int tolerance = 1; local
212 assertTrue("red", Math.abs(rr - r1) <= tolerance);
217 assertTrue("green", Math.abs(gg - g1) <= tolerance);
222 assertTrue("blue", Math.abs(bb - b1) <= tolerance);
  /frameworks/base/tools/aapt/
Main.cpp 59 " [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \\\n"
104 " -g specify a pixel tolerance to force images to grayscale, default 0\n"
198 int tolerance = 0; local
264 tolerance = atoi(argv[0]);
265 bundle.setGrayscaleTolerance(tolerance);
266 printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance);
  /prebuilt/ndk/android-ndk-r4/platforms/android-3/arch-arm/usr/include/linux/
timex.h 45 long tolerance; member in struct:timex
  /prebuilt/ndk/android-ndk-r4/platforms/android-4/arch-arm/usr/include/linux/
timex.h 45 long tolerance; member in struct:timex
  /prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-arm/usr/include/linux/
timex.h 45 long tolerance; member in struct:timex
  /prebuilt/ndk/android-ndk-r4/platforms/android-5/arch-x86/usr/include/linux/
timex.h 45 long tolerance; member in struct:timex
  /prebuilt/ndk/android-ndk-r4/platforms/android-8/arch-arm/usr/include/linux/
timex.h 45 long tolerance; member in struct:timex

Completed in 415 milliseconds

1 2