/cts/tests/tests/view/src/android/view/cts/ |
VelocityTrackerTest.java | 180 private void assertVelocity(float tolerance, String message) { 186 if (errorVx > tolerance || errorVy > tolerance) { 187 fail(String.format("Velocity exceeds tolerance of %6.1f%%: " 190 tolerance * 100.0f, mVx, mVy,
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/modifiers/ |
MirrorModifier.java | 53 modifierData.put("tolerance", modifierStructure.getFieldValue("tolerance"));
92 float tolerance = ((Number) modifierData.get("tolerance")).floatValue();
local 120 if (Math.abs(d) <= tolerance) {
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/picking/ |
BresenhamYUpGridTracer.java | 62 protected static float TOLERANCE = 0.0000001f; 87 if (direction.x > TOLERANCE) { 91 } else if (direction.x < -TOLERANCE) { 102 if (direction.z > TOLERANCE) { 106 } else if (direction.z < -TOLERANCE) {
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
AutoCompleteTextViewPopup.java | 44 @FlakyTest(tolerance=3) 76 @FlakyTest(tolerance=3) 103 @FlakyTest(tolerance=3) 136 @FlakyTest(tolerance=3) 170 @FlakyTest(tolerance=3)
|
AutoCompleteTextViewCallbacks.java | 35 @FlakyTest(tolerance=3) 60 @FlakyTest(tolerance=3) 109 @FlakyTest(tolerance=3)
|
/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));
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
CornerPathEffectTest.java | 39 private static final int TOLERANCE = 5; 69 // A paint that draws the expected path with a tolerance width into the red channel 73 expectedPaint.setStrokeWidth(TOLERANCE);
|
PorterDuffColorFilterTest.java | 29 private static final int TOLERANCE = 5; 51 assertEquals(0x80, Color.red(lowerLeft), TOLERANCE); 52 assertEquals(0x80, Color.green(lowerLeft), TOLERANCE);
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
CacheManager_CacheResultTest.java | 63 final long tolerance = 5 * 1000; // 5s local 92 (double)tolerance); 99 (double)tolerance);
|
/external/skia/tests/ |
Matrix44Test.cpp | 15 const SkScalar tolerance = SK_Scalar1 / 200000; local 17 const SkScalar tolerance = SK_Scalar1 / 1024; 20 return SkScalarAbs(a - b) <= tolerance;
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
LifecycleTest.java | 51 // @FlakyTest(tolerance=2) 59 //@FlakyTest(tolerance=2)
|
/external/skia/src/effects/ |
SkAvoidXfermode.cpp | 13 SkAvoidXfermode::SkAvoidXfermode(SkColor opColor, U8CPU tolerance, Mode mode) 15 if (tolerance > 255) { 16 tolerance = 255; 20 fDistMul = (256 << 14) / (tolerance + 1);
|
/external/webkit/Tools/DumpRenderTree/qt/ |
ImageDiff.cpp | 34 qreal tolerance = 0; local 38 if (args[i] == "-t" || args[i] == "--tolerance") 39 tolerance = args[i + 1].toDouble(); 119 if (difference <= tolerance) {
|
/external/skia/include/core/ |
SkScalar.h | 308 /* <= is slower than < for floats, so we use < for our tolerance test 312 SkScalar tolerance = SK_ScalarNearlyZero) { 313 SkASSERT(tolerance > 0); 314 return SkScalarAbs(x) < tolerance; 318 SkScalar tolerance = SK_ScalarNearlyZero) { 319 SkASSERT(tolerance > 0); 320 return SkScalarAbs(x-y) < tolerance;
|
/frameworks/base/core/java/android/test/ |
InstrumentationTestCase.java | 175 runCount = method.getAnnotation(FlakyTest.class).tolerance(); 182 final int tolerance = runCount; local 189 runMethod(testMethod, tolerance, repetitive); 204 private void runMethod(Method runMethod, int tolerance) throws Throwable { 205 runMethod(runMethod, tolerance, false); 208 private void runMethod(Method runMethod, int tolerance, boolean isRepetitive) throws Throwable { 231 } while ((runCount < tolerance) && (isRepetitive || exception != null));
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ScrollViewTest.java | 51 private static final int TOLERANCE = 2; 281 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); 300 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); 360 assertEquals(mPageHeight, mScrollView.getScrollY(), TOLERANCE); 363 assertEquals(mPageHeight * 2, mScrollView.getScrollY(), TOLERANCE); 367 assertEquals(mScrollBottom, mScrollView.getScrollY(), TOLERANCE); 370 assertEquals(mScrollBottom - mPageHeight, mScrollView.getScrollY(), TOLERANCE); 373 assertEquals(mScrollBottom -mPageHeight * 2, mScrollView.getScrollY(), TOLERANCE); 491 mScrollView.computeVerticalScrollRange(), TOLERANCE);
|
/external/skia/src/core/ |
SkFloat.h | 66 void assertEquals(float f, int tolerance = 0) 75 SkASSERT(SkAbs32(d) <= tolerance);
|
/development/ndk/platforms/android-3/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/control/ |
LodControl.java | 76 * Returns the distance tolerance for changing LOD. 78 * @return the distance tolerance for changing LOD. 87 * Specifies the distance tolerance for changing the LOD level on the geometry. 91 * @param distTolerance distance tolerance for changing LOD
|
/external/webkit/Tools/DumpRenderTree/cg/ |
ImageDiffCG.cpp | 183 float tolerance = 0.0f; local 186 if (!strcmp(argv[i], "-t") || !strcmp(argv[i], "--tolerance")) { 189 tolerance = strtof(argv[i + 1], 0); 223 if (difference <= tolerance)
|
/external/webkit/Tools/DumpRenderTree/gtk/ |
ImageDiff.cpp | 38 static double tolerance = 0; variable 41 { "tolerance", 0, 0, G_OPTION_ARG_DOUBLE, &tolerance, "Percentage difference between images before considering them different", "T" }, 138 if (difference <= tolerance)
|
/external/webkit/Tools/DumpRenderTree/win/ |
ImageDiffCairo.cpp | 186 float tolerance = 0; local 189 if (!strcmp(argv[i], "-t") || !strcmp(argv[i], "--tolerance")) { 192 tolerance = strtof(argv[i + 1], 0); 227 if (difference <= tolerance)
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/focus/ |
ListWithEditTextHeaderTest.java | 50 @FlakyTest(tolerance=2)
|
/frameworks/base/graphics/tests/graphicstests/src/android/graphics/ |
BitmapTest.java | 195 final int tolerance = 1; local 214 assertTrue("red", Math.abs(rr - r1) <= tolerance); 219 assertTrue("green", Math.abs(gg - g1) <= tolerance); 224 assertTrue("blue", Math.abs(bb - b1) <= tolerance);
|
/prebuilts/gcc/darwin-x86/mips/mipsel-linux-android-4.4.3/sysroot/usr/include/linux/ |
timex.h | 45 long tolerance; member in struct:timex
|