Home
last modified time | relevance | path

Searched refs:velocityTracker (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Dialer/java/com/android/incallui/answer/impl/answermethod/
DFlingUpDownTouchHandler.java142 private VelocityTracker velocityTracker; field in FlingUpDownTouchHandler
249 if (velocityTracker == null) { in onTouch()
300 if (velocityTracker != null) { in endMotionEvent()
301 velocityTracker.computeCurrentVelocity(1000); in endMotionEvent()
302 vel = velocityTracker.getYVelocity(); in endMotionEvent()
305 (float) Math.hypot(velocityTracker.getXVelocity(), velocityTracker.getYVelocity()), in endMotionEvent()
327 if (velocityTracker != null) { in endMotionEvent()
328 velocityTracker.recycle(); in endMotionEvent()
329 velocityTracker = null; in endMotionEvent()
389 if (velocityTracker != null) { in trackMovement()
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonHelper.java44 private VelocityTracker velocityTracker; field in SwipeButtonHelper
245 if (velocityTracker != null) { in endMotion()
246 velocityTracker.recycle(); in endMotion()
247 velocityTracker = null; in endMotion()
537 if (velocityTracker != null) { in trackMovement()
538 velocityTracker.addMovement(event); in trackMovement()
543 if (velocityTracker != null) { in initVelocityTracker()
544 velocityTracker.recycle(); in initVelocityTracker()
546 velocityTracker = VelocityTracker.obtain(); in initVelocityTracker()
550 if (velocityTracker == null) { in getCurrentVelocity()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/touch/
DLandscapePagedViewHandler.java115 public float getPrimaryVelocity(VelocityTracker velocityTracker, int pointerId) { in getPrimaryVelocity() argument
116 return velocityTracker.getYVelocity(pointerId); in getPrimaryVelocity()
DPortraitPagedViewHandler.java111 public float getPrimaryVelocity(VelocityTracker velocityTracker, int pointerId) { in getPrimaryVelocity() argument
112 return velocityTracker.getXVelocity(pointerId); in getPrimaryVelocity()
DPagedOrientationHandler.java69 float getPrimaryVelocity(VelocityTracker velocityTracker, int pointerId); in getPrimaryVelocity() argument
/packages/apps/Launcher3/src/com/android/launcher3/
DPagedView.java1241 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() local
1242 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchEvent()
1244 int velocity = (int) mOrientationHandler.getPrimaryVelocity(velocityTracker, in onTouchEvent()