Home
last modified time | relevance | path

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

12

/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 int nativeCreate(int opColor, int tolerance, in nativeCreate() argument
/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/media/jni/mediaeditor/
DVideoEditorThumbnailMain.cpp77 M4OSA_UInt32* pTimeMS, M4OSA_UInt32 tolerance);
222 M4OSA_UInt32* pTimeMS, M4OSA_UInt32 tolerance) in ThumbnailGetPixels() argument
252 err = videoBrowserPrepareFrame(pC->m_pVideoBrowser, pTimeMS, tolerance); in ThumbnailGetPixels()
268 M4OSA_UInt32 tolerance) in ThumbnailGetPixels32() argument
281 err = ThumbnailGetPixels(pContext, pixelArray, width, height, timeMS, tolerance); in ThumbnailGetPixels32()
291 M4OSA_UInt32 tolerance) in ThumbnailGetPixels16() argument
304 timeMS, tolerance); in ThumbnailGetPixels16()
DVideoEditorThumbnailMain.h53 M4OSA_UInt32 tolerance);
68 M4OSA_UInt32 tolerance);
DVideoBrowserMain.h137 M4OSA_UInt32 tolerance);
DVideoBrowserMain.c445 M4OSA_UInt32 tolerance) in videoBrowserPrepareFrame() argument
482 pC->m_pDecoderCtx, &timeMS, bJumpNeeded, tolerance); in videoBrowserPrepareFrame()
DVideoEditorMain.cpp2273 M4OSA_UInt32 tolerance = duration / (2 * noOfThumbnails); in videoEditor_getPixelsList() local
2286 width, height, &timeMS, tolerance); in videoEditor_getPixelsList()
/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.cpp35 U8CPU tolerance, SkAvoidXfermode::Mode mode) in avoid_create() argument
37 return new SkAvoidXfermode(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.cpp233 int tolerance = 0; in main() local
303 tolerance = atoi(argv[0]); in main()
304 bundle.setGrayscaleTolerance(tolerance); in main()
305 … 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 int 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.cpp291 int g, int b, int a, int tolerance=2) { in checkPixel() argument
305 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel()
308 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel()
314 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel()
320 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel()
/frameworks/av/libvideoeditor/vss/common/inc/
DM4DECODER_Common.h347 M4OSA_Bool bJump, M4OSA_UInt32 tolerance);
/frameworks/base/core/tests/coretests/src/android/widget/listview/
DListManagedCursorTest.java113 @FlakyTest(tolerance=3)
/frameworks/native/libs/gui/tests/
DSurfaceTexture_test.cpp198 int g, int b, int a, int tolerance=2) { in checkPixel() argument
211 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel()
214 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel()
220 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel()
226 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel()
241 const Rect &r2, int tolerance=1) { in assertRectEq() argument
245 if (abs(r1.left - r2.left) > tolerance) { in assertRectEq()
248 if (abs(r1.top - r2.top) > tolerance) { in assertRectEq()
254 if (abs(r1.right - r2.right) > tolerance) { in assertRectEq()
260 if (abs(r1.bottom - r2.bottom) > tolerance) { in assertRectEq()
/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()
/frameworks/av/libvideoeditor/vss/src/
DM4DECODER_Null.c298 M4OSA_UInt32 tolerance) { in M4DECODER_NULL_decode() argument
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
DVideoEditorVideoDecoder.cpp1338 M4_MediaTime* pTime, M4OSA_Bool bJump, M4OSA_UInt32 tolerance) { in VideoEditorVideoDecoder_decode() argument
1373 while (pDecoderBuffer == NULL || pDecShellContext->m_lastDecodedCTS + tolerance < *pTime) { in VideoEditorVideoDecoder_decode()
1454 tolerance; in VideoEditorVideoDecoder_decode()

12