Searched refs:estimator (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/core/jni/ |
D | android_view_VelocityTracker.cpp | 198 VelocityTracker::Estimator estimator; in android_view_VelocityTracker_nativeGetEstimator() local 199 bool result = state->getEstimator(id, &estimator); in android_view_VelocityTracker_nativeGetEstimator() 207 estimator.xCoeff); in android_view_VelocityTracker_nativeGetEstimator() 209 estimator.yCoeff); in android_view_VelocityTracker_nativeGetEstimator() 210 env->SetIntField(outEstimatorObj, gEstimatorClassInfo.degree, estimator.degree); in android_view_VelocityTracker_nativeGetEstimator() 211 env->SetFloatField(outEstimatorObj, gEstimatorClassInfo.confidence, estimator.confidence); in android_view_VelocityTracker_nativeGetEstimator()
|
/frameworks/native/libs/input/ |
D | VelocityTracker.cpp | 261 Estimator estimator; in addMovement() local 262 getEstimator(id, &estimator); in addMovement() 266 int(estimator.degree), in addMovement() 267 vectorToString(estimator.xCoeff, estimator.degree + 1).c_str(), in addMovement() 268 vectorToString(estimator.yCoeff, estimator.degree + 1).c_str(), in addMovement() 269 estimator.confidence); in addMovement() 346 Estimator estimator; in getVelocity() local 347 if (getEstimator(id, &estimator) && estimator.degree >= 1) { in getVelocity() 348 *outVx = estimator.xCoeff[1]; in getVelocity() 349 *outVy = estimator.yCoeff[1]; in getVelocity()
|
/frameworks/native/libs/input/tests/ |
D | VelocityTracker_test.cpp | 225 VelocityTracker::Estimator estimator; in computeAndCheckQuadraticEstimate() local 226 EXPECT_TRUE(vt.getEstimator(0, &estimator)); in computeAndCheckQuadraticEstimate() 228 checkCoefficient(estimator.xCoeff[i], coefficients[i]); in computeAndCheckQuadraticEstimate() 229 checkCoefficient(estimator.yCoeff[i], coefficients[i]); in computeAndCheckQuadraticEstimate()
|