Home
last modified time | relevance | path

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

/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.java137 final int tolerance = 70; in testPlayAudioFromDataURI() local
165 assertEquals(mp3Duration, mp.getDuration(), tolerance); in testPlayAudioFromDataURI()
171 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); in testPlayAudioFromDataURI()
201 final int tolerance = 70;
217 assertEquals(mp3Duration, mp.getDuration(), tolerance);
223 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance);
255 final int tolerance = 70;
269 assertEquals(midiDuration, mp.getDuration(), tolerance);
275 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance);
701 final int tolerance = 150;
[all …]
DMediaRecorderTest.java445 private void checkRecordedTime(long expectedMs, long actualMs, long tolerance) { in checkRecordedTime() argument
446 assertEquals(expectedMs, actualMs, tolerance); in checkRecordedTime()
448 assertEquals(actualFileDurationMs, actualMs, tolerance); in checkRecordedTime()
464 long fileSize, long tolerance) throws Exception { in testSetMaxFileSize() argument
487 checkOutputFileSize(OUTPUT_PATH, fileSize, tolerance); in testSetMaxFileSize()
490 private void checkOutputFileSize(final String fileName, long fileSize, long tolerance) { in checkOutputFileSize() argument
492 assertEquals(fileSize, mOutFile.length(), tolerance); in checkOutputFileSize()
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorMatrixColorFilterTest.java98 private void assertColor(int expected, int actual, int tolerance) { in assertColor() argument
99 assertEquals(Color.red(expected), Color.red(actual), tolerance); in assertColor() local
100 assertEquals(Color.green(expected), Color.green(actual), tolerance); in assertColor() local
101 assertEquals(Color.blue(expected), Color.blue(actual), tolerance); in assertColor() local
102 assertEquals(Color.alpha(expected), Color.alpha(actual), tolerance); in assertColor() local
DSweepGradientTest.java82 private void checkColors(int[] colors, float[] positions, int tolerance) { in checkColors() argument
124 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); in checkColors() local
125 assertEquals(Color.red(color), Color.red(pixel), tolerance); in checkColors() local
126 assertEquals(Color.green(color), Color.green(pixel), tolerance); in checkColors() local
127 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); in checkColors() local
/cts/tests/tests/nativeopengl/standalone/jni/tests/
DGLTest_test.cpp155 bool checkPixel(GLubyte * actual, GLubyte * expected, int tolerance) { in checkPixel() argument
157 if (abs(actual[i] - expected[i]) > tolerance) { in checkPixel()
166 GLubyte * expected, int tolerance) { in AssertPixel() argument
168 if (checkPixel(actual, expected, tolerance)) { in AssertPixel()
173 << "Pixel comparison failed with tolerance " << tolerance << "\n" in AssertPixel()
/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()
/cts/tests/tests/view/src/android/view/cts/
DVelocityTrackerTest.java180 private void assertVelocity(float tolerance, String message) { in assertVelocity() argument
186 if (errorVx > tolerance || errorVy > tolerance) { in assertVelocity()
190 tolerance * 100.0f, mVx, mVy, in assertVelocity()
/cts/tests/tests/hardware/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.java193 private boolean shouldTestThisNetworkType(int networkTypeIndex, long tolerance) in shouldTestThisNetworkType() argument
199 mStartTime = System.currentTimeMillis() - tolerance; in shouldTestThisNetworkType()
201 mEndTime = System.currentTimeMillis() + tolerance; in shouldTestThisNetworkType()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
DRawConverter.java498 double tolerance = 0.0001; in findDngInterpolationFactor() local
523 while (lastDiff > tolerance && loopLimit > 0) { in findDngInterpolationFactor()
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/
DCameraTestUtils.java2005 double tolerance = expected * EXIF_EXPOSURE_TIME_ERROR_MARGIN_RATIO; in verifyJpegExifExtraTags() local
2006 tolerance = Math.max(tolerance, EXIF_EXPOSURE_TIME_MIN_ERROR_MARGIN_SEC); in verifyJpegExifExtraTags()
2008 exposureTimeValue, tolerance); in verifyJpegExifExtraTags()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Dbox2d.js110 …t0);y.b2Assert(1-m.t0>Number.MIN_VALUE);var s=e.m_radius+f.m_radius;b=b.tolerance;var v=0,t=0,x=0;…
277 ….m_fixtureB.GetShape());A.s_input.sweepA=j;A.s_input.sweepB=o;A.s_input.tolerance=O.b2_linearSlop;…