Searched refs:tolerance (Results 1 - 12 of 12) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
H A DAvoidXfermode.java39 * There are two modes, and each mode interprets a tolerance value.
51 public AvoidXfermode(int opColor, int tolerance, Mode mode) { argument
52 if (tolerance < 0 || tolerance > 255) {
53 throw new IllegalArgumentException("tolerance must be 0..255");
55 native_instance = nativeCreate(opColor, tolerance, mode.nativeInt);
58 private static native int nativeCreate(int opColor, int tolerance, argument
/frameworks/base/core/java/android/test/
H A DFlakyTest.java27 * 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;
H A DInstrumentationTestCase.java174 runCount = method.getAnnotation(FlakyTest.class).tolerance();
178 final int tolerance = runCount;
184 runMethod(testMethod, tolerance);
198 private void runMethod(Method runMethod, int tolerance) throws Throwable { argument
215 } while ((runCount < tolerance) && (exception != null));
/frameworks/base/core/jni/android/graphics/
H A DXfermode.cpp35 U8CPU tolerance, SkAvoidXfermode::Mode mode)
37 return new SkAvoidXfermode(opColor, tolerance, mode);
34 avoid_create(JNIEnv* env, jobject, SkColor opColor, U8CPU tolerance, SkAvoidXfermode::Mode mode) argument
/frameworks/base/core/tests/coretests/src/android/view/
H A DGlobalFocusChangeTest.java51 @FlakyTest(tolerance = 4)
63 @FlakyTest(tolerance = 4)
74 @FlakyTest(tolerance = 4)
/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewCallbacks.java35 @FlakyTest(tolerance=3)
60 @FlakyTest(tolerance=3)
109 @FlakyTest(tolerance=3)
H A DAutoCompleteTextViewPopup.java44 @FlakyTest(tolerance=3)
76 @FlakyTest(tolerance=3)
103 @FlakyTest(tolerance=3)
136 @FlakyTest(tolerance=3)
170 @FlakyTest(tolerance=3)
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
H A DListWithEditTextHeaderTest.java50 @FlakyTest(tolerance=2)
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapTest.java193 final int tolerance = 1;
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/
H A DMain.cpp59 " [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \\\n"
103 " -g specify a pixel tolerance to force images to grayscale, default 0\n"
191 int tolerance = 0; local
257 tolerance = atoi(argv[0]);
258 bundle.setGrayscaleTolerance(tolerance);
259 printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance);
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DBroadcastTest.java232 @FlakyTest(tolerance=2)
249 @FlakyTest(tolerance=2)
254 @FlakyTest(tolerance=2)
347 @FlakyTest(tolerance=2)
357 @FlakyTest(tolerance=2)
/frameworks/base/core/tests/coretests/src/android/widget/listview/
H A DListManagedCursorTest.java113 @FlakyTest(tolerance=3)

Completed in 114 milliseconds