Searched refs:mEstimator (Results 1 – 2 of 2) sorted by relevance
24 private RateEstimator mEstimator; field in RateEstimatorTest29 mEstimator = new RateEstimator(); in setUp()41 final float rate = mEstimator.getRate(mTestStartTime - 1000L); in testRunningTimeBackwardDoesntExplodeGet()56 final float rate = mEstimator.getRate(mTestStartTime); in testInstantaneousEventsDontExplodeGet()66 final float rate = mEstimator.getRate(nextEventTime); in testInstantaneousBurstIsEstimatedUnderTwoPercent()75 final float rate = mEstimator.getRate(nextEventTime); in testCompactBurstIsEstimatedUnderTwoPercent()84 final float rate = mEstimator.getRate(nextEventTime); in testSustained1000HzBurstIsEstimatedOverNinetyPercent()93 final float rate = mEstimator.getRate(nextEventTime); in testSustained100HzBurstIsEstimatedOverNinetyPercent()103 final float rate = mEstimator.getRate(nextEventTime + 5000L); // two seconds later in testRecoverQuicklyAfterSustainedBurst()112 final float rate = mEstimator.getRate(nextEventTime); in testEstimateShouldNotOvershoot()[all …]
75 private VelocityTracker.Estimator mEstimator = new VelocityTracker.Estimator(); field in PointerLocationView.PointerState323 float lx = ps.mEstimator.estimateX(-ESTIMATE_PAST_POINTS * ESTIMATE_INTERVAL); in onDraw()324 float ly = ps.mEstimator.estimateY(-ESTIMATE_PAST_POINTS * ESTIMATE_INTERVAL); in onDraw()326 float x = ps.mEstimator.estimateX(i * ESTIMATE_INTERVAL); in onDraw()327 float y = ps.mEstimator.estimateY(i * ESTIMATE_INTERVAL); in onDraw()609 mVelocity.getEstimator(id, ps.mEstimator); in onPointerEvent()