Home
last modified time | relevance | path

Searched refs:EPSILON (Results 1 – 10 of 10) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DHermiteInterpolatorTests.java32 private static final float EPSILON = 0.0000005f; field in HermiteInterpolatorTests
65 assertEquals("slope x p0", -0.25f, mInterpolator.mSlope1X, EPSILON); in testP0P1()
66 assertEquals("slope y p0", -0.75f, mInterpolator.mSlope1Y, EPSILON); in testP0P1()
68 assertEquals("slope x p1", 1.50f, mInterpolator.mSlope2X, EPSILON); in testP0P1()
69 assertEquals("slope y p1", 0.50f, mInterpolator.mSlope2Y, EPSILON); in testP0P1()
72 assertEquals("t=0.0 x", 0.0f, mInterpolator.mInterpolatedX, EPSILON); in testP0P1()
73 assertEquals("t=0.0 y", 1.0f, mInterpolator.mInterpolatedY, EPSILON); in testP0P1()
76 assertEquals("t=0.2 x", 0.02400f, mInterpolator.mInterpolatedX, EPSILON); in testP0P1()
77 assertEquals("t=0.2 y", 0.78400f, mInterpolator.mInterpolatedY, EPSILON); in testP0P1()
80 assertEquals("t=0.5 x", 0.28125f, mInterpolator.mInterpolatedX, EPSILON); in testP0P1()
[all …]
DMatrixUtilsTests.java35 private static final float EPSILON = 0.00001f; field in MatrixUtilsTests
50 assertEquals(retval[0][0], 19, EPSILON); in testMulti()
51 assertEquals(retval[0][1], 22, EPSILON); in testMulti()
52 assertEquals(retval[1][0], 43, EPSILON); in testMulti()
53 assertEquals(retval[1][1], 50, EPSILON); in testMulti()
81 assertEquals(((i == j) ? 1.0f : 0.0f), retval[i][j], EPSILON); in testInverse()
/packages/apps/Camera2/src/com/android/camera/ui/motion/
DUnitBezier.java31 private static final float EPSILON = 1e-6f; field in UnitBezier
82 if (Math.abs(value) < EPSILON) { in solve()
86 if (Math.abs(derivative) < EPSILON) { in solve()
106 if (Math.abs(value - target) < EPSILON) { in solve()
DDampedSpring.java27 public static final float EPSILON = 0.01f; field in DampedSpring
132 boolean hasVelocity = Math.abs(mVelocity) >= EPSILON; in isActive()
133 boolean atTarget = Math.abs(mTarget - mValue) < EPSILON; in isActive()
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
DHistoryEvaluator.java28 private static final float EPSILON = 1e-5f; field in HistoryEvaluator
98 return x <= EPSILON && x >= -EPSILON; in isZero()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataLimitPreferenceControllerTest.java57 private static final long EPSILON = 100; field in DataLimitPreferenceControllerTest
173 - EPSILON); in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier()
176 + EPSILON); in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DContactsManagerTest.java60 private final static float EPSILON = 0.00001f; field in ContactsManagerTest
126 assertEquals(contact.getAffinity(), 1.0f, EPSILON); in testComputeAffinity() local
129 EPSILON); in testComputeAffinity()
/packages/inputmethods/LatinIME/native/jni/tests/suggest/core/layout/
Dnormal_distribution_2d_test.cpp51 static const float EPSILON = 0.01f; in TEST() local
62 EXPECT_NEAR(probabilityDensity0, probabilityDensity1, EPSILON); in TEST()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DEdgeEffect.java82 private static final float EPSILON = 0.001f; field in EdgeEffect
359 if (t >= 1.f - EPSILON) { in update()
/packages/services/Telecomm/src/com/android/server/telecom/
DRinger.java124 private static final float EPSILON = 1e-6f; field in Ringer
308 .setCurve(new float[] {0.f, silencePoint + EPSILON /*keep monotonicity*/, in startRinging()