Home
last modified time | relevance | path

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

12

/cts/tests/tests/graphics/src/android/graphics/cts/
DColorMatrixTest.java34 private static final float TOLERANCE = 0.0000001f; field in ColorMatrixTest
126 assertEquals(-1.0f, ret[6], TOLERANCE); in testSetRotate()
127 assertEquals(-1.0f, ret[12], TOLERANCE); in testSetRotate()
128 assertEquals(0, ret[7], TOLERANCE); in testSetRotate()
129 assertEquals(0, ret[11], TOLERANCE); in testSetRotate()
132 assertEquals(-1.0f, ret[0], TOLERANCE); in testSetRotate()
133 assertEquals(-1.0f, ret[12], TOLERANCE); in testSetRotate()
134 assertEquals(0, ret[2], TOLERANCE); in testSetRotate()
135 assertEquals(0, ret[10], TOLERANCE); in testSetRotate()
138 assertEquals(-1.0f, ret[0], TOLERANCE); in testSetRotate()
[all …]
DComposeShaderTest.java46 private static final int TOLERANCE = 5; field in ComposeShaderTest
69 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); in testPorterDuff()
70 assertEquals(y, Color.red(pixel), TOLERANCE); in testPorterDuff()
71 assertEquals(green, Color.green(pixel), TOLERANCE); in testPorterDuff()
72 assertEquals(x, Color.blue(pixel), TOLERANCE); in testPorterDuff()
102 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); in testBlendMode()
103 assertEquals(y, Color.red(pixel), TOLERANCE); in testBlendMode()
104 assertEquals(green, Color.green(pixel), TOLERANCE); in testBlendMode()
105 assertEquals(x, Color.blue(pixel), TOLERANCE); in testBlendMode()
DPorterDuffColorFilterTest.java37 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()
DInterpolatorTest.java38 private static final float TOLERANCE = 0.1f; field in InterpolatorTest
281 assertEquals(expected, values[0], TOLERANCE); in verifyValue()
288 assertArrayEquals(expected, values, TOLERANCE); in verifyValues()
294 assertEquals(expected, values[0], TOLERANCE); in verifyValue()
DCornerPathEffectTest.java47 private static final int TOLERANCE = 5; field in CornerPathEffectTest
83 expectedPaint.setStrokeWidth(TOLERANCE); in testCornerPathEffect()
DLightingColorFilterTest.java37 private static final int TOLERANCE = 2; field in LightingColorFilterTest
40 ColorUtils.verifyColor(expected, actual, TOLERANCE); in verifyColor()
DSweepGradientTest.java52 private static final int TOLERANCE = 10; field in SweepGradientTest
73 verifyColors(colors, positions, TOLERANCE); in test2Colors()
84 verifyColors(colors, positions, TOLERANCE); in testColorArray()
96 verifyColors(colors, positions, TOLERANCE); in testMultiColor()
/cts/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/ime/
DBitmapImage.java35 private static final int TOLERANCE = 4; field in BitmapImage
110 return lhs == rhs || (Math.abs(Color.red(lhs) - Color.red(rhs)) <= TOLERANCE in robustMatchInternal()
111 && Math.abs(Color.green(lhs) - Color.green(rhs)) <= TOLERANCE in robustMatchInternal()
112 && Math.abs(Color.blue(lhs) - Color.blue(rhs)) <= TOLERANCE); in robustMatchInternal()
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/
DPathShapeTest.java44 private static final int TOLERANCE = 4; field in PathShapeTest
97 assertEquals(50, horizontal, TOLERANCE); in testDraw()
98 assertEquals(50, vertical, TOLERANCE); in testDraw()
99 assertEquals(25, diagonal, TOLERANCE); in testDraw()
DArcShapeTest.java46 private static final int TOLERANCE = 4; // tolerance in pixels field in ArcShapeTest
96 assertEquals((double) SQUARE / 2 / Math.sqrt(2), count, TOLERANCE); in testDraw()
DOvalShapeTest.java48 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/inputmethod/mockime/src/com/android/cts/mockime/
DWatermark.java35 private static final int TOLERANCE = 8; field in Watermark
120 || (Math.abs(Color.red(targetPx) - Color.red(sourcePx)) <= TOLERANCE in robustMatch()
121 && Math.abs(Color.green(targetPx) - Color.green(sourcePx)) <= TOLERANCE in robustMatch()
122 && Math.abs(Color.blue(targetPx) - Color.blue(sourcePx)) <= TOLERANCE); in robustMatch()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DGameviceGv186Test.java33 private static final float TOLERANCE = 0.005f; field in GameviceGv186Test
48 expectedEvent.getAxisValue(axis), actualEvent.getAxisValue(axis), TOLERANCE); in assertAxis()
DInputTestCase.java58 private static final float TOLERANCE = 0.005f; field in InputTestCase
210 TOLERANCE); in assertAxis()
/cts/tests/tests/media/audio/src/android/media/audio/cts/
DEqualizerTest.java49 private final static float TOLERANCE = 100; // +/-1dB field in EqualizerTest
107 (level >= (levelRange[1] - TOLERANCE)) && in test1_0BandLevel()
108 (level <= (levelRange[1] + TOLERANCE))); in test1_0BandLevel()
191 (settings.bandLevels[0] >= (newLevel - TOLERANCE)) && in test1_3Properties()
192 (settings.bandLevels[0] <= (newLevel + TOLERANCE))); in test1_3Properties()
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DResourceManagerRecorderActivity.java49 private static final float TOLERANCE = 0.0002f; field in ResourceManagerRecorderActivity
201 + latitude, Math.abs(latitude - LATITUDE) <= TOLERANCE); in checkLocationInFile()
203 + longitude, Math.abs(longitude - LONGITUDE) <= TOLERANCE); in checkLocationInFile()
/cts/tests/tests/textclassifier/src/android/view/textclassifier/cts/
DTextClassifierEventTest.java39 private static final float TOLERANCE = 0.000001f; field in TextClassifierEventTest
201 assertThat(event.getScores()[0]).isWithin(TOLERANCE).of(0.5f); in assertFullTextSelectionEvent()
261 assertThat(event.getScores()[0]).isWithin(TOLERANCE).of(0.5f); in assertFullTextLinkifyEvent()
325 assertThat(event.getScores()[0]).isWithin(TOLERANCE).of(0.5f); in assertFullConversationActionsEvent()
391 assertThat(event.getScores()[0]).isWithin(TOLERANCE).of(0.5f); in assertFullLanguageDetectionEvent()
/cts/tests/media/src/android/mediav2/cts/
DAv1FilmGrainValidationTest.java60 private static final double TOLERANCE = 0.95; field in Av1FilmGrainValidationTest
147 * TOLERANCE); in dequeueOutput()
/cts/tests/tests/widget/src/android/widget/cts/
DScrollViewTest.java93 private static final int TOLERANCE = 2; field in ScrollViewTest
348 assertEquals(mScrollBottom, mScrollViewCustom.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled()
359 assertEquals(mScrollBottom, mScrollViewCustom.getScrollY(), TOLERANCE); in testAccessSmoothScrollingEnabled()
604 assertEquals(mPageHeight, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll()
607 assertEquals(mPageHeight * 2, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll()
611 assertEquals(mScrollBottom, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll()
614 assertEquals(mScrollBottom - mPageHeight, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll()
617 assertEquals(mScrollBottom -mPageHeight * 2, mScrollViewCustom.getScrollY(), TOLERANCE); in testPageScroll()
760 assertEquals(mPageHeight, mScrollViewCustom.getScrollY(), TOLERANCE); in testKeySpaceScroll()
767 assertEquals(mScrollBottom - mPageHeight, mScrollViewCustom.getScrollY(), TOLERANCE); in testKeySpaceScroll()
[all …]
DTextViewFontScalingTest.kt255 const val TOLERANCE = 5f in <lambda>() constant
273 .isWithin(TOLERANCE) in <lambda>()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimationDrawableTest.java65 private static final long TOLERANCE = 500; field in AnimationDrawableTest
369 PollingCheck.waitFor(timeout + TOLERANCE, in pollingCheckDrawable()
380 Thread.sleep(duration + TOLERANCE); in verifyStoppedAnimation()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DBlendModeColorFilterTest.java40 private static final int TOLERANCE = 5; field in BlendModeColorFilterTest
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceSensorManagerTest.java98 private static final float TOLERANCE = 0.01f; field in InputDeviceSensorManagerTest
262 assertEquals("Data index[" + i + "] not match", expected[i], received[i], TOLERANCE); in assertSensorDataEquals()
/cts/hostsidetests/videoencodingminimum/src/android/videoqualityfloor/cts/
DCtsVideoQualityFloorHostTest.java76 private static final float TOLERANCE = 0.95f; field in CtsVideoQualityFloorHostTest
272 + vmaf_score, vmaf_score >= TARGET_VMAF_SCORE * TOLERANCE); in testEncoding()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DTelephonyManagerTest.java220 private static final int TOLERANCE = 1000; field in TelephonyManagerTest
221 private static final int TIMEOUT_FOR_NETWORK_OPS = TOLERANCE * 180;
223 private static final int TIMEOUT_FOR_CARRIER_STATUS_FILE_CHECK = TOLERANCE * 180;
828 mLock.wait(TOLERANCE); // wait for mListener in testListen()
835 mLock.wait(TOLERANCE); in testListen()
844 mLock.wait(TOLERANCE); in testListen()
854 Thread.sleep(TOLERANCE); in testListen()
862 mLock.wait(TOLERANCE); in testListen()
1914 TOLERANCE/5 /*timeout per poll*/); in testResetSettings() local
1923 5 /*times*/, TOLERANCE/5 /*timeout per poll*/)); in testResetSettings()
[all …]

12