/external/ceres-solver/internal/ceres/ |
D | numeric_diff_test_utils.cc | 78 const double tolerance = (method == CENTRAL)? 3e-9 : 2e-5; in ExpectCostFunctionEvaluationIsNearlyCorrect() local 81 ExpectClose(x2[i], dydx1[5 * 0 + i], tolerance); // y1 in ExpectCostFunctionEvaluationIsNearlyCorrect() 82 ExpectClose(x1[i], dydx2[5 * 0 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() 83 ExpectClose(2 * x2[i] * residuals[0], dydx1[5 * 1 + i], tolerance); // y2 in ExpectCostFunctionEvaluationIsNearlyCorrect() 84 ExpectClose(2 * x1[i] * residuals[0], dydx2[5 * 1 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() 85 ExpectClose(0.0, dydx1[5 * 2 + i], tolerance); // y3 in ExpectCostFunctionEvaluationIsNearlyCorrect() 86 ExpectClose(2 * x2[i], dydx2[5 * 2 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() 148 const double tolerance = (method == CENTRAL)? 3e-9 : 2e-5; in ExpectCostFunctionEvaluationIsNearlyCorrect() local 151 ExpectClose( x2[i] * cos(x1x2), dydx1[5 * 0 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() 152 ExpectClose( x1[i] * cos(x1x2), dydx2[5 * 0 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() [all …]
|
D | test_util.h | 51 double tolerance); 62 double tolerance);
|
/external/chromium_org/third_party/WebKit/Source/platform/animation/ |
D | TimingFunctionTest.cpp | 227 double tolerance = 0.01; in TEST_F() local 229 EXPECT_NEAR(0.418, cubicEaseTiming->evaluate(0.25, tolerance), tolerance); in TEST_F() 230 EXPECT_NEAR(0.805, cubicEaseTiming->evaluate(0.50, tolerance), tolerance); in TEST_F() 231 EXPECT_NEAR(0.960, cubicEaseTiming->evaluate(0.75, tolerance), tolerance); in TEST_F() 234 EXPECT_NEAR(0.093, cubicEaseInTiming->evaluate(0.25, tolerance), tolerance); in TEST_F() 235 EXPECT_NEAR(0.305, cubicEaseInTiming->evaluate(0.50, tolerance), tolerance); in TEST_F() 236 EXPECT_NEAR(0.620, cubicEaseInTiming->evaluate(0.75, tolerance), tolerance); in TEST_F() 239 EXPECT_NEAR(0.379, cubicEaseOutTiming->evaluate(0.25, tolerance), tolerance); in TEST_F() 240 EXPECT_NEAR(0.694, cubicEaseOutTiming->evaluate(0.50, tolerance), tolerance); in TEST_F() 241 EXPECT_NEAR(0.906, cubicEaseOutTiming->evaluate(0.75, tolerance), tolerance); in TEST_F() [all …]
|
/external/chromium_org/tools/telemetry/telemetry/core/ |
D | bitmap.py | 97 def IsEqual(self, expected_color, tolerance=0): argument 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): argument 108 assert self.IsEqual(RgbaColor(r, g, b), tolerance) 110 def AssertIsRGBA(self, r, g, b, a, tolerance=0): argument 111 assert self.IsEqual(RgbaColor(r, g, b, a), tolerance) 157 def Histogram(self, ignore_color, tolerance): argument 160 ignore_color_int, tolerance) 167 def BoundingBox(self, color, tolerance): argument [all …]
|
D | bitmaptools.cc | 153 int tolerance) { in PixelsEqual() argument 155 return (abs(pixel1[0] - pixel2[0]) <= tolerance) && in PixelsEqual() 156 (abs(pixel1[1] - pixel2[1]) <= tolerance) && in PixelsEqual() 157 (abs(pixel1[2] - pixel2[2]) <= tolerance); in PixelsEqual() 162 bool PixelsEqual(const unsigned char* pixel, int color, int tolerance) { in PixelsEqual() argument 164 return PixelsEqual(pixel, pixel2, tolerance); in PixelsEqual() 171 int tolerance; in Histogram() local 172 if (!(ReadInt(&ignore_color) && ReadInt(&tolerance))) { in Histogram() 184 if (ignore_color >= 0 && PixelsEqual(pixel, ignore_color, tolerance)) in Histogram() 200 int tolerance; in BoundingBox() local [all …]
|
D | tab_unittest.py | 173 0, 255, 0, tolerance=2) 175 0, 255, 0, tolerance=2) 177 255, 255, 255, tolerance=2)
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/neteq/ |
D | audio_decoder_unittest.cc | 101 void EncodeDecodeTest(size_t expected_bytes, int tolerance, double mse, in EncodeDecodeTest() argument 103 ASSERT_GE(tolerance, 0) << "Test must define a tolerance >= 0"; in EncodeDecodeTest() 128 CompareInputOutput(processed_samples, tolerance, delay); in EncodeDecodeTest() 137 virtual void CompareInputOutput(size_t num_samples, int tolerance, in CompareInputOutput() argument 141 ASSERT_NEAR(input_[n], decoded_[channels_ * n + delay], tolerance) << in CompareInputOutput() 152 int tolerance) const { in CompareTwoChannels() 156 tolerance) << "Stereo samples differ."; in CompareTwoChannels() 693 int tolerance = 251; in TEST_F() local 696 EncodeDecodeTest(data_length_, tolerance, mse); in TEST_F() 702 int tolerance = 308; in TEST_F() local [all …]
|
/external/eigen/Eigen/src/SparseCore/ |
D | SparseSparseProductWithPruning.h | 20 …(const Lhs& lhs, const Rhs& rhs, ResultType& res, const typename ResultType::RealScalar& tolerance) in sparse_sparse_product_with_pruning_impl() argument 70 for (typename AmbiVector<Scalar,Index>::Iterator it(tempVector,tolerance); it; ++it) in sparse_sparse_product_with_pruning_impl() 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 …l::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 …_with_pruning_impl<ColMajorMatrixLhs,ColMajorMatrixRhs,ResultType>(colLhs, colRhs, res, tolerance);
|
/external/chromium_org/ui/gfx/ |
D | transform.cc | 35 inline bool ApproximatelyZero(SkMScalar x, SkMScalar tolerance) { in ApproximatelyZero() argument 36 return std::abs(x) <= tolerance; in ApproximatelyZero() 39 inline bool ApproximatelyOne(SkMScalar x, SkMScalar tolerance) { in ApproximatelyOne() argument 40 return std::abs(x - SkDoubleToMScalar(1.0)) <= tolerance; in ApproximatelyOne() 222 SkMScalar tolerance) const { in IsApproximatelyIdentityOrTranslation() 223 DCHECK_GE(tolerance, 0); in IsApproximatelyIdentityOrTranslation() 225 ApproximatelyOne(matrix_.get(0, 0), tolerance) && in IsApproximatelyIdentityOrTranslation() 226 ApproximatelyZero(matrix_.get(1, 0), tolerance) && in IsApproximatelyIdentityOrTranslation() 227 ApproximatelyZero(matrix_.get(2, 0), tolerance) && in IsApproximatelyIdentityOrTranslation() 229 ApproximatelyZero(matrix_.get(0, 1), tolerance) && in IsApproximatelyIdentityOrTranslation() [all …]
|
/external/droiddriver/src/com/google/android/droiddriver/helpers/ |
D | BaseDroidDriverTest.java | 216 int tolerance = 1; in runTest() local 218 tolerance = method.getAnnotation(FlakyTest.class).tolerance(); in runTest() 221 for (int runCount = 0; runCount < tolerance; runCount++) { in runTest() 223 Logs.logfmt(Log.INFO, "Running %s round %d of %d attempts", fName, runCount + 1, tolerance); in runTest() 235 if (shouldSkipRemainingTests(exception) || runCount >= tolerance - 1) { in runTest()
|
/external/chromium_org/tools/perf_expectations/ |
D | make_expectations.py | 178 tolerance = value.get('tolerance', DEFAULT_TOLERANCE) 331 regress = int(math.floor(regress - abs(regress*tolerance))) 332 improve = int(math.ceil(improve + abs(improve*tolerance))) 334 regress = regress - abs(regress*tolerance) 335 improve = improve + abs(improve*tolerance) 338 improve = int(math.floor(improve - abs(improve*tolerance))) 339 regress = int(math.ceil(regress + abs(regress*tolerance))) 341 improve = improve - abs(improve*tolerance) 342 regress = regress + abs(regress*tolerance)
|
/external/chromium_org/third_party/skia/include/core/ |
D | 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/ |
D | 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/effects/ |
D | SkAvoidXfermode.h | 40 static SkAvoidXfermode* Create(SkColor opColor, U8CPU tolerance, Mode mode) { in Create() argument 41 return SkNEW_ARGS(SkAvoidXfermode, (opColor, tolerance, mode)); in Create() 56 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
|
/external/chromium_org/third_party/skia/include/effects/ |
D | SkAvoidXfermode.h | 40 static SkAvoidXfermode* Create(SkColor opColor, U8CPU tolerance, Mode mode) { in Create() argument 41 return SkNEW_ARGS(SkAvoidXfermode, (opColor, tolerance, mode)); in Create() 56 SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode);
|
/external/chromium_org/third_party/WebKit/Source/platform/ |
D | LayoutUnitTest.cpp | 69 const float tolerance = 1.0f / kFixedPointDenominator; in TEST() local 72 ASSERT_NEAR(LayoutUnit(1.1f).toFloat(), 1.1f, tolerance); in TEST() 73 ASSERT_NEAR(LayoutUnit(1.33f).toFloat(), 1.33f, tolerance); in TEST() 74 ASSERT_NEAR(LayoutUnit(1.3333f).toFloat(), 1.3333f, tolerance); in TEST() 75 ASSERT_NEAR(LayoutUnit(1.53434f).toFloat(), 1.53434f, tolerance); in TEST() 76 ASSERT_NEAR(LayoutUnit(345634).toFloat(), 345634.0f, tolerance); in TEST() 77 ASSERT_NEAR(LayoutUnit(345634.12335f).toFloat(), 345634.12335f, tolerance); in TEST() 78 ASSERT_NEAR(LayoutUnit(-345634.12335f).toFloat(), -345634.12335f, tolerance); in TEST() 79 ASSERT_NEAR(LayoutUnit(-345634).toFloat(), -345634.0f, tolerance); in TEST()
|
/external/eigen/test/eigen2/ |
D | eigen2_regression.cpp | 54 typename VectorType::Scalar tolerance) in check_linearRegression() argument 61 VERIFY(ei_abs(error) < ei_abs(tolerance)); in check_linearRegression() 69 typename VectorType::Scalar tolerance) in check_fitHyperplane() argument 76 std::cout << ei_abs(error) << " xxx " << ei_abs(tolerance) << std::endl; in check_fitHyperplane() 77 VERIFY(ei_abs(error) < ei_abs(tolerance)); in check_fitHyperplane()
|
/external/valgrind/main/docs/internals/ |
D | SPEC-notes.txt | 21 const long double tolerance = std::max (static_cast<long double> 30 } while (abs(p1/pp) > tolerance); 33 The tolerance in this case is being set to ~2.22e-18, but the
|
/external/skia/src/effects/ |
D | SkAvoidXfermode.cpp | 14 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { in SkAvoidXfermode() argument 15 if (tolerance > 255) { in SkAvoidXfermode() 16 tolerance = 255; in SkAvoidXfermode() 20 fDistMul = (256 << 14) / (tolerance + 1); in SkAvoidXfermode()
|
/external/chromium_org/third_party/skia/src/effects/ |
D | SkAvoidXfermode.cpp | 14 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) { in SkAvoidXfermode() argument 15 if (tolerance > 255) { in SkAvoidXfermode() 16 tolerance = 255; in SkAvoidXfermode() 20 fDistMul = (256 << 14) / (tolerance + 1); in SkAvoidXfermode()
|
/external/chromium_org/third_party/webrtc/modules/audio_coding/main/test/ |
D | dual_stream_unittest.cc | 51 void Validate(bool start_in_sync, int tolerance); 176 int tolerance = 0; in Perform() local 179 tolerance = 12; in Perform() 209 Validate(start_in_sync, tolerance); in Perform() 275 void DualStreamTest::Validate(bool start_in_sync, int tolerance) { in Validate() argument 277 int my_tolerance = stream_index == kPrimary ? 0 : tolerance; in Validate()
|
/external/eigen/Eigen/src/IterativeLinearSolvers/ |
D | IterativeSolverBase.h | 120 RealScalar tolerance() const { return m_tolerance; } in tolerance() function 123 Derived& setTolerance(const RealScalar& tolerance) in setTolerance() argument 125 m_tolerance = tolerance; in setTolerance()
|
/external/chromium_org/third_party/skia/tools/ |
D | test_gpuveto.py | 131 tolerance = 0.05 132 tol_range = tolerance * gpuTime
|
/external/skia/tools/ |
D | test_gpuveto.py | 131 tolerance = 0.05 132 tol_range = tolerance * gpuTime
|
/external/skia/tests/ |
D | Matrix44Test.cpp | 12 const double tolerance = 1e-7; in nearly_equal_double() local 16 return diff <= tolerance; in nearly_equal_double() 20 const SkMScalar tolerance = SK_MScalar1 / 200000; in nearly_equal_mscalar() local 22 return SkTAbs<SkMScalar>(a - b) <= tolerance; in nearly_equal_mscalar() 26 const SkScalar tolerance = SK_Scalar1 / 200000; in nearly_equal_scalar() local 27 return SkScalarAbs(a - b) <= tolerance; in nearly_equal_scalar()
|