Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DHistoryEvaluator.java27 private static final float EPSILON = 1e-5f; field in HistoryEvaluator
96 return x <= EPSILON && x >= -EPSILON; in isZero()
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DStochasticLinearRankerWithPrior.java27 private final float EPSILON = 0.0001f; field in StochasticLinearRankerWithPrior
141 mAutoAlpha = (mPriorRankerPerf + EPSILON) / (mUserRankerPerf + mPriorRankerPerf + EPSILON); in updateAutoAlpha()
/frameworks/base/libs/hwui/
DSpotShadow.cpp66 static const float EPSILON = 1e-7; variable
228 return (bx - ax) * (cy - ay) - (by - ay) * (cx - ax) > EPSILON; in ccw()
661 return a >= -EPSILON && b >= -EPSILON; in sameDirections()
663 return a <= EPSILON && b <= EPSILON; in sameDirections()
1070 bool isCCWOrCoLinear = (delta >= EPSILON); in testConvex()
DMatrix.cpp34 static const float EPSILON = 0.0000001f; variable
70 return fabs(f) <= EPSILON; in isZero()
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp34 static const float EPSILON = 0.001f; variable
1458 ASSERT_NEAR(min, range->min, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange()
1459 ASSERT_NEAR(max, range->max, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange()
1460 ASSERT_NEAR(flat, range->flat, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange()
1461 ASSERT_NEAR(fuzz, range->fuzz, EPSILON) << "Axis: " << axis << " Source: " << source; in assertMotionRange()
1470 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords()
1471 ASSERT_NEAR(size, coords.getAxisValue(AMOTION_EVENT_AXIS_SIZE), EPSILON); in assertPointerCoords()
1476 ASSERT_NEAR(orientation, coords.getAxisValue(AMOTION_EVENT_AXIS_ORIENTATION), EPSILON); in assertPointerCoords()
1477 ASSERT_NEAR(distance, coords.getAxisValue(AMOTION_EVENT_AXIS_DISTANCE), EPSILON); in assertPointerCoords()
2915 ASSERT_NEAR(X_PRECISION, motionArgs.xPrecision, EPSILON); in TEST_F()
[all …]
/frameworks/base/core/java/android/widget/
DEdgeEffect.java74 private static final float EPSILON = 0.001f; field in EdgeEffect
366 if (t >= 1.f - EPSILON) { in update()
/frameworks/native/services/surfaceflinger/
DTransform.cpp47 static const float EPSILON = 0.0f; variable
50 return fabs(f) <= EPSILON; in isZero()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DPath_Delegate.java60 private static final float EPSILON = 1e-4f; field in Path_Delegate
689 if (Math.abs(dx) < EPSILON && Math.abs(dy) < EPSILON) { in rLineTo()
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_motion.jd384 // (that is, EPSILON should represent your maximum allowable margin of error)
385 if (omegaMagnitude > EPSILON) {