/frameworks/base/graphics/java/android/graphics/ |
AvoidXfermode.java | 40 * There are two modes, and each mode interprets a tolerance value. 44 * Tolerance near 0: avoid any colors even remotely similar to the op-color 45 * Tolerance near 255: avoid only colors nearly identical to the op-color 49 * Tolerance near 0: draw only on colors that are nearly identical to the op-color 50 * Tolerance near 255: draw on any colors even remotely similar to the op-color 52 public AvoidXfermode(int opColor, int tolerance, Mode mode) { 53 if (tolerance < 0 || tolerance > 255) { 54 throw new IllegalArgumentException("tolerance must be 0..255"); 56 native_instance = nativeCreate(opColor, tolerance, mode.nativeInt) [all...] |
/external/ceres-solver/internal/ceres/ |
test_util.h | 47 // |p[i] - q[i]| / max(|p[i]|, |q[i]|) < tolerance 51 double tolerance); 55 // |p[i] / max_norm_p - q[i] / max_norm_q| < tolerance 62 double tolerance);
|
/frameworks/base/media/jni/mediaeditor/ |
VideoEditorThumbnailMain.h | 53 M4OSA_UInt32 tolerance); 68 M4OSA_UInt32 tolerance);
|
VideoEditorThumbnailMain.cpp | 77 M4OSA_UInt32* pTimeMS, M4OSA_UInt32 tolerance); 222 M4OSA_UInt32* pTimeMS, M4OSA_UInt32 tolerance) 252 err = videoBrowserPrepareFrame(pC->m_pVideoBrowser, pTimeMS, tolerance); 268 M4OSA_UInt32 tolerance) 281 err = ThumbnailGetPixels(pContext, pixelArray, width, height, timeMS, tolerance); 291 M4OSA_UInt32 tolerance) 304 timeMS, tolerance);
|
/frameworks/base/core/java/android/test/ |
FlakyTest.java | 27 * the test fails. The total number of executions is specified by the tolerance and 35 * as a failed test. If the tolerance factor is less than 1, the test runs 40 int tolerance() default 1;
|
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/core/jni/android/graphics/ |
Xfermode.cpp | 35 U8CPU tolerance, SkAvoidXfermode::Mode mode) 37 return new SkAvoidXfermode(opColor, tolerance, mode);
|
/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);
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
AvoidXfermode_Delegate.java | 64 /*package*/ static int nativeCreate(int opColor, int tolerance, int nativeMode) {
|
/external/eigen/Eigen/src/SparseCore/ |
SparseSparseProductWithPruning.h | 20 static void sparse_sparse_product_with_pruning_impl(const Lhs& lhs, const Rhs& rhs, ResultType& res, typename ResultType::RealScalar tolerance) 70 for (typename AmbiVector<Scalar,Index>::Iterator it(tempVector,tolerance); it; ++it) 88 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, RealScalar tolerance) 91 internal::sparse_sparse_product_with_pruning_impl<Lhs,Rhs,ResultType>(lhs, rhs, _res, tolerance); 100 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, RealScalar tolerance) 105 internal::sparse_sparse_product_with_pruning_impl<Lhs,Rhs,SparseTemporaryType>(lhs, rhs, _res, tolerance); 114 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, RealScalar tolerance) 118 internal::sparse_sparse_product_with_pruning_impl<Rhs,Lhs,ResultType>(rhs, lhs, _res, tolerance); 127 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, RealScalar tolerance) 132 internal::sparse_sparse_product_with_pruning_impl<ColMajorMatrix,ColMajorMatrix,ResultType>(colLhs, colRhs, res, tolerance); [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
GlobalFocusChangeTest.java | 51 @FlakyTest(tolerance = 4) 63 @FlakyTest(tolerance = 4) 74 @FlakyTest(tolerance = 4)
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
AutoCompleteTextViewCallbacks.java | 35 @FlakyTest(tolerance=3) 60 @FlakyTest(tolerance=3) 109 @FlakyTest(tolerance=3)
|
AutoCompleteTextViewPopup.java | 44 @FlakyTest(tolerance=3) 76 @FlakyTest(tolerance=3) 103 @FlakyTest(tolerance=3) 136 @FlakyTest(tolerance=3) 170 @FlakyTest(tolerance=3)
|
/cts/tests/tests/nativeopengl/standalone/jni/tests/ |
GLTest_test.cpp | 155 bool checkPixel(GLubyte * actual, GLubyte * expected, int tolerance) { 157 if (abs(actual[i] - expected[i]) > tolerance) { 166 GLubyte * expected, int tolerance) { 168 if (checkPixel(actual, expected, tolerance)) { 173 << "Pixel comparison failed with tolerance " << tolerance << "\n"
|
/external/eigen/test/eigen2/ |
eigen2_regression.cpp | 54 typename VectorType::Scalar tolerance) 61 VERIFY(ei_abs(error) < ei_abs(tolerance)); 69 typename VectorType::Scalar tolerance) 76 std::cout << ei_abs(error) << " xxx " << ei_abs(tolerance) << std::endl; 77 VERIFY(ei_abs(error) < ei_abs(tolerance));
|
/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/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/skia/include/effects/ |
SkAvoidXfermode.h | 28 There are two modes, and each mode interprets a tolerance value. 32 Tolerance near 0: avoid any colors even remotely similar to the op-color 33 Tolerance near 255: avoid only colors nearly identical to the op-color 37 Tolerance near 0: draw only on colors that are nearly identical to the op-color 38 Tolerance near 255: draw on any colors even remotely similar to the op-color 40 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
|
/external/skia/legacy/include/effects/ |
SkAvoidXfermode.h | 30 There are two modes, and each mode interprets a tolerance value. 34 Tolerance near 0: avoid any colors even remotely similar to the op-color 35 Tolerance near 255: avoid only colors nearly identical to the op-color 39 Tolerance near 0: draw only on colors that are nearly identical to the op-color 40 Tolerance near 255: draw on any colors even remotely similar to the op-color 42 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
|
/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(RealScalar tolerance) 125 m_tolerance = tolerance; 155 /** \returns the tolerance error reached during the last solve */
|
/external/webkit/Tools/DumpRenderTree/qt/ |
ImageDiff.cpp | 34 qreal tolerance = 0; local 38 if (args[i] == "-t" || args[i] == "--tolerance") 39 tolerance = args[i + 1].toDouble(); 119 if (difference <= tolerance) {
|
/external/skia/include/core/ |
SkScalar.h | 319 SkScalar tolerance = SK_ScalarNearlyZero) { 320 SkASSERT(tolerance >= 0); 321 return SkScalarAbs(x) <= tolerance; 325 SkScalar tolerance = SK_ScalarNearlyZero) { 326 SkASSERT(tolerance >= 0); 327 return SkScalarAbs(x-y) <= tolerance;
|
/external/skia/legacy/include/core/ |
SkScalar.h | 308 /* <= is slower than < for floats, so we use < for our tolerance test 312 SkScalar tolerance = SK_ScalarNearlyZero) { 313 SkASSERT(tolerance > 0); 314 return SkScalarAbs(x) < tolerance; 318 SkScalar tolerance = SK_ScalarNearlyZero) { 319 SkASSERT(tolerance > 0); 320 return SkScalarAbs(x-y) < tolerance;
|
/bionic/libc/kernel/common/linux/ |
timex.h | 52 long tolerance; member in struct:timex
|