Home
last modified time | relevance | path

Searched refs:velocityTracker (Results 1 – 3 of 3) 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/
DPagedView.java1167 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() local
1168 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchEvent()
1169 int velocityX = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent()