/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | HermiteInterpolatorTests.java | 32 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 …]
|
D | MatrixUtilsTests.java | 35 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/Launcher3/tests/src/com/android/launcher3/folder/ |
D | PreviewBackgroundTest.java | 49 private static final float EPSILON = 0.00001f; field in PreviewBackgroundTest 72 assertEquals("Scale not changed.", mPreviewBackground.mScale, HOVER_SCALE, EPSILON); in testAnimateScale_restToHovered() 79 EPSILON); in testAnimateScale_restToHovered() 86 assertEquals("Scale changed.", mPreviewBackground.mScale, REST_SCALE, EPSILON); in testAnimateScale_restToNotHovered() 89 EPSILON); in testAnimateScale_restToNotHovered() 101 assertEquals("Scale changed.", mPreviewBackground.mScale, HOVER_SCALE, EPSILON); in testAnimateScale_hoveredToHovered() 104 EPSILON); in testAnimateScale_hoveredToHovered() 117 assertEquals("Scale not changed.", mPreviewBackground.mScale, REST_SCALE, EPSILON); in testAnimateScale_hoveredToRest() 124 EPSILON); in testAnimateScale_hoveredToRest() 132 assertEquals("Scale changed.", mPreviewBackground.mScale, ACCEPT_SCALE_FACTOR, EPSILON); in testAnimateScale_restToAccept() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/math/ |
D | MatrixTest.java | 28 private static final float EPSILON = 1e-5f; field in MatrixTest 44 assertThat(matrix.data).usingTolerance(EPSILON).containsExactly(expected.data).inOrder(); in invert_invertsMatrixOntoItself() 54 assertThat(transformed.length()).isWithin(EPSILON).of(0); in transformPoint_zeroZerosVector() 112 assertThat(transform.data).usingTolerance(EPSILON).containsExactly(product.data) in newRigidTransform_isEquivalentToTrsWithoutScale() 114 assertThat(transform.data).usingTolerance(EPSILON).containsExactly(trs.data).inOrder(); in newRigidTransform_isEquivalentToTrsWithoutScale() 139 assertThat(trs.data).usingTolerance(EPSILON).containsExactly(product.data).inOrder(); in newTrs_isEquivalentToMultiplyingTranslationRotationScale() 148 assertThat(Matrix.newScale(scale).data).usingTolerance(EPSILON) in newScale_uniformScaleMatricesAreEqual() 159 assertThat(inverse.data).usingTolerance(EPSILON).containsExactly(Matrix.identity().data) in invert_identityInverseIsIdentity() 174 assertThat(product.data).usingTolerance(EPSILON) in invert_multiplyWithInverseIsIdentity() 178 assertThat(product.data).usingTolerance(EPSILON) in invert_multiplyWithInverseIsIdentity() [all …]
|
/packages/apps/Launcher3/tests/multivalentTests/src/com/android/launcher3/icons/ |
D | FastBitmapDrawableTest.java | 58 private static final float EPSILON = 0.00001f; field in FastBitmapDrawableTest 98 (float) SCALE.get(mFastBitmapDrawable), PRESSED_SCALE, EPSILON); in testOnStateChange_statePressed() 116 (float) SCALE.get(mFastBitmapDrawable), HOVERED_SCALE, EPSILON); in testOnStateChange_stateHovered() 146 (float) SCALE.get(mFastBitmapDrawable), PRESSED_SCALE, EPSILON); in testOnStateChange_statePressedAndHovered() 164 (float) SCALE.get(mFastBitmapDrawable), PRESSED_SCALE, EPSILON); in testOnStateChange_stateHoveredAndPressed() 182 (float) SCALE.get(mFastBitmapDrawable), PRESSED_SCALE, EPSILON); in testOnStateChange_stateHoveredAndPressedToPressed() 197 (float) SCALE.get(mFastBitmapDrawable), HOVERED_SCALE, EPSILON); in testOnStateChange_stateHoveredAndPressedToHovered() 211 (float) SCALE.get(mFastBitmapDrawable), PRESSED_SCALE, EPSILON); in testOnStateChange_stateHoveredToPressed() 225 (float) SCALE.get(mFastBitmapDrawable), HOVERED_SCALE, EPSILON); in testOnStateChange_statePressedToHovered() 241 assertEquals("End value not correct.", (float) SCALE.get(mFastBitmapDrawable), 1f, EPSILON); in testOnStateChange_stateDefaultFromPressed() [all …]
|
/packages/apps/Camera2/src/com/android/camera/ui/motion/ |
D | UnitBezier.java | 31 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()
|
D | DampedSpring.java | 27 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/modules/Connectivity/tests/unit/java/com/android/server/net/ipmemorystore/ |
D | NetworkAttributesTest.java | 44 private static final float EPSILON = 0.0001f; field in NetworkAttributesTest 58 assertEquals(sum, NetworkAttributes.TOTAL_WEIGHT, EPSILON); in testTotalWeight() 72 assertEquals(1.0f, na.getNetworkGroupSamenessConfidence(na), EPSILON); in testTotalWeight()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/ |
D | HistoryEvaluator.java | 28 private static final float EPSILON = 1e-5f; field in HistoryEvaluator 98 return x <= EPSILON && x >= -EPSILON; in isZero()
|
/packages/apps/Launcher3/tests/multivalentTests/shared/com/android/launcher3/testing/shared/ |
D | ResourceUtils.java | 24 private static final float EPSILON = 0.0001f; field in ResourceUtils 91 if (Math.abs(0.5f - fraction) < EPSILON) { in roundPxValueFromFloat() 94 value += EPSILON; in roundPxValueFromFloat()
|
/packages/inputmethods/LatinIME/native/jni/tests/suggest/core/layout/ |
D | normal_distribution_2d_test.cpp | 51 static const float EPSILON = 0.01f; in TEST() local 62 EXPECT_NEAR(probabilityDensity0, probabilityDensity1, EPSILON); in TEST()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | ContactsManagerTest.java | 60 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/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/ |
D | DataLimitPreferenceControllerTest.java | 62 private static final long EPSILON = 100; field in DataLimitPreferenceControllerTest 196 - EPSILON); in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier() 199 + EPSILON); in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier()
|
/packages/services/Car/service/src/com/android/car/util/ |
D | BrightnessUtils.java | 42 private static final float EPSILON = 0.001f; field in BrightnessUtils 194 || (Math.abs(a - b) < EPSILON); in floatEquals()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | EdgeEffect.java | 82 private static final float EPSILON = 0.001f; field in EdgeEffect 359 if (t >= 1.f - EPSILON) { in update()
|
/packages/modules/Uwb/tests/cts/tests/src/android/uwb/cts/ |
D | DistanceMeasurementTest.java | 37 private static final double EPSILON = 0.00000000001; field in DistanceMeasurementTest
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | Ringer.java | 169 private static final float EPSILON = 1e-6f; field in Ringer 371 new float[]{0.f, silencePoint + EPSILON in startRinging()
|