Home
last modified time | relevance | path

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

/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()
DMediaRecorderTest.java400 private void checkRecordedTime(long expectedMs, long actualMs, long tolerance) { in checkRecordedTime() argument
401 assertEquals(expectedMs, actualMs, tolerance); in checkRecordedTime()
403 assertEquals(actualFileDurationMs, actualMs, tolerance); in checkRecordedTime()
422 long fileSize, long tolerance) throws Exception { in testSetMaxFileSize() argument
441 checkOutputFileSize(OUTPUT_PATH, fileSize, tolerance); in testSetMaxFileSize()
444 private void checkOutputFileSize(final String fileName, long fileSize, long tolerance) { in checkOutputFileSize() argument
446 assertEquals(fileSize, mOutFile.length(), tolerance); in checkOutputFileSize()
DMediaPlayerTest.java90 final int tolerance = 70; in testPlayAudio() local
107 assertEquals(mp3Duration, mp.getDuration(), tolerance); in testPlayAudio()
113 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); in testPlayAudio()
456 final int tolerance = 150;
478 assertEquals(posAfter, posBefore, tolerance);
486 assertEquals(seekPos, posAfter, tolerance + audioLatencyTolerance);
492 assertEquals(posAfter, posBefore, tolerance);
501 assertEquals(posAfter, posBefore, tolerance);
/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/graphics/src/android/graphics/cts/
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/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/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;…
/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