Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/
DAvoidXfermode.java54 public AvoidXfermode(int opColor, int tolerance, Mode mode) { in AvoidXfermode() argument
55 if (tolerance < 0 || tolerance > 255) { in AvoidXfermode()
/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.h56 int r, int g, int b, int a, int tolerance = 2);
58 int tolerance = 1);
/frameworks/base/media/java/android/media/
DSyncParams.java237 public SyncParams setTolerance(float tolerance) { in setTolerance() argument
238 if (tolerance < 0.f || tolerance >= 1.f) { in setTolerance()
241 mTolerance = tolerance; in setTolerance()
/frameworks/base/core/java/android/test/
DInstrumentationTestCase.java181 runCount = method.getAnnotation(FlakyTest.class).tolerance(); in runTest()
188 final int tolerance = runCount; in runTest() local
195 runMethod(testMethod, tolerance, repetitive); in runTest()
210 private void runMethod(Method runMethod, int tolerance) throws Throwable { in runMethod() argument
211 runMethod(runMethod, tolerance, false); in runMethod()
214 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { in runMethod() argument
237 } while ((runCount < tolerance) && (isRepetitive || exception != null)); in runMethod()
DFlakyTest.java46 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.java53 @FlakyTest(tolerance = 4)
65 @FlakyTest(tolerance = 4)
76 @FlakyTest(tolerance = 4)
/frameworks/base/media/jni/
Dandroid_media_SyncParams.cpp38 tolerance = env->GetFieldID(clazz, "mTolerance", "F"); in init()
62 sync.mTolerance = env->GetFloatField(params, fields.tolerance); in fillFromJobject()
79 env->SetFloatField(params, fields.tolerance, (jfloat)sync.mTolerance); in asJobject()
Dandroid_media_SyncParams.h41 jfieldID tolerance; member
/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/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/aapt/
DMain.cpp266 int tolerance = 0; in main() local
338 tolerance = atoi(argv[0]); in main()
339 bundle.setGrayscaleTolerance(tolerance); in main()
340 … printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance); in main()
/frameworks/rs/java/tests/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
DSGEMMTest.java84 float tolerance = allowedError * (l2NormOut < l2NormRef ? l2NormOut : l2NormRef); in testWithTolerance() local
85 tolerance /= m * n; in testWithTolerance()
89 if (absErr > tolerance) { in testWithTolerance()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraErrorCollector.java293 public <T> boolean expectEquals(String msg, float expected, float actual, float tolerance) { in expectEquals() argument
298 if (!(Math.abs(expected - actual) <= tolerance)) { in expectEquals()
300 expected, actual, tolerance)); in expectEquals()
316 public <T> boolean expectEquals(String msg, double expected, double actual, double tolerance) { in expectEquals() argument
321 if (!(Math.abs(expected - actual) <= tolerance)) { in expectEquals()
323 expected, actual, tolerance)); in expectEquals()
DCameraTestUtils.java2033 double tolerance = expected * EXIF_EXPOSURE_TIME_ERROR_MARGIN_RATIO; in verifyJpegExifExtraTags() local
2034 tolerance = Math.max(tolerance, EXIF_EXPOSURE_TIME_MIN_ERROR_MARGIN_SEC); in verifyJpegExifExtraTags()
2036 exposureTimeValue, tolerance); in verifyJpegExifExtraTags()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DVector3Test.java28 private static final float tolerance = 1.0f / (1 << 12); field in Vector3Test
47 return Math.abs(a - b) <= tolerance; in nearlyEqual()
/frameworks/av/media/libstagefright/tests/
DSurfaceMediaSource_test.cpp288 int g, int b, int a, int tolerance=2) { in checkPixel() argument
302 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { in checkPixel()
305 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { in checkPixel()
311 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { in checkPixel()
317 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { in checkPixel()
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
DListWithEditTextHeaderTest.java52 @FlakyTest(tolerance=2)
/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/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...