Searched defs:tolerance (Results 1 - 4 of 4) sorted by relevance

/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/graphics/java/android/graphics/
H A DAvoidXfermode.java42 * @param tolerance How closely we compare a pixel to the opColor.
45 * similar the pixel is to our opColor (max tolerance)
48 public AvoidXfermode(int opColor, int tolerance, Mode mode) { argument
49 if (tolerance < 0 || tolerance > 255) {
50 throw new IllegalArgumentException("tolerance must be 0..255");
52 native_instance = nativeCreate(opColor, tolerance, mode.nativeInt);
55 private static native int nativeCreate(int opColor, int tolerance, argument
/frameworks/base/tools/aapt/
H A DMain.cpp59 " [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \\\n"
100 " -g specify a pixel tolerance to force images to grayscale, default 0\n"
172 int tolerance = 0; local
238 tolerance = atoi(argv[0]);
239 bundle.setGrayscaleTolerance(tolerance);
240 printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance);
/frameworks/base/core/java/android/test/
H A DInstrumentationTestCase.java175 runCount = method.getAnnotation(FlakyTest.class).tolerance();
179 final int tolerance = runCount;
185 runMethod(testMethod, tolerance);
199 private void runMethod(Method runMethod, int tolerance) throws Throwable { argument
216 } while ((runCount < tolerance) && (exception != null));

Completed in 198 milliseconds