Home
last modified time | relevance | path

Searched refs:estimator (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp197 VelocityTracker::Estimator estimator; in android_view_VelocityTracker_nativeGetEstimator() local
198 bool result = state->getEstimator(id, &estimator); in android_view_VelocityTracker_nativeGetEstimator()
206 estimator.xCoeff); in android_view_VelocityTracker_nativeGetEstimator()
208 estimator.yCoeff); in android_view_VelocityTracker_nativeGetEstimator()
209 env->SetIntField(outEstimatorObj, gEstimatorClassInfo.degree, estimator.degree); in android_view_VelocityTracker_nativeGetEstimator()
210 env->SetFloatField(outEstimatorObj, gEstimatorClassInfo.confidence, estimator.confidence); in android_view_VelocityTracker_nativeGetEstimator()
/frameworks/native/libs/input/
DVelocityTracker.cpp251 Estimator estimator; in addMovement() local
252 getEstimator(id, &estimator); in addMovement()
256 int(estimator.degree), in addMovement()
257 vectorToString(estimator.xCoeff, estimator.degree + 1).string(), in addMovement()
258 vectorToString(estimator.yCoeff, estimator.degree + 1).string(), in addMovement()
259 estimator.confidence); in addMovement()
336 Estimator estimator; in getVelocity() local
337 if (getEstimator(id, &estimator) && estimator.degree >= 1) { in getVelocity()
338 *outVx = estimator.xCoeff[1]; in getVelocity()
339 *outVy = estimator.yCoeff[1]; in getVelocity()