/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));
|
/frameworks/native/libs/gui/tests/ |
GLTest.cpp | 176 int r, int g, int b, int a, int tolerance) { 188 if (r >= 0 && abs(r - int(pixel[0])) > tolerance) { 191 if (g >= 0 && abs(g - int(pixel[1])) > tolerance) { 197 if (b >= 0 && abs(b - int(pixel[2])) > tolerance) { 203 if (a >= 0 && abs(a - int(pixel[3])) > tolerance) { 217 int tolerance) { 220 if (abs(r1.left - r2.left) > tolerance) { 223 if (abs(r1.top - r2.top) > tolerance) { 229 if (abs(r1.right - r2.right) > tolerance) { 235 if (abs(r1.bottom - r2.bottom) > tolerance) { [all...] |
/external/chromium_org/third_party/skia/src/effects/ |
SkAvoidXfermode.cpp | 14 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { 15 if (tolerance > 255) { 16 tolerance = 255; 18 fTolerance = SkToU8(tolerance); 20 fDistMul = (256 << 14) / (tolerance + 1); 34 const unsigned tolerance = buffer.readUInt(); local 36 return Create(color, tolerance, (Mode)mode);
|
/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));
|
/cts/tests/tests/view/src/android/view/cts/ |
VelocityTrackerTest.java | 180 private void assertVelocity(float tolerance, String message) { 186 if (errorVx > tolerance || errorVy > tolerance) { 187 fail(String.format("Velocity exceeds tolerance of %6.1f%%: " 190 tolerance * 100.0f, mVx, mVy,
|
/external/chromium_org/gpu/command_buffer/tests/ |
gl_test_utils.h | 45 GLint x, GLint y, GLsizei width, GLsizei height, GLint tolerance,
|
/external/chromium_org/third_party/skia/include/core/ |
SkScalar.h | 206 SkScalar tolerance = SK_ScalarNearlyZero) { 207 SkASSERT(tolerance >= 0); 208 return SkScalarAbs(x) <= tolerance; 212 SkScalar tolerance = SK_ScalarNearlyZero) { 213 SkASSERT(tolerance >= 0); 214 return SkScalarAbs(x-y) <= tolerance;
|
/external/skia/include/core/ |
SkScalar.h | 206 SkScalar tolerance = SK_ScalarNearlyZero) { 207 SkASSERT(tolerance >= 0); 208 return SkScalarAbs(x) <= tolerance; 212 SkScalar tolerance = SK_ScalarNearlyZero) { 213 SkASSERT(tolerance >= 0); 214 return SkScalarAbs(x-y) <= tolerance;
|
/external/chromium_org/ui/gfx/ |
transform.cc | 35 inline bool ApproximatelyZero(SkMScalar x, SkMScalar tolerance) { 36 return std::abs(x) <= tolerance; 39 inline bool ApproximatelyOne(SkMScalar x, SkMScalar tolerance) { 40 return std::abs(x - SkDoubleToMScalar(1.0)) <= tolerance; 222 SkMScalar tolerance) const { 223 DCHECK_GE(tolerance, 0); 225 ApproximatelyOne(matrix_.get(0, 0), tolerance) && 226 ApproximatelyZero(matrix_.get(1, 0), tolerance) && 227 ApproximatelyZero(matrix_.get(2, 0), tolerance) && 229 ApproximatelyZero(matrix_.get(0, 1), tolerance) & [all...] |
/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);
|
/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/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(const RealScalar& tolerance) 125 m_tolerance = tolerance; 155 /** \returns the tolerance error reached during the last solve */
|
/development/ndk/platforms/android-3/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|
/development/ndk/platforms/android-L/include/linux/ |
timex.h | 35 long tolerance; member in struct:timex
|
/external/skia/src/effects/ |
SkAvoidXfermode.cpp | 14 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { 15 if (tolerance > 255) { 16 tolerance = 255; 20 fDistMul = (256 << 14) / (tolerance + 1);
|
/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/x86_64-linux-glibc2.11-4.6/sysroot/usr/include/linux/ |
timex.h | 73 long tolerance; /* clock frequency tolerance (ppm) member in struct:timex
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/linux/ |
timex.h | 73 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
|
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|
/prebuilts/ndk/5/platforms/android-3/arch-arm/usr/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|