/frameworks/base/tools/aapt/ |
Main.cpp | 78 " [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \\\n" 130 " -g specify a pixel tolerance to force images to grayscale, default 0\n" 285 int tolerance = 0; local 357 tolerance = atoi(argv[0]); 358 bundle.setGrayscaleTolerance(tolerance); 359 printf("%s: Images with deviation <= %d will be forced to grayscale.\n", prog, tolerance); [all...] |
/external/tensorflow/tensorflow/compiler/jit/kernels/ |
parallel_check_op.cc | 60 float tolerance = local 64 ok = (diff <= tolerance);
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/test/ |
test_macros.h | 16 const A& expected, const B& actual, const T& tolerance) { 18 if (!IsEqual(expected[i], actual[i], tolerance)) { 21 << "\" differ at element " << i << " by at least " << tolerance 34 const A& expected, const B& actual, const T& tolerance) { 37 if (!IsEqual(expected(r, c), actual(r, c), tolerance)) { 41 << " by at least " << tolerance << " : " 54 const A& expected, const B& actual, const T& tolerance) { 56 if (!IsEqual(expected[i], actual[i], tolerance)) { 64 << "\" by at least " << tolerance << "."; local 72 const A& expected, const B& actual, const T& tolerance) { 84 << "\\" by at least " << tolerance << "."; local [all...] |
/frameworks/native/libs/vr/libdvrcommon/tests/ |
pose_test.cpp | 29 const auto tolerance = FT(0.0001); local 39 EXPECT_MAT4_NEAR(result_pose, mat4_t::Identity(), tolerance); 48 const auto tolerance = FT(0.0001); local 62 EXPECT_VEC3_NEAR(expected_transformed, actual_transformed, tolerance); 72 const auto tolerance = FT(0.0001); local 86 EXPECT_VEC3_NEAR(expected_rotated, actual_rotated, tolerance); 96 const auto tolerance = FT(0.0001); local 117 EXPECT_VEC3_NEAR(expected_transformed, actual_transformed, tolerance); 127 const auto tolerance = FT(0.0001); local 141 EXPECT_VEC3_NEAR(start_position, inverted, tolerance); 150 tolerance); local 152 tolerance); local [all...] |
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/ |
RiddersSolver.java | 209 final double tolerance = FastMath.max(relativeAccuracy * FastMath.abs(x), absoluteAccuracy); local 210 if (FastMath.abs(x - oldx) <= tolerance) {
|
BrentSolver.java | 331 double tolerance = local 333 if (FastMath.abs(dx) <= tolerance) { 337 if ((FastMath.abs(oldDelta) < tolerance) || 365 if (2.0 * p >= 1.5 * dx * p1 - FastMath.abs(tolerance * p1) || 381 if (FastMath.abs(delta) > tolerance) { 384 x1 = x1 + 0.5 * tolerance; 386 x1 = x1 - 0.5 * tolerance;
|
MullerSolver.java | 240 final double tolerance = FastMath.max(relativeAccuracy * FastMath.abs(x), absoluteAccuracy); local 241 if (FastMath.abs(x - oldx) <= tolerance) { 394 final double tolerance = FastMath.max(relativeAccuracy * FastMath.abs(x), absoluteAccuracy); local 395 if (FastMath.abs(x - oldx) <= tolerance) {
|
LaguerreSolver.java | 258 * in the given interval, within the solver tolerance level. 266 double tolerance = FastMath.max(relativeAccuracy * z.abs(), absoluteAccuracy); local 268 (FastMath.abs(z.getImaginary()) <= tolerance || 397 double tolerance = FastMath.max(relativeAccuracy * z.abs(), local 399 if ((z.subtract(oldz)).abs() <= tolerance) {
|
/external/protobuf/src/google/protobuf/util/ |
field_comparator.cc | 135 default_tolerance_ = Tolerance(fraction, margin); 146 map_tolerance_[field] = Tolerance(fraction, margin); 184 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/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/ |
grow_stats_test.cc | 381 float tolerance = 3.5; local 384 EXPECT_LE(diff, tolerance); 385 EXPECT_GE(diff, -tolerance);
|
/frameworks/base/media/jni/ |
android_media_SyncParams.h | 41 jfieldID tolerance; member in struct:android::SyncParams::fields_t
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
Vector3Test.java | 28 private static final float tolerance = 1.0f / (1 << 12); field in class:Vector3Test 47 return Math.abs(a - b) <= tolerance;
|
/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/skia/tests/ |
ColorSpaceXformTest.cpp | 161 // so we give test_identity_xform_A2B a wide tolerance. 163 const int tolerance = 13; local 166 test_identity_xform_A2B(r, kNonStandard_SkGammaNamed, gammas, tolerance); 253 // See ColorSpaceXform_TableGamma... we've decided to allow some tolerance 255 const int tolerance = 12; local 264 test_identity_xform_A2B(r, kNonStandard_SkGammaNamed, gammas, tolerance);
|
/external/skqp/tests/ |
ColorSpaceXformTest.cpp | 161 // so we give test_identity_xform_A2B a wide tolerance. 163 const int tolerance = 13; local 166 test_identity_xform_A2B(r, kNonStandard_SkGammaNamed, gammas, tolerance); 253 // See ColorSpaceXform_TableGamma... we've decided to allow some tolerance 255 const int tolerance = 12; local 264 test_identity_xform_A2B(r, kNonStandard_SkGammaNamed, gammas, 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));
|
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/ |
UT_multi_input.java | 33 private final float tolerance = 1e-6f; field in class:UT_multi_input 94 if ((a[i] + b[i] - out0[i]) > tolerance) {
|
/hardware/intel/common/libmix/mix_video/src/ |
mixframemanager.c | 320 guint64 expected, guint64 tolerance, guint64 *frametimestamp) { 330 if (!array || !expected || !tolerance || !frametimestamp || expected < tolerance) { 375 if (lowest_timestamp <= expected + tolerance) 465 /* calculate tolerance */ 466 guint64 tolerance = fm->frame_timestamp_delta / 4; local 472 * will not fall between the tolerance range. 475 if (timestamp <= fm->next_frame_timestamp + tolerance) { 483 * update next_frame_timestamp only if it falls within the tolerance range 485 if (timestamp >= fm->next_frame_timestamp - tolerance) 551 guint64 tolerance = fm->frame_timestamp_delta \/ 4; local [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
SweepGradientTest.java | 47 private static final int TOLERANCE = 10; 68 verifyColors(colors, positions, TOLERANCE); 79 verifyColors(colors, positions, TOLERANCE); 91 verifyColors(colors, positions, TOLERANCE); 94 private void verifyColors(int[] colors, float[] positions, int tolerance) { 136 assertEquals(Color.alpha(color), Color.alpha(pixel), tolerance); local 137 assertEquals(Color.red(color), Color.red(pixel), tolerance); local 138 assertEquals(Color.green(color), Color.green(pixel), tolerance); local 139 assertEquals(Color.blue(color), Color.blue(pixel), tolerance); local
|
/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/eigen/Eigen/src/IterativeLinearSolvers/ |
IterativeSolverBase.h | 255 /** \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) 267 m_tolerance = tolerance; 302 /** \returns the tolerance error reached during the last solve.
|
/external/webrtc/webrtc/modules/audio_coding/neteq/ |
audio_decoder_unittest.cc | 43 // 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, 178 ASSERT_GE(tolerance, 0) << "Test must define a tolerance >= 0" 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...] |
/frameworks/base/core/tests/coretests/src/android/graphics/ |
BitmapTest.java | 196 final int tolerance = 1; local 215 assertTrue("red", Math.abs(rr - r1) <= tolerance); 220 assertTrue("green", Math.abs(gg - g1) <= tolerance); 225 assertTrue("blue", Math.abs(bb - b1) <= tolerance);
|
/frameworks/base/test-base/src/android/test/ |
InstrumentationTestCase.java | 181 runCount = method.getAnnotation(FlakyTest.class).tolerance(); 188 final int tolerance = runCount; local 195 runMethod(testMethod, tolerance, repetitive); 210 private void runMethod(Method runMethod, int tolerance) throws Throwable { 211 runMethod(runMethod, tolerance, false); 214 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { 237 } while ((runCount < tolerance) && (isRepetitive || exception != null));
|
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/ |
SGEMMTest.java | 84 float tolerance = allowedError * (l2NormOut < l2NormRef ? l2NormOut : l2NormRef); local 85 tolerance /= m * n; 89 if (absErr > tolerance) {
|