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

1 2 3 4 5

  /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...]
  /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/apps/CtsVerifier/src/com/android/cts/verifier/audioquality/experiments/
BiasExperiment.java 32 private static final float TOLERANCE = 200.0f;
50 if (mean < -TOLERANCE || mean > TOLERANCE) {
56 mean, TOLERANCE, rms, duration));
GainLinearityExperiment.java 34 private static final float TOLERANCE = 2.0f; // Maximum allowed deviation from linearity in dB
75 } else if (deviation > TOLERANCE) {
78 deviation, TOLERANCE));
82 deviation, TOLERANCE));
SoundLevelExperiment.java 36 private static final float TOLERANCE = 1.05f;
67 if (rms * TOLERANCE < CalibrateVolumeActivity.TARGET_RMS) {
70 } else if (rms > CalibrateVolumeActivity.TARGET_RMS * TOLERANCE) {
79 100.0f * (TOLERANCE - 1.0f), duration));
  /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;
  /cts/tests/tests/graphics/src/android/graphics/cts/
RadialGradientTest.java 47 int tolerance = (int)(0xFF / (0.3f * RADIUS) * 2); local
55 checkPixels(b, colors, positions, tolerance);
66 int tolerance = (int)(0xFF / RADIUS * 2); local
74 checkPixels(b, colors, positions, tolerance);
77 private void checkPixels(Bitmap bitmap, int[] colors, float[] positions, int tolerance) {
111 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); local
112 assertEquals(Color.red(color), Color.red(pixel), tolerance); local
113 assertEquals(Color.green(color), Color.green(pixel), tolerance); local
114 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); local
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
AvoidXfermodeTest.java 36 * ToBeFixed: This test ought to work with a TOLERANCE of 0. See bug 2034547.
38 private static final int TOLERANCE = 255;
49 explanation = "AvoidXfermode does not work as expected with tolerance 0.")
57 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.AVOID);
62 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.TARGET);
ColorMatrixColorFilterTest.java 36 private static final int TOLERANCE = 1;
109 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE);
110 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE);
111 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE);
112 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE);
ComposeShaderTest.java 43 private static final int TOLERANCE = 5;
70 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE);
71 assertEquals(y, Color.red(pixel), TOLERANCE);
72 assertEquals(green, Color.green(pixel), TOLERANCE);
73 assertEquals(x, Color.blue(pixel), TOLERANCE);
LightingColorFilterTest.java 35 private static final int TOLERANCE = 2;
93 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE);
94 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE);
95 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE);
96 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE);
ColorMatrixTest.java 36 private static final float TOLERANCE = 0.0000001f;
204 assertEquals(-1.0f, ret[6], TOLERANCE);
205 assertEquals(-1.0f, ret[12], TOLERANCE);
206 assertEquals(0, ret[7], TOLERANCE);
207 assertEquals(0, ret[11], TOLERANCE);
210 assertEquals(-1.0f, ret[0], TOLERANCE);
211 assertEquals(-1.0f, ret[12], TOLERANCE);
212 assertEquals(0, ret[2], TOLERANCE);
213 assertEquals(0, ret[10], TOLERANCE);
216 assertEquals(-1.0f, ret[0], TOLERANCE);
    [all...]
CornerPathEffectTest.java 44 private static final int TOLERANCE = 5;
81 // A paint that draws the expected path with a tolerance width into the red channel
85 expectedPaint.setStrokeWidth(TOLERANCE);
  /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/stlport/test/unit/
math_aux.h 14 * This function is not only used to compare floating point values with a tolerance,
  /ndk/tests/device/test-gnustl-full/unit/
math_aux.h 14 * This function is not only used to compare floating point values with a tolerance,
  /ndk/tests/device/test-stlport/unit/
math_aux.h 14 * This function is not only used to compare floating point values with a tolerance,
  /packages/apps/Mms/src/org/w3c/dom/smil/
ElementSyncBehavior.java 25 * The sync tolerance for the associated element. It has an effect only if
37 * Defines the default value for the sync tolerance for an element, and
  /cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
ArcShapeTest.java 40 private static final int TOLERANCE = 4; // tolerance in pixels
86 assertEquals((double)SQUARE / 2 / Math.sqrt(2), count, TOLERANCE);
OvalShapeTest.java 40 private static final int TOLERANCE = 4; // tolerance in pixels
80 assertEquals((double)SQUARE / Math.sqrt(2), count, TOLERANCE);
PathShapeTest.java 39 private static final int TOLERANCE = 4;
107 assertEquals(50, horizontal, TOLERANCE);
108 assertEquals(50, vertical, TOLERANCE);
109 assertEquals(25, diagonal, 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/jni/android/graphics/
Xfermode.cpp 35 U8CPU tolerance, SkAvoidXfermode::Mode mode)
37 return new SkAvoidXfermode(opColor, tolerance, mode);
  /frameworks/base/core/tests/coretests/src/android/widget/
AutoCompleteTextViewPopup.java 44 @FlakyTest(tolerance=3)
76 @FlakyTest(tolerance=3)
103 @FlakyTest(tolerance=3)
136 @FlakyTest(tolerance=3)
170 @FlakyTest(tolerance=3)

Completed in 455 milliseconds

1 2 3 4 5