Home
last modified time | relevance | path

Searched refs:TOLERANCE (Results 1 – 21 of 21) sorted by relevance

/cts/apps/CtsVerifier/src/com/android/cts/verifier/audioquality/experiments/
DBiasExperiment.java32 private static final float TOLERANCE = 200.0f; field in BiasExperiment
50 if (mean < -TOLERANCE || mean > TOLERANCE) { in compare()
56 mean, TOLERANCE, rms, duration)); in compare() local
DGainLinearityExperiment.java34 private static final float TOLERANCE = 2.0f; // Maximum allowed deviation from linearity in dB field in GainLinearityExperiment
75 } else if (deviation > TOLERANCE) { in compare()
78 deviation, TOLERANCE)); in compare() local
82 deviation, TOLERANCE)); in compare() local
DSoundLevelExperiment.java36 private static final float TOLERANCE = 1.05f; field in SoundLevelExperiment
67 if (rms * TOLERANCE < CalibrateVolumeActivity.TARGET_RMS) { in compare()
70 } else if (rms > CalibrateVolumeActivity.TARGET_RMS * TOLERANCE) { in compare()
79 100.0f * (TOLERANCE - 1.0f), duration)); in compare()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorMatrixTest.java36 private static final float TOLERANCE = 0.0000001f; field in ColorMatrixTest
204 assertEquals(-1.0f, ret[6], TOLERANCE); in testSetRotate()
205 assertEquals(-1.0f, ret[12], TOLERANCE); in testSetRotate()
206 assertEquals(0, ret[7], TOLERANCE); in testSetRotate()
207 assertEquals(0, ret[11], TOLERANCE); in testSetRotate()
210 assertEquals(-1.0f, ret[0], TOLERANCE); in testSetRotate()
211 assertEquals(-1.0f, ret[12], TOLERANCE); in testSetRotate()
212 assertEquals(0, ret[2], TOLERANCE); in testSetRotate()
213 assertEquals(0, ret[10], TOLERANCE); in testSetRotate()
216 assertEquals(-1.0f, ret[0], TOLERANCE); in testSetRotate()
[all …]
DColorMatrixColorFilterTest.java36 private static final int TOLERANCE = 1; field in ColorMatrixColorFilterTest
109 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); in assertColor() local
110 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); in assertColor() local
111 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE); in assertColor() local
112 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE); in assertColor() local
DLightingColorFilterTest.java35 private static final int TOLERANCE = 2; field in LightingColorFilterTest
93 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE); in assertColor() local
94 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); in assertColor() local
95 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); in assertColor() local
96 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE); in assertColor() local
DComposeShaderTest.java43 private static final int TOLERANCE = 5; field in ComposeShaderTest
70 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); in testPorterDuff()
71 assertEquals(y, Color.red(pixel), TOLERANCE); in testPorterDuff()
72 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff()
73 assertEquals(x, Color.blue(pixel), TOLERANCE); in testPorterDuff()
DAvoidXfermodeTest.java38 private static final int TOLERANCE = 255; field in AvoidXfermodeTest
57 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.AVOID); in testAvoidXfermode()
62 new AvoidXfermode(greenPaint.getColor(), TOLERANCE, AvoidXfermode.Mode.TARGET); in testAvoidXfermode()
DPorterDuffColorFilterTest.java33 private static final int TOLERANCE = 5; field in PorterDuffColorFilterTest
60 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE); in testPorterDuffColorFilter()
61 assertEquals(0x80, Color.green(lowerLeft), TOLERANCE); in testPorterDuffColorFilter()
DSweepGradientTest.java45 private static final int TOLERANCE = 5; field in SweepGradientTest
67 checkColors(colors, positions, TOLERANCE); in test2Colors()
82 checkColors(colors, positions, TOLERANCE); in testColorArray()
98 checkColors(colors, positions, TOLERANCE); in testMultiColor()
DCornerPathEffectTest.java44 private static final int TOLERANCE = 5; field in CornerPathEffectTest
85 expectedPaint.setStrokeWidth(TOLERANCE); in testCornerPathEffect()
DInterpolatorTest.java33 private static final float TOLERANCE = 0.1f; field in InterpolatorTest
386 assertEquals(expected, values[0], TOLERANCE); in assertValue()
399 assertEquals(expected, values[0], TOLERANCE); in assertValue()
405 assertEquals(expected[i], actual[i], TOLERANCE); in assertFloatArray()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DPathShapeTest.java39 private static final int TOLERANCE = 4; field in PathShapeTest
107 assertEquals(50, horizontal, TOLERANCE); in testDraw()
108 assertEquals(50, vertical, TOLERANCE); in testDraw()
109 assertEquals(25, diagonal, TOLERANCE); in testDraw()
DArcShapeTest.java40 private static final int TOLERANCE = 4; // tolerance in pixels field in ArcShapeTest
86 assertEquals((double)SQUARE / 2 / Math.sqrt(2), count, TOLERANCE); in testDraw()
DOvalShapeTest.java40 private static final int TOLERANCE = 4; // tolerance in pixels field in OvalShapeTest
80 assertEquals((double)SQUARE / Math.sqrt(2), count, TOLERANCE); in testDraw()
/cts/tests/tests/media/src/android/media/cts/
DEqualizerTest.java40 private final static float TOLERANCE = 100; // +/-1dB field in EqualizerTest
142 (level >= (levelRange[1] - TOLERANCE)) && in test1_0BandLevel()
143 (level <= (levelRange[1] + TOLERANCE))); in test1_0BandLevel()
274 (settings.bandLevels[0] >= (newLevel - TOLERANCE)) && in test1_3Properties()
275 (settings.bandLevels[0] <= (newLevel + TOLERANCE))); in test1_3Properties()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audioquality/
DCalibrateVolumeActivity.java48 private static final float TOLERANCE = 1.03f; field in CalibrateVolumeActivity
130 if (rms * TOLERANCE < TARGET_RMS) state = Status.LOW; in handleMessage()
131 else if (rms > TARGET_RMS * TOLERANCE) state = Status.HIGH; in handleMessage()
/cts/tests/tests/widget/src/android/widget/cts/
DScrollViewTest.java57 private static final int TOLERANCE = 2; field in ScrollViewTest
367 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled()
386 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled()
461 assertEquals(mPageHeight, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
464 assertEquals(mPageHeight * 2, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
468 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
471 assertEquals(mScrollBottom - mPageHeight, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
474 assertEquals(mScrollBottom -mPageHeight * 2, mScrollView.getScrollY(), TOLERANCE); in testPageScroll()
622 mScrollView.computeVerticalScrollRange(), TOLERANCE); in testComputeVerticalScrollRange()
/cts/tests/tests/app/src/android/app/cts/
DNotificationTest.java43 private static final int TOLERANCE = 200; field in NotificationTest
70 assertTrue(System.currentTimeMillis() - mNotification.when < TOLERANCE); in testConstructor()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimationDrawableTest.java50 private static final long TOLERANCE = 500; field in AnimationDrawableTest
479 new DelayedCheck(timeout + TOLERANCE) { in delayedCheckDrawable()
495 Thread.sleep(duration + TOLERANCE); in assertStoppedAnimation()
/cts/tests/tests/telephony/src/android/telephony/cts/
DTelephonyManagerTest.java43 private static final int TOLERANCE = 1000; field in TelephonyManagerTest
124 mLock.wait(TOLERANCE); in testListen()