Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp198 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/
DVelocityTracker.cpp253 Estimator estimator; in addMovement() local
254 getEstimator(id, &estimator); in addMovement()
258 int(estimator.degree), in addMovement()
259 vectorToString(estimator.xCoeff, estimator.degree + 1).string(), in addMovement()
260 vectorToString(estimator.yCoeff, estimator.degree + 1).string(), in addMovement()
261 estimator.confidence); in addMovement()
338 Estimator estimator; in getVelocity() local
339 if (getEstimator(id, &estimator) && estimator.degree >= 1) { in getVelocity()
340 *outVx = estimator.xCoeff[1]; in getVelocity()
341 *outVy = estimator.yCoeff[1]; in getVelocity()