Searched defs:tolerance (Results 1 - 13 of 13) 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.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/tools/aapt/
H A DMain.cpp59 " [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \\\n"
109 " -g specify a pixel tolerance to force images to grayscale, default 0\n"
217 int tolerance = 0; local
285 tolerance = atoi(argv[0]);
286 bundle.setGrayscaleTolerance(tolerance);
287 printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance);
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DAvoidXfermode_Delegate.java64 /*package*/ static int nativeCreate(int opColor, int tolerance, int nativeMode) { argument
/frameworks/base/core/java/android/test/
H A DInstrumentationTestCase.java175 runCount = method.getAnnotation(FlakyTest.class).tolerance();
182 final int tolerance = runCount;
189 runMethod(testMethod, tolerance, repetitive);
204 private void runMethod(Method runMethod, int tolerance) throws Throwable { argument
205 runMethod(runMethod, tolerance, false);
208 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { argument
231 } while ((runCount < tolerance) && (isRepetitive || exception != null));
/frameworks/base/media/jni/mediaeditor/
H A DVideoBrowserMain.c440 * @param tolerance (IN) : We may decode an earlier frame within the tolerance.
445 M4OSA_UInt32 tolerance)
482 pC->m_pDecoderCtx, &timeMS, bJumpNeeded, tolerance);
444 videoBrowserPrepareFrame(M4OSA_Context pContext, M4OSA_UInt32* pTime, M4OSA_UInt32 tolerance) argument
H A DVideoEditorThumbnailMain.cpp77 M4OSA_UInt32* pTimeMS, M4OSA_UInt32 tolerance);
222 M4OSA_UInt32* pTimeMS, M4OSA_UInt32 tolerance)
252 err = videoBrowserPrepareFrame(pC->m_pVideoBrowser, pTimeMS, tolerance);
268 M4OSA_UInt32 tolerance)
281 err = ThumbnailGetPixels(pContext, pixelArray, width, height, timeMS, tolerance);
291 M4OSA_UInt32 tolerance)
304 timeMS, tolerance);
219 ThumbnailGetPixels(const M4OSA_Context pContext, M4OSA_Int32* pixelArray, M4OSA_UInt32 width, M4OSA_UInt32 height, M4OSA_UInt32* pTimeMS, M4OSA_UInt32 tolerance) argument
265 ThumbnailGetPixels32(const M4OSA_Context pContext, M4OSA_Int32* pixelArray, M4OSA_UInt32 width, M4OSA_UInt32 height, M4OSA_UInt32* timeMS, M4OSA_UInt32 tolerance) argument
288 ThumbnailGetPixels16(const M4OSA_Context pContext, M4OSA_Int16* pixelArray, M4OSA_UInt32 width, M4OSA_UInt32 height, M4OSA_UInt32* timeMS, M4OSA_UInt32 tolerance) argument
H A DVideoEditorMain.cpp2313 M4OSA_UInt32 tolerance = duration / (2 * noOfThumbnails); local
2326 width, height, &timeMS, tolerance);
/frameworks/base/services/sensorservice/
H A Dmat.h308 static bool isPositiveSemidefinite(const mat<TYPE, C, C>& m, TYPE tolerance) { argument
315 if (fabs(m[i][j] - m[j][i]) > tolerance)
/frameworks/media/libvideoeditor/vss/src/
H A DM4DECODER_Null.c298 M4OSA_UInt32 tolerance) {
296 M4DECODER_NULL_decode(M4OSA_Context context, M4_MediaTime* pTime, M4OSA_Bool bJump, M4OSA_UInt32 tolerance) argument
/frameworks/base/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp291 int g, int b, int a, int tolerance=2) {
305 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
308 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
314 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
320 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
290 checkPixel(int x, int y, int r, int g, int b, int a, int tolerance=2) argument
/frameworks/base/libs/gui/tests/
H A DSurfaceTexture_test.cpp279 int g, int b, int a, int tolerance=2) {
293 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
296 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
302 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
308 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
278 checkPixel(int x, int y, int r, int g, int b, int a, int tolerance=2) argument
/frameworks/media/libvideoeditor/vss/stagefrightshells/src/
H A DVideoEditorVideoDecoder.cpp1327 M4_MediaTime* pTime, M4OSA_Bool bJump, M4OSA_UInt32 tolerance) {
1362 while (pDecoderBuffer == NULL || pDecShellContext->m_lastDecodedCTS + tolerance < *pTime) {
1326 VideoEditorVideoDecoder_decode(M4OSA_Context context, M4_MediaTime* pTime, M4OSA_Bool bJump, M4OSA_UInt32 tolerance) argument

Completed in 479 milliseconds