Searched refs:velocityTracker (Results 1 – 3 of 3) sorted by relevance
142 private VelocityTracker velocityTracker; field in FlingUpDownTouchHandler249 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 …]
44 private VelocityTracker velocityTracker; field in SwipeButtonHelper245 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 …]
1167 final VelocityTracker velocityTracker = mVelocityTracker; in onTouchEvent() local1168 velocityTracker.computeCurrentVelocity(1000, mMaximumVelocity); in onTouchEvent()1169 int velocityX = (int) velocityTracker.getXVelocity(mActivePointerId); in onTouchEvent()