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

12

/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/native/libs/vr/libdvrcommon/include/private/dvr/test/
H A Dtest_macros.h16 const A& expected, const B& actual, const T& tolerance) {
18 if (!IsEqual(expected[i], actual[i], tolerance)) {
21 << "\" differ at element " << i << " by at least " << tolerance
34 const A& expected, const B& actual, const T& tolerance) {
37 if (!IsEqual(expected(r, c), actual(r, c), tolerance)) {
41 << " by at least " << tolerance << " : "
54 const A& expected, const B& actual, const T& tolerance) {
56 if (!IsEqual(expected[i], actual[i], tolerance)) {
64 << "\" by at least " << tolerance << "."; local
72 const A& expected, const B& actual, const T& tolerance) {
14 CmpArrayLikeFloatEq( const char* expectedStr, const char* actualStr, const char* toleranceStr, const A& expected, const B& actual, const T& tolerance) argument
32 CmpMatrixLikeFloatEq( const char* expectedStr, const char* actualStr, const char* toleranceStr, const A& expected, const B& actual, const T& tolerance) argument
52 CmpArrayLikeFloatNe( const char* expectedStr, const char* actualStr, const char* toleranceStr, const A& expected, const B& actual, const T& tolerance) argument
70 CmpMatrixLikeFloatNe( const char* expectedStr, const char* actualStr, const char* toleranceStr, const A& expected, const B& actual, const T& tolerance) argument
84 << "\\" by at least " << tolerance << "."; local
[all...]
/frameworks/base/legacy-test/src/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/native/libs/vr/libdvrcommon/tests/
H A Dpose_test.cpp29 const auto tolerance = FT(0.0001); local
39 EXPECT_MAT4_NEAR(result_pose, mat4_t::Identity(), tolerance);
48 const auto tolerance = FT(0.0001); local
62 EXPECT_VEC3_NEAR(expected_transformed, actual_transformed, tolerance);
72 const auto tolerance = FT(0.0001); local
86 EXPECT_VEC3_NEAR(expected_rotated, actual_rotated, tolerance);
96 const auto tolerance = FT(0.0001); local
117 EXPECT_VEC3_NEAR(expected_transformed, actual_transformed, tolerance);
127 const auto tolerance = FT(0.0001); local
141 EXPECT_VEC3_NEAR(start_position, inverted, tolerance);
150 tolerance); local
152 tolerance); local
[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/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/
H A DUT_multi_input.java33 private final float tolerance = 1e-6f; field in class:UT_multi_input
94 if ((a[i] + b[i] - out0[i]) > tolerance) {
/frameworks/base/core/tests/coretests/src/android/graphics/
H A DBitmapTest.java196 final int tolerance = 1;
215 assertTrue("red", Math.abs(rr - r1) <= tolerance);
220 assertTrue("green", Math.abs(gg - g1) <= tolerance);
225 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/tests/java_api/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"
268 int tolerance = 0; local
340 tolerance = atoi(argv[0]);
341 bundle.setGrayscaleTolerance(tolerance);
342 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)

Completed in 2441 milliseconds

12