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()
DMediaPlayer2Test.java211 final int tolerance = 70; in testPlayAudioFromDataURI() local
271 assertEquals(mp3Duration, mp.getDuration(), tolerance); in testPlayAudioFromDataURI()
279 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); in testPlayAudioFromDataURI()
321 final int tolerance = 70;
370 assertEquals(mp3Duration, mp.getDuration(), tolerance);
378 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance);
422 final int tolerance = 70;
472 assertEquals(pos + SLEEP_TIME, mp.getCurrentPosition(), tolerance);
544 final int tolerance = 70; in testPlayMidi() local
588 assertEquals(midiDuration, mp.getDuration(), tolerance); in testPlayMidi()
[all …]
DMediaPlayerTest.java206 final int tolerance = 70; in testPlayAudioFromDataURI() local
234 assertEquals(mp3Duration, mp.getDuration(), tolerance); in testPlayAudioFromDataURI()
240 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); in testPlayAudioFromDataURI()
270 final int tolerance = 70;
286 assertEquals(mp3Duration, mp.getDuration(), tolerance);
292 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance);
323 final int tolerance = 70;
350 assertEquals(pos + SLEEP_TIME, mp.getCurrentPosition(), tolerance);
397 final int tolerance = 70; in testPlayMidi() local
411 assertEquals(midiDuration, mp.getDuration(), tolerance); in testPlayMidi()
[all …]
DMediaRecorderTest.java736 private void checkRecordedTime(long expectedMs, long actualMs, long tolerance) { in checkRecordedTime() argument
737 assertEquals(expectedMs, actualMs, tolerance); in checkRecordedTime()
739 assertEquals(actualFileDurationMs, actualMs, tolerance); in checkRecordedTime()
755 long fileSize, long tolerance) throws Exception { in testSetMaxFileSize() argument
782 checkOutputFileSize(OUTPUT_PATH, fileSize, tolerance); in testSetMaxFileSize()
970 long tolerance = 50 * 1024; in testRecordExceedFileSizeLimit() local
1104 checkOutputFileSize(filePath, fileSize, tolerance); in testRecordExceedFileSizeLimit()
1108 private void checkOutputFileSize(final String fileName, long fileSize, long tolerance) { in checkOutputFileSize() argument
1111 assertEquals(fileSize, file.length(), tolerance); in checkOutputFileSize()
DMediaSyncTest.java441 final double tolerance = state.mMediaDurationUs in playAV() local
450 + ", tolerance " + tolerance + "\n"; in playAV()
453 if (Math.abs(diff) <= tolerance) { in playAV()
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DSamplePointVerifier.java40 public SamplePointVerifier(Point[] testPoints, int[] expectedColors, int tolerance) { in SamplePointVerifier() argument
43 mTolerance = tolerance; in SamplePointVerifier()
83 int tolerance, VerifyPixelColor verifier) { in create() argument
84 return new SamplePointVerifier(testPoints, expectedColors, tolerance) { in create()
DRectVerifier.java32 public RectVerifier(int outerColor, int innerColor, Rect innerRect, int tolerance) { in RectVerifier() argument
33 super(tolerance); in RectVerifier()
/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/graphics/jni/
Dandroid_graphics_cts_MediaVulkanGpuTest.cpp38 bool fuzzyMatch(uint32_t value1, uint32_t value2, int32_t tolerance) { in fuzzyMatch() argument
46 if (std::abs(value1Masked - value2Masked) > tolerance) in fuzzyMatch()
/cts/apps/CameraITS/pymodules/its/
Dcv2image.py265 tolerance = 0.1
266 if width < height * (1 - tolerance) or width > height * (1 + tolerance):
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java287 public <T> boolean expectEquals(String msg, float expected, float actual, float tolerance) { in expectEquals() argument
292 if (!(Math.abs(expected - actual) <= tolerance)) { in expectEquals()
294 expected, actual, tolerance)); in expectEquals()
310 public <T> boolean expectEquals(String msg, double expected, double actual, double tolerance) { in expectEquals() argument
315 if (!(Math.abs(expected - actual) <= tolerance)) { in expectEquals()
317 expected, actual, tolerance)); in expectEquals()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DNetworkUsageStatsTest.java274 NetworkCallback(long tolerance, URL url) { in NetworkCallback() argument
275 mTolerance = tolerance; in NetworkCallback()
302 private boolean shouldTestThisNetworkType(int networkTypeIndex, final long tolerance) in shouldTestThisNetworkType() argument
309 NetworkCallback callback = new NetworkCallback(tolerance, new URL(CHECK_CONNECTIVITY_URL)); in shouldTestThisNetworkType()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageReaderTest.java504 double tolerance = IMAGE_DIFFERENCE_TOLERANCE; in testAllOutputYUVResolutions() local
506 tolerance = IMAGE_DIFFERENCE_TOLERANCE_LEGACY; in testAllOutputYUVResolutions()
510 if (difference > tolerance) { in testAllOutputYUVResolutions()
534 difference + ", tolerance is " + tolerance); in testAllOutputYUVResolutions()
/cts/tests/camera/utils/src/android/hardware/camera2/cts/
DCameraTestUtils.java2282 double tolerance = expected * EXIF_EXPOSURE_TIME_ERROR_MARGIN_RATIO; in verifyJpegExifExtraTags() local
2283 tolerance = Math.max(tolerance, EXIF_EXPOSURE_TIME_MIN_ERROR_MARGIN_SEC); in verifyJpegExifExtraTags()
2285 exposureTimeValue, tolerance); in verifyJpegExifExtraTags()
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...