Home
last modified time | relevance | path

Searched refs:tolerance (Results 1 – 18 of 18) sorted by relevance

/cts/common/device-side/util/src/com/android/compatibility/common/util/
DColorUtils.java29 public static void verifyColor(int expected, int observed, int tolerance) { in verifyColor() argument
32 + ", tolerated channel error " + tolerance; in verifyColor()
33 assertEquals(s, Color.red(expected), Color.red(observed), tolerance); in verifyColor()
34 assertEquals(s, Color.green(expected), Color.green(observed), tolerance); in verifyColor()
35 assertEquals(s, Color.blue(expected), Color.blue(observed), tolerance); in verifyColor()
36 assertEquals(s, Color.alpha(expected), Color.alpha(observed), tolerance); in verifyColor()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dfloat16_gen.c122 void getErrorBar(unsigned short value, int tolerance, unsigned short bounds[2]) { in getErrorBar() argument
124 if (tolerance != 1 && tolerance != 3) { in getErrorBar()
126 tolerance); in getErrorBar()
160 half lb = hValue - tolerance * ulp; in getErrorBar()
161 half ub = hValue + tolerance * ulp; in getErrorBar()
226 int tolerance) { in printReferenceOutput() argument
237 getErrorBar(result, tolerance, resultBounds); in printReferenceOutput()
/cts/tests/tests/media/src/android/media/cts/
DFaceDetector_FaceTest.java57 float tolerance = 5f; in testFaceProperties() local
61 assertEquals(eyesDistance, face.eyesDistance(), tolerance); in testFaceProperties()
64 assertEquals(eyesMidpointX, eyesMP.x, tolerance); in testFaceProperties()
65 assertEquals(eyesMidpointY, eyesMP.y, tolerance); in testFaceProperties()
DMediaPlayerTest.java191 final int tolerance = 70; in testPlayAudioFromDataURI() local
219 assertEquals(mp3Duration, mp.getDuration(), tolerance); in testPlayAudioFromDataURI()
225 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); in testPlayAudioFromDataURI()
255 final int tolerance = 70;
271 assertEquals(mp3Duration, mp.getDuration(), tolerance);
277 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance);
308 final int tolerance = 70;
335 assertEquals(pos + SLEEP_TIME, mp.getCurrentPosition(), tolerance);
382 final int tolerance = 70; in testPlayMidi() local
396 assertEquals(midiDuration, mp.getDuration(), tolerance); in testPlayMidi()
[all …]
DMediaRecorderTest.java676 private void checkRecordedTime(long expectedMs, long actualMs, long tolerance) { in checkRecordedTime() argument
677 assertEquals(expectedMs, actualMs, tolerance); in checkRecordedTime()
679 assertEquals(actualFileDurationMs, actualMs, tolerance); in checkRecordedTime()
695 long fileSize, long tolerance) throws Exception { in testSetMaxFileSize() argument
718 checkOutputFileSize(OUTPUT_PATH, fileSize, tolerance); in testSetMaxFileSize()
900 long tolerance = 50 * 1024; in testRecordExceedFileSizeLimit() local
1034 checkOutputFileSize(filePath, fileSize, tolerance); in testRecordExceedFileSizeLimit()
1038 private void checkOutputFileSize(final String fileName, long fileSize, long tolerance) { in checkOutputFileSize() argument
1041 assertEquals(fileSize, file.length(), tolerance); in checkOutputFileSize()
DMediaSyncTest.java439 final double tolerance = state.mMediaDurationUs in playAV() local
448 + ", tolerance " + tolerance + "\n"; in playAV()
451 if (Math.abs(diff) <= tolerance) { in playAV()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DRectVerifier.java32 public RectVerifier(int outerColor, int innerColor, Rect innerRect, int tolerance) { in RectVerifier() argument
33 super(tolerance); in RectVerifier()
DSamplePointVerifier.java40 public SamplePointVerifier(Point[] testPoints, int[] expectedColors, int tolerance) { in SamplePointVerifier() argument
43 mTolerance = tolerance; in SamplePointVerifier()
/cts/tests/tests/view/src/android/view/cts/
DVelocityTrackerTest.java195 private void assertVelocity(float tolerance, String message) { in assertVelocity() argument
201 if (errorVx > tolerance || errorVy > tolerance) { in assertVelocity()
205 tolerance * 100.0f, mVx, mVy, in assertVelocity()
/cts/tests/tests/graphics/src/android/graphics/cts/
DSweepGradientTest.java94 private void verifyColors(int[] colors, float[] positions, int tolerance) { in verifyColors() argument
136 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); in verifyColors() local
137 assertEquals(Color.red(color), Color.red(pixel), tolerance); in verifyColors() local
138 assertEquals(Color.green(color), Color.green(pixel), tolerance); in verifyColors() local
139 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); in verifyColors() local
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DShadowTests.java35 public GrayScaleVerifier(Point[] testPoints, int[] expectedColors, int tolerance) { in GrayScaleVerifier() argument
36 super(testPoints, expectedColors, tolerance) ; in GrayScaleVerifier()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java289 public <T> boolean expectEquals(String msg, float expected, float actual, float tolerance) { in expectEquals() argument
294 if (!(Math.abs(expected - actual) <= tolerance)) { in expectEquals()
296 expected, actual, tolerance)); in expectEquals()
312 public <T> boolean expectEquals(String msg, double expected, double actual, double tolerance) { in expectEquals() argument
317 if (!(Math.abs(expected - actual) <= tolerance)) { in expectEquals()
319 expected, actual, tolerance)); in expectEquals()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java270 NetworkCallback(long tolerance, URL url) { in NetworkCallback() argument
271 mTolerance = tolerance; in NetworkCallback()
295 private boolean shouldTestThisNetworkType(int networkTypeIndex, final long tolerance) in shouldTestThisNetworkType() argument
302 NetworkCallback callback = new NetworkCallback(tolerance, new URL(CHECK_CONNECTIVITY_URL)); in shouldTestThisNetworkType()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageReaderTest.java501 double tolerance = IMAGE_DIFFERENCE_TOLERANCE; in testAllOutputYUVResolutions() local
503 tolerance = IMAGE_DIFFERENCE_TOLERANCE_LEGACY; in testAllOutputYUVResolutions()
507 if (difference > tolerance) { in testAllOutputYUVResolutions()
531 difference + ", tolerance is " + tolerance); in testAllOutputYUVResolutions()
/cts/tests/camera/src/android/hardware/camera2/cts/rs/
DRawConverter.java522 double tolerance = 0.0001; in findDngInterpolationFactor() local
547 while (lastDiff > tolerance && loopLimit > 0) { in findDngInterpolationFactor()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2225 double tolerance = expected * EXIF_EXPOSURE_TIME_ERROR_MARGIN_RATIO; in verifyJpegExifExtraTags() local
2226 tolerance = Math.max(tolerance, EXIF_EXPOSURE_TIME_MIN_ERROR_MARGIN_SEC); in verifyJpegExifExtraTags()
2228 exposureTimeValue, tolerance); in verifyJpegExifExtraTags()
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/cts/tools/dex-tools/dex/
Dclasses.out.dex74919 @dalvik.annotation.AnnotationDefault (value =Landroid/test/FlakyTest;:[tolerance =1] )
74925 public abstract int tolerance()
74941 final int val$tolerance