/cts/apps/CtsVerifier/src/com/android/cts/verifier/audioquality/experiments/ |
D | BiasExperiment.java | 32 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
|
D | GainLinearityExperiment.java | 34 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
|
D | SoundLevelExperiment.java | 36 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/ |
D | ColorMatrixTest.java | 36 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 …]
|
D | ColorMatrixColorFilterTest.java | 36 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
|
D | LightingColorFilterTest.java | 35 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
|
D | ComposeShaderTest.java | 43 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()
|
D | AvoidXfermodeTest.java | 38 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()
|
D | PorterDuffColorFilterTest.java | 33 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()
|
D | SweepGradientTest.java | 45 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()
|
D | CornerPathEffectTest.java | 44 private static final int TOLERANCE = 5; field in CornerPathEffectTest 85 expectedPaint.setStrokeWidth(TOLERANCE); in testCornerPathEffect()
|
D | InterpolatorTest.java | 33 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/ |
D | PathShapeTest.java | 39 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()
|
D | ArcShapeTest.java | 40 private static final int TOLERANCE = 4; // tolerance in pixels field in ArcShapeTest 86 assertEquals((double)SQUARE / 2 / Math.sqrt(2), count, TOLERANCE); in testDraw()
|
D | OvalShapeTest.java | 40 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/ |
D | EqualizerTest.java | 40 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/ |
D | CalibrateVolumeActivity.java | 48 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/ |
D | ScrollViewTest.java | 57 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/ |
D | NotificationTest.java | 43 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/ |
D | AnimationDrawableTest.java | 50 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/ |
D | TelephonyManagerTest.java | 43 private static final int TOLERANCE = 1000; field in TelephonyManagerTest 124 mLock.wait(TOLERANCE); in testListen()
|