Home
last modified time | relevance | path

Searched refs:epsilon (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/core/java/com/android/internal/graphics/cam/
DCamUtils.java122 double epsilon = 216.0 / 24389.0; in argbFromLstar() local
125 boolean cubeExceedEpsilon = fy * fy * fy > epsilon; in argbFromLstar()
209 float epsilon = 216f / 24389f; in intFromLstar() local
212 boolean cubeExceedEpsilon = (fy * fy * fy) > epsilon; in intFromLstar()
/frameworks/native/services/inputflinger/tests/
DTestEventMatchers.h634 MATCHER_P3(WithGestureOffset, dx, dy, epsilon,
640 *result_listener << "expected gesture offset (" << dx << ", " << dy << ") within " << epsilon
642 return xDiff <= epsilon && yDiff <= epsilon;
645 MATCHER_P3(WithGestureScrollDistance, x, y, epsilon,
653 *result_listener << "expected gesture offset (" << x << ", " << y << ") within " << epsilon
655 return xDiff <= epsilon && yDiff <= epsilon;
658 MATCHER_P2(WithGesturePinchScaleFactor, factor, epsilon,
662 *result_listener << "expected gesture scale factor " << factor << " within " << epsilon
664 return fabs(argScaleFactor - factor) <= epsilon;
/frameworks/native/libs/math/tests/
Dmat_test.cpp420 TEST_MATRIX_INVERSE(m4, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST()
421 TEST_MATRIX_INVERSE(m5, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST()
453 TEST_MATRIX_INVERSE(m4, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST()
454 TEST_MATRIX_INVERSE(m5, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST()
477 TEST_MATRIX_INVERSE(m3, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST()
478 TEST_MATRIX_INVERSE(m4, 20.0 * std::numeric_limits<TypeParam>::epsilon()); in TYPED_TEST()
543 static constexpr T value_eps = T(100) * std::numeric_limits<T>::epsilon(); in verifyOrthonormal()
635 TypeParam(1000) * std::numeric_limits<TypeParam>::epsilon(); in TYPED_TEST()
663 TypeParam(1000) * std::numeric_limits<TypeParam>::epsilon(); in TYPED_TEST()
Dquat_test.cpp275 static constexpr double value_eps = double(1000) * std::numeric_limits<double>::epsilon(); in TEST_F()
/frameworks/base/services/tests/servicestests/src/com/android/server/adb/
DAdbDebuggingManagerTest.java457 final long epsilon = 5000; in testKeystoreExpirationTimes() local
472 > epsilon) { in testKeystoreExpirationTimes()
483 if (Math.abs(delay - expectedValue) > epsilon) { in testKeystoreExpirationTimes()
498 if (Math.abs(expirationTime - newExpirationTime) > epsilon) { in testKeystoreExpirationTimes()
503 if (Math.abs(delay - newExpirationTime) > epsilon) { in testKeystoreExpirationTimes()
628 final long epsilon = 5000; in testUntrackedUserKeysAddedToKeystore() local
651 if (Math.abs(time - connectionTime) > epsilon) { in testUntrackedUserKeysAddedToKeystore()
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
Dnumeric.h90 const T& tol = std::numeric_limits<T>::epsilon()) {
96 const T& tol = std::numeric_limits<T>::epsilon()) {
/frameworks/base/services/core/java/com/android/server/wm/
DWindowAnimationSpec.java256 Interpolator interpolator, float target, float epsilon) { in findInterpolationAdjustedTargetFraction() argument
260 while (adj >= epsilon) { in findInterpolationAdjustedTargetFraction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/haptics/slider/
DSliderStateTracker.kt210 epsilon: Float = 0.00001f, in deltaProgressIsAboveThreshold()
213 return delta > config.jumpThreshold - epsilon in deltaProgressIsAboveThreshold()
/frameworks/libs/binary_translation/intrinsics/include/berberis/intrinsics/common/
Dintrinsics_float.h175 static constexpr berberis::intrinsics::WrappedFloatType<BaseType> epsilon() { in epsilon() function
177 std::numeric_limits<BaseType>::epsilon()); in epsilon()
/frameworks/native/libs/input/tests/
DMotionPredictorMetricsManager_test.cpp55 MATCHER_P2(Vector2fNear, target, epsilon, "") {
56 return Matches(FloatNear(target[0], epsilon))(arg[0]) &&
57 Matches(FloatNear(target[1], epsilon))(arg[1]);
64 MATCHER_P2(PredictionPointNear, target, epsilon, "") {
65 if (!Matches(Vector2fNear(target.position, epsilon))(arg.position)) {
71 if (!Matches(FloatNear(target.pressure, epsilon))(arg.pressure)) {
/frameworks/native/libs/binder/tests/
DbinderTextOutputTest.cpp167 TypeParam eps = std::numeric_limits<TypeParam>::epsilon(); in TYPED_TEST()
/frameworks/av/media/libheadtracking/
DPose-test.cpp67 constexpr float eps = std::numeric_limits<float>::epsilon(); in TEST()
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/
Dshared.rsh96 /* Absolute epsilon used for floats. Value is similar to float.h. */
/frameworks/av/media/libeffects/tests/common/
DEffectTestHelper.h60 delta = std::numeric_limits<T>::epsilon(); in areNearlySame()
/frameworks/native/libs/gui/tests/
DBLASTBufferQueue_test.cpp284 const auto epsilon = 3; in checkScreenCapture() local
306 ASSERT_GE(epsilon, abs(r - *(pixel))); in checkScreenCapture()
307 ASSERT_GE(epsilon, abs(g - *(pixel + 1))); in checkScreenCapture()
308 ASSERT_GE(epsilon, abs(b - *(pixel + 2))); in checkScreenCapture()
310 ASSERT_GE(epsilon, abs(r - *(pixel))); in checkScreenCapture()
311 ASSERT_GE(epsilon, abs(g - *(pixel + 1))); in checkScreenCapture()
312 ASSERT_GE(epsilon, abs(b - *(pixel + 2))); in checkScreenCapture()
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/
Dshared.rsh98 /* Absolute epsilon used for floats. Value is similar to float.h. */
/frameworks/native/libs/math/include/math/
Dhalf.h199 …inline static constexpr type epsilon() noexcept { return android::half(android::half::binary, 0x14…
/frameworks/native/services/surfaceflinger/tests/
DLayerRenderTypeTransaction_test.cpp85 const float epsilon = 1.0f / 16.0f; in TEST_P() local
86 Transaction().setPosition(layer, 0.5f - epsilon, 0.5f - epsilon).apply(); in TEST_P()
92 Transaction().setPosition(layer, 0.5f + epsilon, 0.5f + epsilon).apply(); in TEST_P()
/frameworks/av/media/libeffects/downmix/tests/
Ddownmix_tests.cpp129 abs((e) * std::numeric_limits<std::decay_t<decltype(e)>>::epsilon() * 8))
/frameworks/base/core/tests/coretests/src/android/text/
DLayoutTest.java631 final float epsilon = 1.0f; in testGetCursorPath() local
636 assertTrue(bounds.top >= layout.getLineTop(i) - epsilon); in testGetCursorPath()
637 assertTrue(bounds.bottom <= layout.getLineBottom(i) + epsilon); in testGetCursorPath()