/cts/tests/tests/media/src/android/media/cts/ |
MediaPlayerTest.java | 131 final int tolerance = 70; local 159 assertEquals(mp3Duration, mp.getDuration(), tolerance); 165 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); 195 final int tolerance = 70; 211 assertEquals(mp3Duration, mp.getDuration(), tolerance); 217 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); 249 final int tolerance = 70; 263 assertEquals(midiDuration, mp.getDuration(), tolerance); 269 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); 703 final int tolerance = 150 [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/ |
CropObject.java | 108 public void setTouchTolerance(float tolerance) { 109 if (tolerance <= 0) { 110 throw new IllegalArgumentException("Tolerance must be greater than zero"); 112 mTouchTolerance = tolerance;
|
/external/ceres-solver/internal/ceres/ |
incomplete_lq_factorization_test.cc | 44 const double tolerance) { 53 EXPECT_NEAR(expected.values()[i], actual.values()[i], tolerance);
|
/external/chromium_org/gpu/command_buffer/tests/ |
gl_test_utils.cc | 130 GLint x, GLint y, GLsizei width, GLsizei height, GLint tolerance, 145 if (diff > tolerance) {
|
/external/eigen/Eigen/src/SparseCore/ |
SparseProduct.h | 103 EIGEN_STRONG_INLINE SparseSparseProduct(const Lhs& lhs, const Rhs& rhs, const RealScalar& tolerance) 104 : m_lhs(lhs), m_rhs(rhs), m_tolerance(tolerance), m_conservative(false)
|
/external/chromium_org/content/test/gpu/gpu_tests/ |
pixel.py | 107 if not ref_png.IsEqual(screenshot, tolerance=2):
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
video.py | 79 tolerance=color_tolerance)
|
bitmap_unittest.py | 217 tolerance=1)
|
/external/chromium_org/ui/gfx/ |
transform.h | 127 bool IsApproximatelyIdentityOrTranslation(SkMScalar tolerance) const;
|
/external/strace/ |
time.c | 417 int tolerance; member in struct:__anon35974 441 tprintf("tolerance=%d, time=", tx.tolerance); 473 tprintf("tolerance=%ld, time=", tx.tolerance); 484 tprintf("tolerance=%ld, time=", (long) tx.tolerance);
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/ |
ListManagedCursorTest.java | 113 @FlakyTest(tolerance=3)
|
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/helpers/ |
CameraErrorCollector.java | 280 * Check if the two float values are equal with given error tolerance. 285 * @param tolerance The error margin for the equality check. 288 public <T> boolean expectEquals(String msg, float expected, float actual, float tolerance) { 293 if (!(Math.abs(expected - actual) <= tolerance)) { 294 addMessage(String.format("%s (expected = %s, actual = %s, tolerance = %s) ", msg, 295 expected, actual, tolerance)); 303 * Check if the two double values are equal with given error tolerance. 308 * @param tolerance The error margin for the equality check 311 public <T> boolean expectEquals(String msg, double expected, double actual, double tolerance) { 316 if (!(Math.abs(expected - actual) <= tolerance)) { [all...] |
/external/chromium_org/third_party/skia/tests/ |
Matrix44Test.cpp | 12 const double tolerance = 1e-7; local 16 return diff <= tolerance; 20 const SkMScalar tolerance = SK_MScalar1 / 200000; local 22 return SkTAbs<SkMScalar>(a - b) <= tolerance; 26 const SkScalar tolerance = SK_Scalar1 / 200000; local 27 return SkScalarAbs(a - b) <= tolerance;
|
MatrixTest.cpp | 15 const SkScalar tolerance = SK_Scalar1 / 200000; local 16 return SkScalarAbs(a - b) <= tolerance; 404 SkScalar tolerance = SK_ScalarNearlyZero) { 408 if (diff < tolerance) { 417 if (diff <= largest*tolerance) { [all...] |
/external/skia/tests/ |
Matrix44Test.cpp | 12 const double tolerance = 1e-7; local 16 return diff <= tolerance; 20 const SkMScalar tolerance = SK_MScalar1 / 200000; local 22 return SkTAbs<SkMScalar>(a - b) <= tolerance; 26 const SkScalar tolerance = SK_Scalar1 / 200000; local 27 return SkScalarAbs(a - b) <= tolerance;
|
MatrixTest.cpp | 15 const SkScalar tolerance = SK_Scalar1 / 200000; local 16 return SkScalarAbs(a - b) <= tolerance; 327 // of precision and require that we have a higher tolerance 374 SkScalar tolerance = SK_ScalarNearlyZero) { 378 if (diff < tolerance) { 387 if (diff <= largest*tolerance) {
|
/frameworks/av/media/libstagefright/tests/ |
SurfaceMediaSource_test.cpp | 292 int g, int b, int a, int tolerance=2) { 306 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { 309 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { 315 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { 321 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { [all...] |
/external/chromium_org/third_party/qcms/src/ |
iccread.c | 260 float sum[3], target[3], tolerance[3]; local 310 // Our tolerance vector - Recommended by Chris Murphy based on 314 tolerance[0] = 0.02; 315 tolerance[1] = 0.02; 316 tolerance[2] = 0.04; 322 // Compare with our tolerance 324 if (!(((sum[i] - tolerance[i]) <= target[i]) && 325 ((sum[i] + tolerance[i]) >= target[i]))) [all...] |
/frameworks/native/services/sensorservice/ |
mat.h | 308 static bool isPositiveSemidefinite(const mat<TYPE, C, C>& m, TYPE tolerance) { 315 if (fabs(m[i][j] - m[j][i]) > tolerance)
|
/external/chromium_org/tools/perf/metrics/ |
speedindex.py | 140 # previous page to white. The tolerance of 8 experimentally does well with 145 tolerance=8))
|
speedindex_unittest.py | 55 def ColorHistogram(self, ignore_color=None, tolerance=None):
|
/external/chromium_org/cc/animation/ |
transform_operations_unittest.cc | 998 float tolerance) { 999 EXPECT_NEAR(lhs.x(), rhs.x(), tolerance); 1000 EXPECT_NEAR(lhs.y(), rhs.y(), tolerance); 1001 EXPECT_NEAR(lhs.z(), rhs.z(), tolerance); 1002 EXPECT_NEAR(lhs.width(), rhs.width(), tolerance); 1003 EXPECT_NEAR(lhs.height(), rhs.height(), tolerance); 1004 EXPECT_NEAR(lhs.depth(), rhs.depth(), tolerance); [all...] |
/external/eigen/Eigen/src/Cholesky/ |
LDLT.h | 508 // In some previous versions, tolerance was set to the max of 1/highest and the maximal diagonal entry * epsilon 510 // RealScalar tolerance = (max)(vectorD.array().abs().maxCoeff() *NumTraits<RealScalar>::epsilon(),RealScalar(1) / NumTraits<RealScalar>::highest()); 511 // However, LDLT is not rank revealing, and so adjusting the tolerance wrt to the highest 513 // Moreover, Lapack's xSYTRS routines use 0 for the tolerance. 514 RealScalar tolerance = RealScalar(1) / NumTraits<RealScalar>::highest(); local 517 if(abs(vectorD(i)) > tolerance)
|
/external/chromium_org/tools/perf_expectations/ |
make_expectations.py | 90 for subkey in ['improve', 'regress', 'tolerance']: 178 tolerance = value.get('tolerance', DEFAULT_TOLERANCE) 331 regress = int(math.floor(regress - abs(regress*tolerance))) 332 improve = int(math.ceil(improve + abs(improve*tolerance))) 334 regress = regress - abs(regress*tolerance) 335 improve = improve + abs(improve*tolerance) 338 improve = int(math.floor(improve - abs(improve*tolerance))) 339 regress = int(math.ceil(regress + abs(regress*tolerance))) 341 improve = improve - abs(improve*tolerance) [all...] |
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/ |
StillCaptureTest.java | 1112 double tolerance = expected * EXIF_EXPOSURE_TIME_ERROR_MARGIN_RATIO; local [all...] |