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

1 2 3 4 5 6 7 8

  /cts/common/device-side/util/src/com/android/compatibility/common/util/
ColorUtils.java 34 public static void verifyColor(int expected, int observed, int tolerance) {
35 verifyColor("", expected, observed, tolerance);
39 * Verify that two colors match within a per-channel tolerance.
44 * @param tolerance Per-channel tolerance by which the color can mismatch.
46 public static void verifyColor(@NonNull String s, int expected, int observed, int tolerance) {
49 + ", tolerated channel error 0x" + tolerance;
50 String red = verifyChannel("red", expected, observed, tolerance, (i) -> Color.red(i));
51 String green = verifyChannel("green", expected, observed, tolerance, (i) -> Color.green(i));
52 String blue = verifyChannel("blue", expected, observed, tolerance, (i) -> Color.blue(i))
    [all...]
  /cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
ColorUtils.java 34 public static void verifyColor(int expected, int observed, int tolerance) {
35 verifyColor("", expected, observed, tolerance);
39 * Verify that two colors match within a per-channel tolerance.
44 * @param tolerance Per-channel tolerance by which the color can mismatch.
46 public static void verifyColor(@NonNull String s, int expected, int observed, int tolerance) {
49 + ", tolerated channel error 0x" + tolerance;
50 String red = verifyChannel("red", expected, observed, tolerance, (i) -> Color.red(i));
51 String green = verifyChannel("green", expected, observed, tolerance, (i) -> Color.green(i));
52 String blue = verifyChannel("blue", expected, observed, tolerance, (i) -> Color.blue(i))
    [all...]
  /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);
SamplePointVerifier.java 40 public SamplePointVerifier(Point[] testPoints, int[] expectedColors, int tolerance) {
43 mTolerance = tolerance;
83 int tolerance, VerifyPixelColor verifier) {
84 return new SamplePointVerifier(testPoints, expectedColors, tolerance) {
  /cts/tests/tests/uirendering27/src/android/uirendering/cts/bitmapverifiers/
RectVerifier.java 32 public RectVerifier(int outerColor, int innerColor, Rect innerRect, int tolerance) {
33 super(tolerance);
SamplePointVerifier.java 40 public SamplePointVerifier(Point[] testPoints, int[] expectedColors, int tolerance) {
43 mTolerance = tolerance;
83 int tolerance, VerifyPixelColor verifier) {
84 return new SamplePointVerifier(testPoints, expectedColors, tolerance) {
  /external/fonttools/Lib/fontTools/pens/
t2CharStringPen.py 12 def t2c_round(number, tolerance=0.5):
13 if tolerance == 0:
16 # return rounded integer if the tolerance >= 0.5, or if the absolute
18 # within the tolerance
19 if tolerance >= .5 or abs(rounded - number) <= tolerance:
25 def makeRoundFunc(tolerance):
26 if tolerance < 0:
27 raise ValueError("Rounding tolerance must be positive")
31 return t2c_round(x, tolerance), t2c_round(y, tolerance
    [all...]
perimeterPen.py 19 def __init__(self, glyphset=None, tolerance=0.005):
22 self.tolerance = tolerance
27 self._addCubic = self._addCubicQuadrature if tolerance >= 0.0015 else self._addCubicRecursive
28 self._addQuadratic = self._addQuadraticQuadrature if tolerance >= 0.00075 else self._addQuadraticExact
53 self.value += calcCubicArcLengthC(c0, c1, c2, c3, self.tolerance)
  /external/libchrome/base/numerics/
ranges.h 20 constexpr bool IsApproximatelyEqual(T lhs, T rhs, T tolerance) {
22 return std::abs(rhs - lhs) <= tolerance;
  /external/skia/src/gpu/
GrTessellator.h 46 int PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
49 int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
  /external/skqp/src/gpu/
GrTessellator.h 46 int PathToVertices(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
49 int PathToTriangles(const SkPath& path, SkScalar tolerance, const SkRect& clipBounds,
  /external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DoubleMath.java 112 * 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) {
137 MathPreconditions.checkNonNegative("tolerance", tolerance);
139 Math.copySign(a - b, 1.0) <= 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)
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)
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)
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)
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)
136 internal::sparse_sparse_product_with_pruning_impl<ColMajorMatrixLhs,ColMajorMatrixRhs,ResultType>(colLhs, colRhs, res, tolerance);
    [all...]
  /external/tensorflow/tensorflow/lite/kernels/internal/
log_quantized_test.cc 74 int output_integer_bits, int tolerance) {
83 // Adjust tolerance when input <= 5*2^-(31-input_integer_bits).
86 ? tolerance
87 : std::max(tolerance, static_cast<int>(std::ceil(
105 << "; tolerance=" << tolerance
106 << ", adj tolerance=" << adjusted_tolerance;
121 const string& check_label, int tolerance) {
148 InputIntegerBits, OutputIntegerBits, tolerance);
154 const string& check_label, int tolerance) {
284 int tolerance = local
    [all...]
  /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...]
  /art/test/412-new-array/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/414-static-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...]
  /cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
GetPasswordExpirationTest.java 51 private void checkPasswordExpiration(String error, long timeout, long tolerance) {
54 ADMIN_RECEIVER_COMPONENT)) <= tolerance);
  /cts/tests/tests/renderscript/src/android/renderscript/cts/
float16_gen.c 121 // Compute ULP for 'value' and store value +/- tolerance * ULP in bounds sarray
122 void getErrorBar(unsigned short value, int tolerance, unsigned short bounds[2]) {
123 // Validate 'tolerance' parameter
124 if (tolerance != 1 && tolerance != 3) {
126 tolerance);
159 // Compute error bar based on error tolerance
160 half lb = hValue - tolerance * ulp;
161 half ub = hValue + tolerance * ulp;
226 int 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);
  /external/fonttools/Lib/fontTools/varLib/
iup.py 94 def can_iup_in_between(deltas, coords, i, j, tolerance):
101 return all(abs(complex(x-p, y-q)) <= tolerance for (x,y),(p,q) in zip(deltas, interp))
103 def _iup_contour_bound_forced_set(delta, coords, tolerance=0):
138 # between delta for those adjacent points (considering tolerance
143 if not (min(d1,d2)-tolerance <= dj <= max(d1,d2)+tolerance):
148 if abs(dj - d1) > tolerance:
151 if abs(dj) > tolerance:
153 # check does not take tolerance into consideration...
157 if dj != d1 and ((dj-tolerance < d1) != (d1 < d2))
    [all...]
  /external/opencensus-java/impl_core/src/test/java/io/opencensus/implcore/stats/
StatsTestUtil.java 79 * Compare the actual and expected AggregationMap within the given tolerance.
83 * @param tolerance the tolerance used for {@code double} comparison.
88 double tolerance) {
92 assertAggregationDataEquals(expected.get(entry.getKey()), entry.getValue(), tolerance); local
97 * Compare the expected and actual {@code AggregationData} within the given tolerance.
101 * @param tolerance the tolerance used for {@code double} comparison.
104 AggregationData expected, final AggregationData actual, final double tolerance) {
110 assertThat(((SumDataDouble) actual).getSum()).isWithin(tolerance).of(arg.getSum())
    [all...]
  /external/droiddriver/src/io/appium/droiddriver/helpers/
BaseDroidDriverTest.java 232 int tolerance = 1; local
234 tolerance = method.getAnnotation(FlakyTest.class).tolerance();
237 for (int runCount = 0; runCount < tolerance; runCount++) {
239 Logs.logfmt(Log.INFO, "Running %s round %d of %d attempts", fName, runCount + 1, tolerance);
251 if (shouldSkipRemainingTests(exception) || runCount >= tolerance - 1) {
  /external/autotest/server/site_tests/firmware_TypeCCharging/
firmware_TypeCCharging.py 55 tolerance = self.VBUS_TOLERANCE * expected_vbus_voltage
61 if math.fabs(expected_vbus_voltage - vbus_voltage) > tolerance:
64 (vbus_voltage, expected_vbus_voltage, tolerance))

Completed in 1143 milliseconds

1 2 3 4 5 6 7 8