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

/frameworks/base/graphics/java/android/graphics/
H A DAvoidXfermode.java42 * There are two modes, and each mode interprets a tolerance value.
54 public AvoidXfermode(int opColor, int tolerance, Mode mode) { argument
55 if (tolerance < 0 || tolerance > 255) {
56 throw new IllegalArgumentException("tolerance must be 0..255");
/frameworks/base/core/java/android/test/
H A DFlakyTest.java27 * the test fails. The total number of executions is specified by the tolerance and
41 * as a failed test. If the tolerance factor is less than 1, the test runs
46 int tolerance() default 1;
H A DInstrumentationTestCase.java181 runCount = method.getAnnotation(FlakyTest.class).tolerance();
188 final int tolerance = runCount;
195 runMethod(testMethod, tolerance, repetitive);
210 private void runMethod(Method runMethod, int tolerance) throws Throwable { argument
211 runMethod(runMethod, tolerance, false);
214 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { argument
237 } while ((runCount < tolerance) && (isRepetitive || exception != null));
/frameworks/base/media/java/android/media/
H A DSyncParams.java52 * <p> <strong>tolerance:</strong> specifies the amount of allowed playback rate
73 * surface that directly renders to a display, and tolerance is non zero (e.g. not
99 * When using this mode, the tolerance should be set to greater than 0 (e.g. at least
104 * better playback experience on most devices. In this case the tolerance should be
230 * Sets the tolerance. The default tolerance is platform specific, but is never more than 1/24.
231 * @param tolerance A non-negative number representing
235 * @throws InvalidArgumentException if the tolerance is negative, or not less than one
237 public SyncParams setTolerance(float tolerance) { argument
238 if (tolerance <
[all...]
/frameworks/base/core/tests/coretests/src/android/view/
H A DGlobalFocusChangeTest.java53 @FlakyTest(tolerance = 4)
65 @FlakyTest(tolerance = 4)
76 @FlakyTest(tolerance = 4)
/frameworks/base/core/tests/coretests/src/android/widget/
H A DAutoCompleteTextViewCallbacks.java35 @FlakyTest(tolerance=3)
60 @FlakyTest(tolerance=3)
109 @FlakyTest(tolerance=3)
H A DAutoCompleteTextViewPopup.java44 @FlakyTest(tolerance=3)
76 @FlakyTest(tolerance=3)
103 @FlakyTest(tolerance=3)
136 @FlakyTest(tolerance=3)
170 @FlakyTest(tolerance=3)
/frameworks/native/libs/gui/tests/
H A DGLTest.h56 int r, int g, int b, int a, int tolerance = 2);
58 int tolerance = 1);
H A DGLTest.cpp176 int r, int g, int b, int a, int tolerance) {
188 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
191 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
197 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
203 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
217 int tolerance) {
220 if (abs(r1.left - r2.left) > tolerance) {
223 if (abs(r1.top - r2.top) > tolerance) {
229 if (abs(r1.right - r2.right) > tolerance) {
235 if (abs(r1.bottom - r2.bottom) > tolerance) {
175 checkPixel(int x, int y, int r, int g, int b, int a, int tolerance) argument
216 assertRectEq(const Rect &r1, const Rect &r2, int tolerance) argument
[all...]
/frameworks/base/core/tests/utillib/src/android/test/
H A DBandwidthTestCase.java66 runCount = method.getAnnotation(FlakyTest.class).tolerance();
73 final int tolerance = runCount;
80 runMethod(testMethod, tolerance, repetitive);
116 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { argument
140 } while ((runCount < tolerance) && (isRepetitive || exception != null));
/frameworks/base/media/jni/
H A Dandroid_media_SyncParams.cpp38 tolerance = env->GetFieldID(clazz, "mTolerance", "F");
62 sync.mTolerance = env->GetFloatField(params, fields.tolerance);
79 env->SetFloatField(params, fields.tolerance, (jfloat)sync.mTolerance);
H A Dandroid_media_SyncParams.h41 jfieldID tolerance; member in struct:android::SyncParams::fields_t
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/
H A DBitmapTest.java195 final int tolerance = 1;
214 assertTrue("red", Math.abs(rr - r1) <= tolerance);
219 assertTrue("green", Math.abs(gg - g1) <= tolerance);
224 assertTrue("blue", Math.abs(bb - b1) <= tolerance);
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
H A DListWithEditTextHeaderTest.java52 @FlakyTest(tolerance=2)
/frameworks/rs/java/tests/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
H A DSGEMMTest.java84 float tolerance = allowedError * (l2NormOut < l2NormRef ? l2NormOut : l2NormRef);
85 tolerance /= m * n;
89 if (absErr > tolerance) {
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A 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/
H A DMain.cpp61 " [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \\\n"
113 " -g specify a pixel tolerance to force images to grayscale, default 0\n"
266 int tolerance = 0; local
338 tolerance = atoi(argv[0]);
339 bundle.setGrayscaleTolerance(tolerance);
340 printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance);
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DVector3Test.java28 private static final float tolerance = 1.0f / (1 << 12); field in class:Vector3Test
47 return Math.abs(a - b) <= tolerance;
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraErrorCollector.java285 * Check if the two float values are equal with given error tolerance.
290 * @param tolerance The error margin for the equality check.
293 public <T> boolean expectEquals(String msg, float expected, float actual, float tolerance) { argument
298 if (!(Math.abs(expected - actual) <= tolerance)) {
299 addMessage(String.format("%s (expected = %s, actual = %s, tolerance = %s) ", msg,
300 expected, actual, tolerance));
308 * Check if the two double values are equal with given error tolerance.
313 * @param tolerance The error margin for the equality check
316 public <T> boolean expectEquals(String msg, double expected, double actual, double tolerance) { argument
321 if (!(Math.abs(expected - actual) <= tolerance)) {
[all...]
H A DCameraTestUtils.java2033 double tolerance = expected * EXIF_EXPOSURE_TIME_ERROR_MARGIN_RATIO;
2034 tolerance = Math.max(tolerance, EXIF_EXPOSURE_TIME_MIN_ERROR_MARGIN_SEC);
2036 exposureTimeValue, tolerance);
/frameworks/av/media/libstagefright/tests/
H A DSurfaceMediaSource_test.cpp288 int g, int b, int a, int tolerance=2) {
302 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) {
305 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) {
311 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) {
317 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) {
287 checkPixel(int x, int y, int r, int g, int b, int a, int tolerance=2) argument
/frameworks/native/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/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 2754 milliseconds