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

1 2

  /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));
  /external/skia/gpu/src/
FlingState.cpp 48 const SkScalar TOLERANCE = SkDoubleToScalar(0.15);
49 if (SkScalarAbs(unit->fX) < TOLERANCE) {
52 } else if (SkScalarAbs(unit->fY) < TOLERANCE) {
  /cts/tests/tests/graphics/src/android/graphics/cts/
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...]
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);
PorterDuffColorFilterTest.java 33 private static final int TOLERANCE = 5;
60 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE);
61 assertEquals(0x80, Color.green(lowerLeft), TOLERANCE);
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);
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/graphics/src/android/graphics/drawable/shapes/cts/
PathShapeTest.java 39 private static final int TOLERANCE = 4;
107 assertEquals(50, horizontal, TOLERANCE);
108 assertEquals(50, vertical, TOLERANCE);
109 assertEquals(25, diagonal, TOLERANCE);
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);
  /external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Date/
15.9.2.2-4.js 38 var TOLERANCE = 100;
15.9.2.2-1.js 38 var TOLERANCE = 100;
15.9.2.2-2.js 38 var TOLERANCE = 100;
15.9.2.2-3.js 38 var TOLERANCE = 100;
15.9.2.2-5.js 38 var TOLERANCE = 100;
15.9.2.2-6.js 38 var TOLERANCE = 100;
  /external/opencv/cv/src/
cvcamshift.cpp 170 const int TOLERANCE = 10;
193 windowIn.x -= TOLERANCE;
197 windowIn.y -= TOLERANCE;
201 windowIn.width += 2 * TOLERANCE;
205 windowIn.height += 2 * TOLERANCE;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/audioquality/
CalibrateVolumeActivity.java 48 private static final float TOLERANCE = 1.03f;
130 if (rms * TOLERANCE < TARGET_RMS) state = Status.LOW;
131 else if (rms > TARGET_RMS * TOLERANCE) state = Status.HIGH;
  /cts/tests/tests/media/src/android/media/cts/
EqualizerTest.java 40 private final static float TOLERANCE = 100; // +/-1dB
140 // allow +/- TOLERANCE margin on actual level compared to requested level
142 (level >= (levelRange[1] - TOLERANCE)) &&
143 (level <= (levelRange[1] + TOLERANCE)));
274 (settings.bandLevels[0] >= (newLevel - TOLERANCE)) &&
275 (settings.bandLevels[0] <= (newLevel + TOLERANCE)));
  /external/skia/src/views/
SkTouchGesture.cpp 48 const SkScalar TOLERANCE = SkDoubleToScalar(0.15);
49 if (SkScalarAbs(unit->fX) < TOLERANCE) {
52 } else if (SkScalarAbs(unit->fY) < TOLERANCE) {
228 // GrPrintf("--- drop touchMove, withing jitter tolerance %g %g\n", rec.fLastX - x, rec.fLastY - y);

Completed in 601 milliseconds

1 2