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

1 2 3 4 5

  /tools/tradefederation/core/tests/src/com/android/tradefed/profiler/recorder/
NumericAggregateFunctionTest.java 29 private static final double EPSILON = 1E-6;
37 Assert.assertEquals(-2d, foo, EPSILON);
39 Assert.assertEquals(1.5d, foo, EPSILON);
41 Assert.assertEquals(2d, foo, EPSILON);
52 Assert.assertEquals(-2d, foo, EPSILON);
54 Assert.assertEquals(1.5d, foo, EPSILON);
58 Assert.assertEquals(100d, bar, EPSILON);
61 Assert.assertEquals(2d, foo, EPSILON);
64 Assert.assertEquals(150d, bar, EPSILON);
73 Assert.assertEquals(-2d, foo, EPSILON);
    [all...]
  /cts/tests/tests/animation/src/android/animation/cts/
EvaluatorTest.java 44 private static final float EPSILON = 0.001f;
54 assertEquals(start, result, EPSILON);
57 assertEquals(.5f, result, EPSILON);
60 assertEquals(end, result, EPSILON);
79 assertEquals(start[0], result[0], EPSILON);
80 assertEquals(start[1], result[1], EPSILON);
83 assertEquals(.4f, result[0], EPSILON);
84 assertEquals(.5f, result[1], EPSILON);
87 assertEquals(end[0], result[0], EPSILON);
88 assertEquals(end[1], result[1], EPSILON);
    [all...]
CreationTest.java 38 private static final float EPSILON = 0.0001f;
162 assertEquals((Float) animator.getAnimatedValue(), values[0], EPSILON);
165 assertEquals((Float) animator.getAnimatedValue(), values[i], EPSILON);
168 assertEquals((Float) animator.getAnimatedValue(), values[values.length - 1], EPSILON);
173 assertEquals((Float) animator.getAnimatedValue(propertyName), values[0], EPSILON);
176 assertEquals((Float) animator.getAnimatedValue(propertyName), values[i], EPSILON);
180 EPSILON);
AnimatorSetTest.java 71 private static final float EPSILON = 0.001f;
714 assertEquals(100f, (Float) a1.getAnimatedValue(), EPSILON);
715 assertEquals(150f, (Float) a2.getAnimatedValue(), EPSILON);
716 assertEquals(250f, (Float) a3.getAnimatedValue(), EPSILON);
719 assertEquals(150f, (Float) a1.getAnimatedValue(), EPSILON);
720 assertEquals(250f, (Float) a2.getAnimatedValue(), EPSILON);
721 assertEquals(280f, (Float) a3.getAnimatedValue(), EPSILON);
727 assertEquals(150f, (Float) a1.getAnimatedValue(), EPSILON);
728 assertEquals(250f, (Float) a2.getAnimatedValue(), EPSILON);
729 assertEquals(300f, (Float) a3.getAnimatedValue(), EPSILON);
    [all...]
ValueAnimatorTest.java 61 private static final float EPSILON = 0.0001f;
178 assertEquals(.5f, currentFraction, EPSILON);
179 assertEquals(50, currentValue, EPSILON);
186 assertEquals(.5f, currentFraction, EPSILON);
187 assertEquals(50, currentValue, EPSILON);
196 assertEquals(.5f, currentFraction, EPSILON);
197 assertEquals(50, currentValue, EPSILON);
203 assertEquals(.5f, currentFraction, EPSILON);
204 assertEquals(50, currentValue, EPSILON);
211 assertEquals(.5f, delayedAnim.getAnimatedFraction(), EPSILON);
    [all...]
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/analysis/
RuleClosureTransition.java 49 super(Label.EPSILON, ruleStart);
  /external/replicaisland/src/com/replica/replicaisland/
Utils.java 21 private static final float EPSILON = 0.0001f;
24 return close(a, b, EPSILON);
27 public final static boolean close(float a, float b, float epsilon) {
28 return Math.abs(a - b) < epsilon;
  /tools/loganalysis/tests/src/com/android/loganalysis/parser/
BatteryUsageParserTest.java 30 private static final double EPSILON = 1e-3;
51 assertEquals(8.93, usage.getBatteryUsage().get(0).getUsage(), EPSILON);
  /packages/apps/Camera2/src/com/android/camera/ui/motion/
UnitBezier.java 31 private static final float EPSILON = 1e-6f;
82 if (Math.abs(value) < EPSILON) {
86 if (Math.abs(derivative) < EPSILON) {
106 if (Math.abs(value - target) < EPSILON) {
DampedSpring.java 27 public static final float EPSILON = 0.01f;
132 boolean hasVelocity = Math.abs(mVelocity) >= EPSILON;
133 boolean atTarget = Math.abs(mTarget - mValue) < EPSILON;
  /kernel/tests/net/test/
resilient_rs_test.py 100 EPSILON = 0.1
102 MIN_EXP = 1.9 - EPSILON
104 MAX_EXP = 2.1 + EPSILON
113 MIN_LIN = SOLICITATION_INTERVAL * (0.9 - EPSILON)
114 MAX_LIN = SOLICITATION_INTERVAL * (1.1 + EPSILON)
  /frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
HistoryEvaluator.java 29 private static final float EPSILON = 1e-5f;
101 return x <= EPSILON && x >= -EPSILON;
  /packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
HistoryEvaluator.java 29 private static final float EPSILON = 1e-5f;
99 return x <= EPSILON && x >= -EPSILON;
  /external/antlr/antlr-3.4/tool/src/main/java/org/antlr/tool/
NFAFactory.java 40 * No optimization is done to remove unnecessary epsilon edges.
79 * and throw away any epsilon transitions used to link up simple elements.
98 // bypass epsilon transition and point to what the epsilon's
99 // target points to unless that epsilon transition points to
249 transitionBetweenStates(left, right, Label.EPSILON);
254 /** Build what amounts to an epsilon transition with a semantic
273 /** Build what amounts to an epsilon transition with an action.
331 /** From A B build A-e->B (that is, build an epsilon arc from right
343 transitionBetweenStates(A.right, B.left, Label.EPSILON);
    [all...]
  /packages/inputmethods/LatinIME/native/jni/tests/suggest/core/layout/
normal_distribution_2d_test.cpp 51 static const float EPSILON = 0.01f;
62 EXPECT_NEAR(probabilityDensity0, probabilityDensity1, EPSILON);
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
MatrixUtilsTests.java 28 private static final float EPSILON = 0.00001f;
31 assertEqualsFloat(f0, f1, EPSILON);
  /external/apache-commons-math/src/main/java/org/apache/commons/math/optimization/
SimpleRealPointChecker.java 38 private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON;
SimpleScalarValueChecker.java 38 private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON;
SimpleVectorialPointChecker.java 38 private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON;
SimpleVectorialValueChecker.java 38 private static final double DEFAULT_RELATIVE_THRESHOLD = 100 * MathUtils.EPSILON;
  /frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
PathInterpolatorValueParameterizedTest.java 40 private static final float EPSILON = 1e-3f;
74 assertTrue("value " + value + " is different than expected " + mExpected, delta < EPSILON);
  /frameworks/support/graphics/drawable/animated/src/android/support/graphics/drawable/
PathInterpolatorCompat.java 60 public static final double EPSILON = 0.00001;
157 if (abs(mX[0]) > EPSILON || abs(mY[0]) > EPSILON || abs(mX[numPoints - 1] - 1) > EPSILON
158 || abs(mY[numPoints - 1] - 1) > EPSILON) {
  /frameworks/support/wear/src/android/support/wear/widget/
CurvingLayoutCallback.java 32 private static final float EPSILON = 0.001f;
82 Math.abs(mPathPoints[1] - mCurveBottom) < EPSILON
85 Math.abs(mPathPoints[1] - mCurveTop) < EPSILON
  /external/guava/guava-tests/test/com/google/common/util/concurrent/
RateLimiterTest.java 49 private static final double EPSILON = 1e-8;
128 assertEquals(0.0, limiter.acquire(), EPSILON); // R0.00
130 assertEquals(0.0, limiter.acquire(), EPSILON); // R0.00, ...which is granted immediately
131 assertEquals(0.2, limiter.acquire(), EPSILON); // R0.20
137 assertEquals(0.0, limiter.acquire(), EPSILON);
139 assertEquals(0.0, limiter.acquire(), EPSILON);
140 assertEquals(0.0, limiter.acquire(), EPSILON);
141 assertEquals(0.2, limiter.acquire(), EPSILON);
  /external/antlr/antlr-3.4/tool/src/main/antlr3/org/antlr/grammar/v3/
ANTLRv3Tree.g 124 | ^(ALT EPSILON EOA)
195 | ^(ALT EPSILON EOA)

Completed in 2857 milliseconds

1 2 3 4 5