Home
last modified time | relevance | path

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

/frameworks/base/core/jni/
Dandroid_view_VelocityTracker.cpp199 VelocityTracker::Estimator estimator; in android_view_VelocityTracker_nativeGetEstimator() local
200 bool result = state->getEstimator(id, &estimator); in android_view_VelocityTracker_nativeGetEstimator()
208 estimator.xCoeff); in android_view_VelocityTracker_nativeGetEstimator()
210 estimator.yCoeff); in android_view_VelocityTracker_nativeGetEstimator()
211 env->SetIntField(outEstimatorObj, gEstimatorClassInfo.degree, estimator.degree); in android_view_VelocityTracker_nativeGetEstimator()
212 env->SetFloatField(outEstimatorObj, gEstimatorClassInfo.confidence, estimator.confidence); in android_view_VelocityTracker_nativeGetEstimator()
/frameworks/base/core/java/com/android/internal/os/
DMemoryPowerCalculator.java67 UsageBasedPowerEstimator estimator = mPowerEstimators[(int) timers.keyAt(i)]; in calculatePower() local
69 estimator.calculateDuration(timers.valueAt(i), rawRealtimeUs, statsType); in calculatePower()
70 powerMah += estimator.calculatePower(usageDurationMs); in calculatePower()
/frameworks/native/libs/input/
DVelocityTracker.cpp231 Estimator estimator; in addMovement() local
232 getEstimator(id, &estimator); in addMovement()
236 int(estimator.degree), in addMovement()
237 vectorToString(estimator.xCoeff, estimator.degree + 1).c_str(), in addMovement()
238 vectorToString(estimator.yCoeff, estimator.degree + 1).c_str(), in addMovement()
239 estimator.confidence); in addMovement()
308 Estimator estimator; in getVelocity() local
309 if (getEstimator(id, &estimator) && estimator.degree >= 1) { in getVelocity()
310 *outVx = estimator.xCoeff[1]; in getVelocity()
311 *outVy = estimator.yCoeff[1]; in getVelocity()
/frameworks/native/libs/input/tests/
DVelocityTracker_test.cpp228 VelocityTracker::Estimator estimator; in computeAndCheckQuadraticEstimate() local
229 EXPECT_TRUE(vt.getEstimator(0, &estimator)); in computeAndCheckQuadraticEstimate()
231 checkCoefficient(estimator.xCoeff[i], coefficients[i]); in computeAndCheckQuadraticEstimate()
232 checkCoefficient(estimator.yCoeff[i], coefficients[i]); in computeAndCheckQuadraticEstimate()
/frameworks/opt/telephony/proto/src/
Dtelephony.proto57 // Bandwidth estimator stats
2721 // Bandwidth estimator stats