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

1 2 3 4

  /frameworks/base/graphics/java/android/graphics/
AvoidXfermode.java 39 * There are two modes, and each mode interprets a tolerance value.
43 * Tolerance near 0: avoid any colors even remotely similar to the op-color
44 * Tolerance near 255: avoid only colors nearly identical to the op-color
48 * Tolerance near 0: draw only on colors that are nearly identical to the op-color
49 * Tolerance near 255: draw on any colors even remotely similar to the op-color
51 public AvoidXfermode(int opColor, int tolerance, Mode mode) {
52 if (tolerance < 0 || tolerance > 255) {
53 throw new IllegalArgumentException("tolerance must be 0..255");
55 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);
  /frameworks/base/tools/layoutlib/bridge/src/android/graphics/
AvoidXfermode_Delegate.java 64 /*package*/ static int nativeCreate(int opColor, int tolerance, int nativeMode) {
  /external/skia/tests/
Matrix44Test.cpp 8 const SkScalar tolerance = SK_Scalar1 / 200000; local
10 const SkScalar tolerance = SK_Scalar1 / 1024;
13 return SkScalarAbs(a - b) <= tolerance;
MatrixTest.cpp 8 const SkScalar tolerance = SK_Scalar1 / 200000; local
10 const SkScalar tolerance = SK_Scalar1 / 1024;
13 return SkScalarAbs(a - b) <= tolerance;
  /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)
  /cts/tests/tests/media/src/android/media/cts/
FaceDetector_FaceTest.java 85 float tolerance = 5f; local
89 assertEquals(eyesDistance, face.eyesDistance(), tolerance);
92 assertEquals(eyesMidpointX, eyesMP.x, tolerance);
93 assertEquals(eyesMidpointY, eyesMP.y, tolerance);
  /external/skia/include/effects/
SkAvoidXfermode.h 37 There are two modes, and each mode interprets a tolerance value.
41 Tolerance near 0: avoid any colors even remotely similar to the op-color
42 Tolerance near 255: avoid only colors nearly identical to the op-color
46 Tolerance near 0: draw only on colors that are nearly identical to the op-color
47 Tolerance near 255: draw on any colors even remotely similar to the op-color
49 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
  /cts/tests/tests/graphics/src/android/graphics/cts/
SweepGradientTest.java 45 private static final int TOLERANCE = 5;
67 checkColors(colors, positions, TOLERANCE);
82 checkColors(colors, positions, TOLERANCE);
98 checkColors(colors, positions, TOLERANCE);
101 private void checkColors(int[] colors, float[] positions, int tolerance) {
143 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); local
144 assertEquals(Color.red(color), Color.red(pixel), tolerance); local
145 assertEquals(Color.green(color), Color.green(pixel), tolerance); local
146 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); local
  /cts/tests/tests/webkit/src/android/webkit/cts/
CacheManager_CacheResultTest.java 134 final long tolerance = 5 * 1000; // 5s local
158 DateUtils.parseDate(result.getLastModified()).getTime(), tolerance);
164 assertEquals(time + validity, result.getExpires(), 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) {
  /bionic/libc/kernel/common/linux/
timex.h 45 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 21 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode)
23 if (tolerance > 255) {
24 tolerance = 255;
28 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);
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/
timex.h 82 * offset and maximum frequency tolerance.
108 long tolerance; /* clock frequency tolerance (ppm) member in struct:timex
  /prebuilt/linux-x86/toolchain/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/sys/
timex.h 44 long int tolerance; /* clock frequency tolerance (ppm) (read only) */ member in struct:timex

Completed in 644 milliseconds

1 2 3 4