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

1 2 3 4 5 6 7 8 9

  /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...]
  /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 static SkAvoidXfermode* Create(SkColor opColor, U8CPU tolerance, Mode mode) {
41 return SkNEW_ARGS(SkAvoidXfermode, (opColor, tolerance, mode));
56 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 static SkAvoidXfermode* Create(SkColor opColor, U8CPU tolerance, Mode mode) {
41 return SkNEW_ARGS(SkAvoidXfermode, (opColor, tolerance, mode));
56 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
  /cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
RectVerifier.java 32 public RectVerifier(int outerColor, int innerColor, Rect innerRect, int tolerance) {
33 super(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;
  /art/test/406-fields/src/
TestCase.java 141 float tolerance) {
142 if ((actual < expected - tolerance) || (expected + tolerance < actual)) {
144 " tolerance " + tolerance);
162 double tolerance) {
163 if ((actual < expected - tolerance) || (expected + tolerance < actual)) {
165 " tolerance " + tolerance);
    [all...]
  /art/test/407-arrays/src/
TestCase.java 141 float tolerance) {
142 if ((actual < expected - tolerance) || (expected + tolerance < actual)) {
144 " tolerance " + tolerance);
162 double tolerance) {
163 if ((actual < expected - tolerance) || (expected + tolerance < actual)) {
165 " tolerance " + tolerance);
    [all...]
  /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 long nativeCreate(int opColor, int tolerance, int nativeMode) {
  /external/chromium_org/third_party/WebKit/Source/platform/animation/
TimingFunctionTest.cpp 323 double tolerance = 0.01; local
325 EXPECT_NEAR(0.418, cubicEaseTiming->evaluate(0.25, tolerance), tolerance);
326 EXPECT_NEAR(0.805, cubicEaseTiming->evaluate(0.50, tolerance), tolerance);
327 EXPECT_NEAR(0.960, cubicEaseTiming->evaluate(0.75, tolerance), tolerance);
330 EXPECT_NEAR(0.093, cubicEaseInTiming->evaluate(0.25, tolerance), tolerance);
331 EXPECT_NEAR(0.305, cubicEaseInTiming->evaluate(0.50, tolerance), tolerance)
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/core/
bitmaptools.cc 153 int tolerance) {
155 return (abs(pixel1[0] - pixel2[0]) <= tolerance) &&
156 (abs(pixel1[1] - pixel2[1]) <= tolerance) &&
157 (abs(pixel1[2] - pixel2[2]) <= tolerance);
162 bool PixelsEqual(const unsigned char* pixel, int color, int tolerance) {
164 return PixelsEqual(pixel, pixel2, tolerance);
171 int tolerance; local
172 if (!(ReadInt(&ignore_color) && ReadInt(&tolerance))) {
184 if (ignore_color >= 0 && PixelsEqual(pixel, ignore_color, tolerance))
200 int tolerance; local
    [all...]
bitmap.py 97 def IsEqual(self, expected_color, tolerance=0):
98 """Verifies that the color is within a given tolerance of
104 return (r_diff <= tolerance and g_diff <= tolerance
105 and b_diff <= tolerance and a_diff <= tolerance)
107 def AssertIsRGB(self, r, g, b, tolerance=0):
108 assert self.IsEqual(RgbaColor(r, g, b), tolerance)
110 def AssertIsRGBA(self, r, g, b, a, tolerance=0):
111 assert self.IsEqual(RgbaColor(r, g, b, a), tolerance)
    [all...]
  /external/eigen/Eigen/src/SparseCore/
SparseSparseProductWithPruning.h 20 static void sparse_sparse_product_with_pruning_impl(const Lhs& lhs, const Rhs& rhs, ResultType& res, const 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, const 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, const 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, const 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, const RealScalar& tolerance)
133 internal::sparse_sparse_product_with_pruning_impl<ColMajorMatrixLhs,ColMajorMatrixRhs,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/droiddriver/src/com/google/android/droiddriver/helpers/
BaseDroidDriverTest.java 216 int tolerance = 1; local
218 tolerance = method.getAnnotation(FlakyTest.class).tolerance();
221 for (int runCount = 0; runCount < tolerance; runCount++) {
223 Logs.logfmt(Log.INFO, "Running %s round %d of %d attempts", fName, runCount + 1, tolerance);
235 if (shouldSkipRemainingTests(exception) || runCount >= tolerance - 1) {
  /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)
  /external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/
audio_decoder_unittest.cc 98 // output is compared vs |tolerance|, and the mean-squared error is compared
102 void EncodeDecodeTest(size_t expected_bytes, int tolerance, double mse,
104 ASSERT_GE(tolerance, 0) << "Test must define a tolerance >= 0";
129 CompareInputOutput(processed_samples, tolerance, delay);
136 // compared vs |tolerance|. The parameter |delay| is used to correct for codec
138 virtual void CompareInputOutput(size_t num_samples, int tolerance,
142 ASSERT_NEAR(input_[n], decoded_[channels_ * n + delay], tolerance) <<
151 // |tolerance|.
153 int tolerance) const
673 int tolerance = 251; local
682 int tolerance = 308; local
691 int tolerance = 0; local
703 int tolerance = 6808; local
714 int tolerance = 3399; local
725 int tolerance = 19757; local
736 int tolerance = 19757; local
747 int tolerance = 11034; local
757 int tolerance = 6176; local
771 int tolerance = 6176; local
782 int tolerance = 6176; local
792 int tolerance = 6176; local
808 int tolerance = 20; local
819 int tolerance = 20; local
    [all...]
  /frameworks/base/core/jni/android/graphics/
Xfermode.cpp 36 jint tolerance, jint modeHandle)
39 return reinterpret_cast<jlong>(SkAvoidXfermode::Create(opColor, tolerance, mode));
  /frameworks/native/libs/gui/tests/
GLTest.h 54 int r, int g, int b, int a, int tolerance = 2);
56 int tolerance = 1);
  /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));

Completed in 707 milliseconds

1 2 3 4 5 6 7 8 9