HomeSort by relevance Sort by last modified time
    Searched refs:tolerance (Results 1 - 25 of 159) sorted by null

1 2 3 4 5 6 7

  /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);
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/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...]
  /ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/test/
floating_point_comparison.hpp 104 // ************** tolerance presentation types ************** //
171 explicit close_at_tolerance( percent_tolerance_t<ToleranceBaseType> tolerance,
173 : p_fraction_tolerance( tt_detail::fpt_abs( static_cast<FPT>(0.01)*tolerance.m_value ) )
178 explicit close_at_tolerance( fraction_tolerance_t<ToleranceBaseType> tolerance,
180 : p_fraction_tolerance( tt_detail::fpt_abs( tolerance.m_value ) )
221 operator()( FPT1 left, FPT2 right, percent_tolerance_t<ToleranceBaseType> tolerance,
231 close_at_tolerance<FPT> pred( tolerance, fpc_type );
237 operator()( FPT1 left, FPT2 right, fraction_tolerance_t<ToleranceBaseType> tolerance,
244 close_at_tolerance<FPT> pred( tolerance, fpc_type );
266 operator()( FPT fpv, FPT tolerance ) cons
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/core/
bitmap.py 22 def IsEqual(self, expected_color, tolerance=0):
23 """Verifies that the color is within a given tolerance of
29 return (r_diff <= tolerance and g_diff <= tolerance
30 and b_diff <= tolerance and a_diff <= tolerance)
32 def AssertIsRGB(self, r, g, b, tolerance=0):
33 assert self.IsEqual(RgbaColor(r, g, b), tolerance)
35 def AssertIsRGBA(self, r, g, b, a, tolerance=0):
36 assert self.IsEqual(RgbaColor(r, g, b, a), 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/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/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/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/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);

Completed in 553 milliseconds

1 2 3 4 5 6 7