/frameworks/base/graphics/java/android/graphics/ |
H A D | AvoidXfermode.java | 42 * 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 D | test_macros.h | 16 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 D | FlakyTest.java | 27 * 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 D | InstrumentationTestCase.java | 181 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 D | SyncParams.java | 52 * <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 D | pose_test.cpp | 29 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 D | GlobalFocusChangeTest.java | 53 @FlakyTest(tolerance = 4) 65 @FlakyTest(tolerance = 4) 76 @FlakyTest(tolerance = 4)
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
H A D | AutoCompleteTextViewCallbacks.java | 35 @FlakyTest(tolerance=3) 60 @FlakyTest(tolerance=3) 109 @FlakyTest(tolerance=3)
|
H A D | AutoCompleteTextViewPopup.java | 44 @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 D | GLTest.h | 56 int r, int g, int b, int a, int tolerance = 2); 58 int tolerance = 1);
|
H A D | GLTest.cpp | 176 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 D | BandwidthTestCase.java | 66 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 D | android_media_SyncParams.cpp | 38 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 D | android_media_SyncParams.h | 41 jfieldID tolerance; member in struct:android::SyncParams::fields_t
|
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/ |
H A D | UT_multi_input.java | 33 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 D | BitmapTest.java | 196 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 D | ListWithEditTextHeaderTest.java | 52 @FlakyTest(tolerance=2)
|
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/ |
H A D | SGEMMTest.java | 84 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 D | BroadcastTest.java | 233 @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 D | Main.cpp | 61 " [-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 D | Vector3Test.java | 28 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 D | CameraErrorCollector.java | 285 * 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 D | CameraTestUtils.java | 2033 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 D | SurfaceMediaSource_test.cpp | 288 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 D | mat.h | 308 static bool isPositiveSemidefinite(const mat<TYPE, C, C>& m, TYPE tolerance) { argument 315 if (fabs(m[i][j] - m[j][i]) > tolerance)
|