HomeSort by relevance Sort by last modified time
    Searched refs:tolerance (Results 1 - 25 of 103) sorted by null

1 2 3 4 5

  /frameworks/base/graphics/java/android/graphics/
AvoidXfermode.java 40 * There are two modes, and each mode interprets a tolerance value.
44 * Tolerance near 0: avoid any colors even remotely similar to the op-color
45 * Tolerance near 255: avoid only colors nearly identical to the op-color
49 * Tolerance near 0: draw only on colors that are nearly identical to the op-color
50 * Tolerance near 255: draw on any colors even remotely similar to the op-color
52 public AvoidXfermode(int opColor, int tolerance, Mode mode) {
53 if (tolerance < 0 || tolerance > 255) {
54 throw new IllegalArgumentException("tolerance must be 0..255");
56 native_instance = nativeCreate(opColor, tolerance, mode.nativeInt)
    [all...]
  /frameworks/base/media/jni/mediaeditor/
VideoEditorThumbnailMain.h 53 M4OSA_UInt32 tolerance);
68 M4OSA_UInt32 tolerance);
VideoEditorThumbnailMain.cpp 77 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);
VideoBrowserMain.h 137 M4OSA_UInt32 tolerance);
  /frameworks/base/core/java/android/test/
FlakyTest.java 27 * the test fails. The total number of executions is specified by the tolerance and
35 * as a failed test. If the tolerance factor is less than 1, the test runs
40 int tolerance() default 1;
InstrumentationTestCase.java 175 runCount = method.getAnnotation(FlakyTest.class).tolerance();
182 final int tolerance = runCount; local
189 runMethod(testMethod, tolerance, repetitive);
204 private void runMethod(Method runMethod, int tolerance) throws Throwable {
205 runMethod(runMethod, tolerance, false);
208 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable {
231 } while ((runCount < tolerance) && (isRepetitive || exception != null));
  /frameworks/base/core/jni/android/graphics/
Xfermode.cpp 35 U8CPU tolerance, SkAvoidXfermode::Mode mode)
37 return new SkAvoidXfermode(opColor, tolerance, mode);
  /cts/tests/tests/media/src/android/media/cts/
FaceDetector_FaceTest.java 57 float tolerance = 5f; local
61 assertEquals(eyesDistance, face.eyesDistance(), tolerance);
64 assertEquals(eyesMidpointX, eyesMP.x, tolerance);
65 assertEquals(eyesMidpointY, eyesMP.y, tolerance);
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
AvoidXfermode_Delegate.java 64 /*package*/ static int nativeCreate(int opColor, int tolerance, int nativeMode) {
  /frameworks/base/core/tests/coretests/src/android/view/
GlobalFocusChangeTest.java 51 @FlakyTest(tolerance = 4)
63 @FlakyTest(tolerance = 4)
74 @FlakyTest(tolerance = 4)
  /frameworks/base/core/tests/coretests/src/android/widget/
AutoCompleteTextViewCallbacks.java 35 @FlakyTest(tolerance=3)
60 @FlakyTest(tolerance=3)
109 @FlakyTest(tolerance=3)
AutoCompleteTextViewPopup.java 44 @FlakyTest(tolerance=3)
76 @FlakyTest(tolerance=3)
103 @FlakyTest(tolerance=3)
136 @FlakyTest(tolerance=3)
170 @FlakyTest(tolerance=3)
  /frameworks/base/core/tests/utillib/src/android/test/
BandwidthTestCase.java 66 runCount = method.getAnnotation(FlakyTest.class).tolerance();
73 final int tolerance = runCount; local
80 runMethod(testMethod, tolerance, repetitive);
116 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable {
140 } while ((runCount < tolerance) && (isRepetitive || exception != null));
  /cts/tests/tests/webkit/src/android/webkit/cts/
CacheManager_CacheResultTest.java 63 final long tolerance = 5 * 1000; // 5s local
92 (double)tolerance);
99 (double)tolerance);
  /cts/tests/tests/view/src/android/view/cts/
VelocityTrackerTest.java 180 private void assertVelocity(float tolerance, String message) {
186 if (errorVx > tolerance || errorVy > tolerance) {
187 fail(String.format("Velocity exceeds tolerance of %6.1f%%: "
190 tolerance * 100.0f, mVx, mVy,
  /external/skia/include/effects/
SkAvoidXfermode.h 30 There are two modes, and each mode interprets a tolerance value.
34 Tolerance near 0: avoid any colors even remotely similar to the op-color
35 Tolerance near 255: avoid only colors nearly identical to the op-color
39 Tolerance near 0: draw only on colors that are nearly identical to the op-color
40 Tolerance near 255: draw on any colors even remotely similar to the op-color
42 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
  /cts/tests/tests/graphics/src/android/graphics/cts/
SweepGradientTest.java 41 private static final int TOLERANCE = 10;
58 checkColors(colors, positions, TOLERANCE);
68 checkColors(colors, positions, TOLERANCE);
79 checkColors(colors, positions, TOLERANCE);
82 private void checkColors(int[] colors, float[] positions, int tolerance) {
124 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); local
125 assertEquals(Color.red(color), Color.red(pixel), tolerance); local
126 assertEquals(Color.green(color), Color.green(pixel), tolerance); local
127 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); local
  /external/skia/tests/
Matrix44Test.cpp 15 const SkScalar tolerance = SK_Scalar1 / 200000; local
17 const SkScalar tolerance = SK_Scalar1 / 1024;
20 return SkScalarAbs(a - b) <= tolerance;
  /external/webkit/Tools/DumpRenderTree/qt/
ImageDiff.cpp 34 qreal tolerance = 0; local
38 if (args[i] == "-t" || args[i] == "--tolerance")
39 tolerance = args[i + 1].toDouble();
119 if (difference <= tolerance) {
  /external/skia/include/core/
SkScalar.h 308 /* <= is slower than < for floats, so we use < for our tolerance test
312 SkScalar tolerance = SK_ScalarNearlyZero) {
313 SkASSERT(tolerance > 0);
314 return SkScalarAbs(x) < tolerance;
318 SkScalar tolerance = SK_ScalarNearlyZero) {
319 SkASSERT(tolerance > 0);
320 return SkScalarAbs(x-y) < tolerance;
  /bionic/libc/kernel/common/linux/
timex.h 52 long tolerance; member in struct:timex
  /development/ndk/platforms/android-3/include/linux/
timex.h 45 long tolerance; member in struct:timex
  /external/skia/src/effects/
SkAvoidXfermode.cpp 13 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode)
15 if (tolerance > 255) {
16 tolerance = 255;
20 fDistMul = (256 << 14) / (tolerance + 1);
  /frameworks/base/core/tests/coretests/src/android/widget/listview/focus/
ListWithEditTextHeaderTest.java 50 @FlakyTest(tolerance=2)
  /frameworks/base/graphics/tests/graphicstests/src/android/graphics/
BitmapTest.java 195 final int tolerance = 1; local
214 assertTrue("red", Math.abs(rr - r1) <= tolerance);
219 assertTrue("green", Math.abs(gg - g1) <= tolerance);
224 assertTrue("blue", Math.abs(bb - b1) <= tolerance);

Completed in 611 milliseconds

1 2 3 4 5