Methods Summary |
---|
public void | addMovement(android.view.MotionEvent event)
mTracker.addMovement(event);
|
public void | computeCurrentVelocity(int units)
mTracker.computeCurrentVelocity(units);
|
public float | getXVelocity()
return mTracker.getXVelocity();
|
public float | getYVelocity()
return mTracker.getYVelocity();
|
public static com.android.systemui.statusbar.phone.PlatformVelocityTracker | obtain()
PlatformVelocityTracker tracker = sPool.acquire();
if (tracker == null) {
tracker = new PlatformVelocityTracker();
}
tracker.setTracker(VelocityTracker.obtain());
return tracker;
|
public void | recycle()
mTracker.recycle();
sPool.release(this);
|
public void | setTracker(android.view.VelocityTracker tracker)
mTracker = tracker;
|