Searched defs:tolerance (Results 1 - 25 of 38) sorted by relevance

12

/external/skia/tests/
H A DColorMatrixTest.cpp19 SkColor expected, SkColor actual, int tolerance) {
20 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance);
21 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance);
22 REPORTER_ASSERT(reporter, abs((int)(SkColorGetG(expected) - SkColorGetG(actual))) <= tolerance);
23 REPORTER_ASSERT(reporter, abs((int)(SkColorGetB(expected) - SkColorGetB(actual))) <= tolerance);
18 assert_color(skiatest::Reporter* reporter, SkColor expected, SkColor actual, int tolerance) argument
H A DColorSpaceXformTest.cpp163 // so we give test_identity_xform_A2B a wide tolerance.
165 const int tolerance = 13; local
168 test_identity_xform_A2B(r, kNonStandard_SkGammaNamed, gammas, tolerance);
255 // See ColorSpaceXform_TableGamma... we've decided to allow some tolerance
257 const int tolerance = 12; local
266 test_identity_xform_A2B(r, kNonStandard_SkGammaNamed, gammas, tolerance);
H A DEncodeTest.cpp96 static inline bool almost_equals(SkPMColor a, SkPMColor b, int tolerance) { argument
97 if (SkTAbs((int)SkGetPackedR32(a) - (int)SkGetPackedR32(b)) > tolerance) {
101 if (SkTAbs((int)SkGetPackedG32(a) - (int)SkGetPackedG32(b)) > tolerance) {
105 if (SkTAbs((int)SkGetPackedB32(a) - (int)SkGetPackedB32(b)) > tolerance) {
109 if (SkTAbs((int)SkGetPackedA32(a) - (int)SkGetPackedA32(b)) > tolerance) {
116 static inline bool almost_equals(const SkBitmap& a, const SkBitmap& b, int tolerance) { argument
124 if (!almost_equals(*a.getAddr32(x, y), *b.getAddr32(x, y), tolerance)) {
H A DMatrix44Test.cpp12 const double tolerance = 1e-7; local
16 return diff <= tolerance;
20 const SkMScalar tolerance = SK_MScalar1 / 200000; local
22 return SkTAbs<SkMScalar>(a - b) <= tolerance;
26 const SkScalar tolerance = SK_Scalar1 / 200000; local
27 return SkScalarAbs(a - b) <= tolerance;
H A DMatrixTest.cpp15 const SkScalar tolerance = SK_Scalar1 / 200000; local
16 return SkScalarAbs(a - b) <= tolerance;
456 SkScalar tolerance = SK_ScalarNearlyZero) {
460 if (diff < tolerance) {
469 if (diff <= largest*tolerance) {
/external/webrtc/webrtc/modules/audio_processing/beamformer/
H A Dmatrix_test_helpers.h81 float tolerance) {
91 tolerance);
94 tolerance);
78 ValidateMatrixNearEqualityComplexFloat( const Matrix<complex<float> >& expected, const Matrix<complex<float> >& actual, float tolerance) argument
/external/eigen/Eigen/src/SparseCore/
H A DSparseSparseProductWithPruning.h20 static void sparse_sparse_product_with_pruning_impl(const Lhs& lhs, const Rhs& rhs, ResultType& res, const typename ResultType::RealScalar& tolerance) argument
73 for (typename AmbiVector<Scalar,StorageIndex>::Iterator it(tempVector,tolerance); it; ++it)
91 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
94 internal::sparse_sparse_product_with_pruning_impl<Lhs,Rhs,ResultType>(lhs, rhs, _res, tolerance);
103 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
108 internal::sparse_sparse_product_with_pruning_impl<Lhs,Rhs,SparseTemporaryType>(lhs, rhs, _res, tolerance);
117 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
121 internal::sparse_sparse_product_with_pruning_impl<Rhs,Lhs,ResultType>(rhs, lhs, _res, tolerance);
130 static void run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
136 internal::sparse_sparse_product_with_pruning_impl<ColMajorMatrixLhs,ColMajorMatrixRhs,ResultType>(colLhs, colRhs, res, tolerance);
150 run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
162 run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
174 run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
186 run(const Lhs& lhs, const Rhs& rhs, ResultType& res, const RealScalar& tolerance) argument
[all...]
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
H A DDoubleMath.java112 * Returns {@code true} if {@code a} and {@code b} are within {@code tolerance} of each other.
115 * {@code Math.abs(a - b) <= tolerance || Double.valueOf(a).equals(Double.valueOf(b))}.
122 * <li>If {@code tolerance} is zero, and neither {@code a} nor {@code b} is NaN, then
124 * <li>With {@link Double#POSITIVE_INFINITY} tolerance, all non-NaN values are fuzzily equal.
125 * <li>With finite tolerance, {@code Double.POSITIVE_INFINITY} and {@code
133 * @throws IllegalArgumentException if {@code tolerance} is {@code < 0} or NaN
136 public static boolean fuzzyEquals(double a, double b, double tolerance) { argument
137 MathPreconditions.checkNonNegative("tolerance", tolerance);
139 Math.copySign(a - b, 1.0) <= tolerance
159 fuzzyCompare(double a, double b, double tolerance) argument
[all...]
/external/strace/mpers-m32/
H A Dstruct_timex.h13 int32_t tolerance; member in struct:__anon18976
/external/guava/guava/src/com/google/common/math/
H A DDoubleMath.java327 * Returns {@code true} if {@code a} and {@code b} are within {@code tolerance} of each other.
330 * {@code Math.abs(a - b) <= tolerance || Double.valueOf(a).equals(Double.valueOf(b))}.
337 * <li>If {@code tolerance} is zero, and neither {@code a} nor {@code b} is NaN, then
339 * <li>With {@link Double#POSITIVE_INFINITY} tolerance, all non-NaN values are fuzzily equal.
340 * <li>With finite tolerance, {@code Double.POSITIVE_INFINITY} and {@code
348 * @throws IllegalArgumentException if {@code tolerance} is {@code < 0} or NaN
351 public static boolean fuzzyEquals(double a, double b, double tolerance) { argument
352 MathPreconditions.checkNonNegative("tolerance", tolerance);
354 Math.copySign(a - b, 1.0) <= tolerance
374 fuzzyCompare(double a, double b, double tolerance) argument
[all...]
/external/protobuf/src/google/protobuf/util/
H A Dfield_comparator.cc184 Tolerance* tolerance = FindOrNull(map_tolerance_, &field); local
185 if (tolerance == NULL && has_default_tolerance_) {
186 tolerance = &default_tolerance_;
188 if (tolerance == NULL) {
195 value_1, value_2, static_cast<T>(tolerance->fraction),
196 static_cast<T>(tolerance->margin));
/external/strace/mpers-mx32/
H A Dstruct_timex.h15 int64_t tolerance; member in struct:__anon19135
/external/webrtc/webrtc/modules/audio_coding/neteq/
H A Daudio_decoder_unittest.cc43 // compared vs |tolerance|. The parameter |delay| is used to correct for codec
49 int tolerance,
54 ASSERT_NEAR(input[n], output[channels * n + delay], tolerance)
63 // compared vs |tolerance|.
67 int tolerance) {
71 ASSERT_NEAR(output[channels * n], output[channels * n + 1], tolerance)
172 // output is compared vs |tolerance|, and the mean-squared error is compared
176 void EncodeDecodeTest(size_t expected_bytes, int tolerance, double mse, argument
178 ASSERT_GE(tolerance, 0) << "Test must define a tolerance >
45 CompareInputOutput(const std::vector<int16_t>& input, const std::vector<int16_t>& output, size_t num_samples, size_t channels, int tolerance, int delay) argument
64 CompareTwoChannels(const std::vector<int16_t>& output, size_t samples_per_channel, size_t channels, int tolerance) argument
479 int tolerance = 251; local
505 int tolerance = 308; local
517 int tolerance = 0; local
530 int tolerance = 6808; local
544 int tolerance = 3399; local
557 int tolerance = 19757; local
570 int tolerance = 11034; local
590 int tolerance = 6176; local
603 int tolerance = 6176; local
617 int tolerance = 6176; local
640 int tolerance = 6176; local
[all...]
/external/eigen/Eigen/src/IterativeLinearSolvers/
H A DIterativeSolverBase.h255 /** \returns the tolerance threshold used by the stopping criteria.
258 RealScalar tolerance() const { return m_tolerance; } function in class:Eigen::IterativeSolverBase
260 /** Sets the tolerance threshold used by the stopping criteria.
265 Derived& setTolerance(const RealScalar& tolerance) argument
267 m_tolerance = tolerance;
302 /** \returns the tolerance error reached during the last solve.
/external/kernel-headers/original/uapi/linux/
H A Dtimex.h73 __kernel_long_t tolerance;/* clock frequency tolerance (ppm) member in struct:timex
/external/skia/src/pdf/
H A DSkPDFUtils.cpp122 SkScalar tolerance) {
177 const SkPoint* quads = converter.computeQuads(args, iter.conicWeight(), tolerance);
120 EmitPath(const SkPath& path, SkPaint::Style paintStyle, bool doConsumeDegerates, SkWStream* content, SkScalar tolerance) argument
H A DSkPDFDevice.cpp960 SkScalar tolerance = matrixScale > 0.0f ? 0.25f / matrixScale : 0.25f; local
966 tolerance);
/external/eigen/Eigen/src/Cholesky/
H A DLDLT.h571 // In some previous versions, tolerance was set to the max of 1/highest and the maximal diagonal entry * epsilon
573 // RealScalar tolerance = numext::maxi(vecD.array().abs().maxCoeff() * NumTraits<RealScalar>::epsilon(),RealScalar(1) / NumTraits<RealScalar>::highest());
574 // However, LDLT is not rank revealing, and so adjusting the tolerance wrt to the highest
576 // Moreover, Lapack's xSYTRS routines use 0 for the tolerance.
577 RealScalar tolerance = RealScalar(1) / NumTraits<RealScalar>::highest(); local
581 if(abs(vecD(i)) > tolerance)
/external/deqp/external/vulkancts/modules/vulkan/fragment_ops/
H A DvktFragmentOperationsEarlyFragmentTests.cpp781 const int tolerance = expectPartialResult ? de::max(renderSize.x(), renderSize.y()) * 3 : 0; local
782 const int expectedMin = de::max(0, expectedCounter - tolerance);
783 const int expectedMax = expectedCounter + tolerance;
/external/skia/src/gpu/ops/
H A DGrDefaultPathRenderer.cpp335 static std::unique_ptr<GrDrawOp> Make(GrPaint&& paint, const SkPath& path, SkScalar tolerance, argument
339 return Helper::FactoryHelper<DefaultPathOp>(std::move(paint), path, tolerance, coverage,
358 SkScalar tolerance, uint8_t coverage, const SkMatrix& viewMatrix, bool isHairline,
367 fPaths.emplace_back(PathData{path, tolerance});
357 DefaultPathOp(const Helper::MakeArgs& helperArgs, GrColor color, const SkPath& path, SkScalar tolerance, uint8_t coverage, const SkMatrix& viewMatrix, bool isHairline, GrAAType aaType, const SkRect& devBounds, const GrUserStencilSettings* stencilSettings) argument
H A DGrMSAAPathRenderer.cpp281 SkScalar tolerance = GrPathUtils::scaleToleranceToSrc(kTolerance, m, path.getBounds()); local
300 converter.computeQuads(pts, weight, tolerance);
311 GrPathUtils::convertCubicToQuads(pts, tolerance, &quadPts);
500 const SkScalar tolerance = GrPathUtils::scaleToleranceToSrc(kTolerance, m, local
534 const SkPoint* quadPts = converter.computeQuads(pts, weight, tolerance);
547 GrPathUtils::convertCubicToQuads(pts, tolerance, &quadPts);
/external/skia/src/gpu/
H A DGrTessellator.cpp696 void path_to_contours(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds, argument
698 SkScalar toleranceSqd = tolerance * tolerance;
742 int pointsLeft = GrPathUtils::cubicPointCount(pts, tolerance);
1767 Poly* path_to_polys(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds, argument
1776 path_to_contours(path, tolerance, clipBounds, contours.get(), alloc, isLinear);
1781 int get_contour_count(const SkPath& path, SkScalar tolerance) { argument
1783 int maxPts = GrPathUtils::worstCasePointCount(path, &contourCnt, tolerance);
1834 int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds, argument
1837 int contourCnt = get_contour_count(path, tolerance);
1875 PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds, GrTessellator::WindingVertex** verts) argument
[all...]
/external/deqp/modules/gles31/functional/
H A Des31fShaderImageLoadStoreTests.cpp3130 const int tolerance = expectPartialResult ? de::max(viewportWidth, viewportHeight)*3 : 0; local
3131 const int expectedMin = de::max(0, expectedCounter - tolerance);
3132 const int expectedMax = (expectedCounter + tolerance) * numSamples;
/external/owasp/sanitizer/tools/findbugs/lib/
H A Djdepend-2.9.jarMETA-INF/ META-INF/MANIFEST.MF jdepend/ jdepend/framework/ jdepend/framework/AbstractParser.class AbstractParser. ...
/external/libphonenumber/demo/war/WEB-INF/lib/
H A Dcommons-lang-2.6.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/apache/ org/apache/commons/ org/apache/commons/lang/ ...

Completed in 812 milliseconds

12