/external/chromium_org/third_party/WebKit/Source/platform/ |
LayoutUnitTest.cpp | 69 const float tolerance = 1.0f / kFixedPointDenominator; local 72 ASSERT_NEAR(LayoutUnit(1.1f).toFloat(), 1.1f, tolerance); 73 ASSERT_NEAR(LayoutUnit(1.33f).toFloat(), 1.33f, tolerance); 74 ASSERT_NEAR(LayoutUnit(1.3333f).toFloat(), 1.3333f, tolerance); 75 ASSERT_NEAR(LayoutUnit(1.53434f).toFloat(), 1.53434f, tolerance); 76 ASSERT_NEAR(LayoutUnit(345634).toFloat(), 345634.0f, tolerance); 77 ASSERT_NEAR(LayoutUnit(345634.12335f).toFloat(), 345634.12335f, tolerance); 78 ASSERT_NEAR(LayoutUnit(-345634.12335f).toFloat(), -345634.12335f, tolerance); 79 ASSERT_NEAR(LayoutUnit(-345634).toFloat(), -345634.0f, tolerance);
|
/external/ceres-solver/internal/ceres/ |
numeric_diff_test_utils.cc | 78 const double tolerance = (method == CENTRAL)? 3e-9 : 2e-5; local 81 ExpectClose(x2[i], dydx1[5 * 0 + i], tolerance); // y1 82 ExpectClose(x1[i], dydx2[5 * 0 + i], tolerance); 83 ExpectClose(2 * x2[i] * residuals[0], dydx1[5 * 1 + i], tolerance); // y2 84 ExpectClose(2 * x1[i] * residuals[0], dydx2[5 * 1 + i], tolerance); 85 ExpectClose(0.0, dydx1[5 * 2 + i], tolerance); // y3 86 ExpectClose(2 * x2[i], dydx2[5 * 2 + i], tolerance); 148 const double tolerance = (method == CENTRAL)? 3e-9 : 2e-5; local 151 ExpectClose( x2[i] * cos(x1x2), dydx1[5 * 0 + i], tolerance); local 152 ExpectClose( x1[i] * cos(x1x2), dydx2[5 * 0 + i], tolerance); local [all...] |
/frameworks/base/tools/aapt/ |
Main.cpp | 60 " [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \\\n" 114 " -g specify a pixel tolerance to force images to grayscale, default 0\n" 234 int tolerance = 0; local 304 tolerance = atoi(argv[0]); 305 bundle.setGrayscaleTolerance(tolerance); 306 printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance);
|
/cts/tests/tests/media/src/android/media/cts/ |
FaceDetector_FaceTest.java | 57 float tolerance = 5f; local 61 assertEquals(eyesDistance, face.eyesDistance(), tolerance); 64 assertEquals(eyesMidpointX, eyesMP.x, tolerance); 65 assertEquals(eyesMidpointY, eyesMP.y, tolerance);
|
MediaPlayerTest.java | 90 final int tolerance = 70; local 107 assertEquals(mp3Duration, mp.getDuration(), tolerance); 113 assertEquals(pos + seekDuration, mp.getCurrentPosition(), tolerance); 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); [all...] |
/frameworks/base/core/tests/utillib/src/android/test/ |
BandwidthTestCase.java | 66 runCount = method.getAnnotation(FlakyTest.class).tolerance(); 73 final int tolerance = runCount; local 80 runMethod(testMethod, tolerance, repetitive); 116 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { 140 } while ((runCount < tolerance) && (isRepetitive || exception != null));
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
SweepGradientTest.java | 41 private static final int TOLERANCE = 10; 58 checkColors(colors, positions, TOLERANCE); 68 checkColors(colors, positions, TOLERANCE); 79 checkColors(colors, positions, TOLERANCE); 82 private void checkColors(int[] colors, float[] positions, int tolerance) { 124 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); local 125 assertEquals(Color.red(color), Color.red(pixel), tolerance); local 126 assertEquals(Color.green(color), Color.green(pixel), tolerance); local 127 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); local
|
/external/eigen/Eigen/src/Cholesky/ |
LDLT.h | 501 RealScalar tolerance = (max)(vectorD.array().abs().maxCoeff() * NumTraits<Scalar>::epsilon(), local 504 if(abs(vectorD(i)) > tolerance)
|
/external/eigen/Eigen/src/IterativeLinearSolvers/ |
IterativeSolverBase.h | 119 /** \returns the tolerance threshold used by the stopping criteria */ 120 RealScalar tolerance() const { return m_tolerance; } function in class:Eigen::IterativeSolverBase 122 /** Sets the tolerance threshold used by the stopping criteria */ 123 Derived& setTolerance(RealScalar tolerance) 125 m_tolerance = tolerance; 155 /** \returns the tolerance error reached during the last solve */
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/ |
MirrorModifier.java | 53 modifierData.put("tolerance", modifierStructure.getFieldValue("tolerance"));
92 float tolerance = ((Number) modifierData.get("tolerance")).floatValue();
local 120 if (Math.abs(d) <= tolerance) {
|
/frameworks/base/core/java/android/test/ |
InstrumentationTestCase.java | 175 runCount = method.getAnnotation(FlakyTest.class).tolerance(); 182 final int tolerance = runCount; local 189 runMethod(testMethod, tolerance, repetitive); 204 private void runMethod(Method runMethod, int tolerance) throws Throwable { 205 runMethod(runMethod, tolerance, false); 208 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { 231 } while ((runCount < tolerance) && (isRepetitive || exception != null));
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapTest.java | 195 final int tolerance = 1; local 214 assertTrue("red", Math.abs(rr - r1) <= tolerance); 219 assertTrue("green", Math.abs(gg - g1) <= tolerance); 224 assertTrue("blue", Math.abs(bb - b1) <= tolerance);
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/sys/ |
timex.h | 44 long int tolerance; /* clock frequency tolerance (ppm) (read only) */ member in struct:timex
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/sys/ |
timex.h | 44 long int tolerance; /* clock frequency tolerance (ppm) (read only) */ member in struct:timex
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/sys/ |
timex.h | 44 long int tolerance; /* clock frequency tolerance (ppm) (read only) */ member in struct:timex
|
/bionic/libc/kernel/common/linux/ |
timex.h | 52 long tolerance; member in struct:timex
|
/development/ndk/platforms/android-3/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|
/external/skia/tests/ |
Matrix44Test.cpp | 13 const double tolerance = 1e-7; local 17 return diff <= tolerance; 21 const SkMScalar tolerance = SK_MScalar1 / 200000; local 23 return SkTAbs<SkMScalar>(a - b) <= tolerance; 30 const SkScalar tolerance = SK_Scalar1 / 200000; local 32 const SkScalar tolerance = SK_Scalar1 / 1024; 35 return SkScalarAbs(a - b) <= tolerance;
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/sysroot/usr/include/linux/ |
timex.h | 82 * offset and maximum frequency tolerance. 108 long tolerance; /* clock frequency tolerance (ppm) member in struct:timex
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
timex.h | 82 * offset and maximum frequency tolerance. 108 long tolerance; /* clock frequency tolerance (ppm) member in struct:timex
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/sysroot/usr/include/linux/ |
timex.h | 82 * offset and maximum frequency tolerance. 108 long tolerance; /* clock frequency tolerance (ppm) member in struct:timex
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|