Home
last modified time | relevance | path

Searched refs:tolerance (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
DAvoidXfermode.java52 public AvoidXfermode(int opColor, int tolerance, Mode mode) { in AvoidXfermode() argument
53 if (tolerance < 0 || tolerance > 255) { in AvoidXfermode()
56 native_instance = nativeCreate(opColor, tolerance, mode.nativeInt); in AvoidXfermode()
59 private static native long nativeCreate(int opColor, int tolerance, in nativeCreate() argument
/frameworks/native/libs/gui/tests/
DGLTest.cpp176 int r, int g, int b, int a, int tolerance) { in checkPixel() argument
188 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel()
191 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel()
197 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel()
203 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel()
217 int tolerance) { in assertRectEq() argument
220 if (abs(r1.left - r2.left) > tolerance) { in assertRectEq()
223 if (abs(r1.top - r2.top) > tolerance) { in assertRectEq()
229 if (abs(r1.right - r2.right) > tolerance) { in assertRectEq()
235 if (abs(r1.bottom - r2.bottom) > tolerance) { in assertRectEq()
DGLTest.h54 int r, int g, int b, int a, int tolerance = 2);
56 int tolerance = 1);
/frameworks/base/core/java/android/test/
DInstrumentationTestCase.java175 runCount = method.getAnnotation(FlakyTest.class).tolerance(); in runTest()
182 final int tolerance = runCount; in runTest() local
189 runMethod(testMethod, tolerance, repetitive); in runTest()
204 private void runMethod(Method runMethod, int tolerance) throws Throwable { in runMethod() argument
205 runMethod(runMethod, tolerance, false); in runMethod()
208 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { in runMethod() argument
231 } while ((runCount < tolerance) && (isRepetitive || exception != null)); in runMethod()
DFlakyTest.java40 int tolerance() default 1; in tolerance() method
/frameworks/base/core/tests/utillib/src/android/test/
DBandwidthTestCase.java66 runCount = method.getAnnotation(FlakyTest.class).tolerance(); in runTest()
73 final int tolerance = runCount; in runTest() local
80 runMethod(testMethod, tolerance, repetitive); in runTest()
116 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { in runMethod() argument
140 } while ((runCount < tolerance) && (isRepetitive || exception != null)); in runMethod()
/frameworks/base/core/tests/coretests/src/android/widget/
DAutoCompleteTextViewPopup.java44 @FlakyTest(tolerance=3)
76 @FlakyTest(tolerance=3)
103 @FlakyTest(tolerance=3)
136 @FlakyTest(tolerance=3)
170 @FlakyTest(tolerance=3)
DAutoCompleteTextViewCallbacks.java35 @FlakyTest(tolerance=3)
60 @FlakyTest(tolerance=3)
109 @FlakyTest(tolerance=3)
/frameworks/base/core/tests/coretests/src/android/view/
DGlobalFocusChangeTest.java51 @FlakyTest(tolerance = 4)
63 @FlakyTest(tolerance = 4)
74 @FlakyTest(tolerance = 4)
/frameworks/base/core/jni/android/graphics/
DXfermode.cpp36 jint tolerance, jint modeHandle) in avoid_create() argument
39 return reinterpret_cast<jlong>(SkAvoidXfermode::Create(opColor, tolerance, mode)); in avoid_create()
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
DBitmapTest.java195 final int tolerance = 1; in testSetPixelsWithNonOpaqueAlpha() local
214 assertTrue("red", Math.abs(rr - r1) <= tolerance); in testSetPixelsWithNonOpaqueAlpha()
219 assertTrue("green", Math.abs(gg - g1) <= tolerance); in testSetPixelsWithNonOpaqueAlpha()
224 assertTrue("blue", Math.abs(bb - b1) <= tolerance); in testSetPixelsWithNonOpaqueAlpha()
/frameworks/base/tools/aapt/
DMain.cpp253 int tolerance = 0; in main() local
325 tolerance = atoi(argv[0]); in main()
326 bundle.setGrayscaleTolerance(tolerance); in main()
327 … printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance); in main()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DBroadcastTest.java233 @FlakyTest(tolerance=2)
250 @FlakyTest(tolerance=2)
255 @FlakyTest(tolerance=2)
350 @FlakyTest(tolerance=2)
360 @FlakyTest(tolerance=2)
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DAvoidXfermode_Delegate.java64 /*package*/ static long nativeCreate(int opColor, int tolerance, int nativeMode) { in nativeCreate() argument
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
DListWithEditTextHeaderTest.java51 @FlakyTest(tolerance=2)
/frameworks/av/media/libstagefright/tests/
DSurfaceMediaSource_test.cpp292 int g, int b, int a, int tolerance=2) { in checkPixel() argument
306 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel()
309 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel()
315 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel()
321 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel()
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListManagedCursorTest.java113 @FlakyTest(tolerance=3)
/frameworks/native/services/sensorservice/
Dmat.h308 static bool isPositiveSemidefinite(const mat<TYPE, C, C>& m, TYPE tolerance) { in isPositiveSemidefinite() argument
315 if (fabs(m[i][j] - m[j][i]) > tolerance) in isPositiveSemidefinite()