Home
last modified time | relevance | path

Searched refs:xVelocity (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/
DSwipeDismissLayout.java350 float xVelocity = mVelocityTracker.getXVelocity();
354 xVelocity = deltaX / ((ev.getEventTime() - ev.getDownTime()) / 1000);
361 * xVelocity / mMinFlingVelocity // scale x-velocity with fling velocity
366 || xVelocity >= mMinFlingVelocity) {
373 if (xVelocity < -mMinFlingVelocity) {
/frameworks/base/core/java/android/widget/
DSlidingDrawer.java434 float xVelocity = velocityTracker.getXVelocity(); in onTouchEvent() local
440 if (xVelocity < 0) { in onTouchEvent()
441 xVelocity = -xVelocity; in onTouchEvent()
443 if (xVelocity > mMaximumMinorVelocity) { in onTouchEvent()
444 xVelocity = mMaximumMinorVelocity; in onTouchEvent()
447 negative = xVelocity < 0; in onTouchEvent()
456 float velocity = (float) Math.hypot(xVelocity, yVelocity); in onTouchEvent()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
DItemTouchHelper.java1201 final float xVelocity = mVelocityTracker.getXVelocity(mActivePointerId); in checkHorizontalSwipe() local
1203 final int velDirFlag = xVelocity > 0f ? RIGHT : LEFT; in checkHorizontalSwipe()
1204 final float absXVelocity = Math.abs(xVelocity); in checkHorizontalSwipe()
1228 final float xVelocity = mVelocityTracker.getXVelocity(mActivePointerId); in checkVerticalSwipe() local
1234 && absYVelocity > Math.abs(xVelocity)) { in checkVerticalSwipe()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java1203 final float xVelocity = mVelocityTracker.getXVelocity(mActivePointerId); in checkHorizontalSwipe() local
1205 final int velDirFlag = xVelocity > 0f ? RIGHT : LEFT; in checkHorizontalSwipe()
1206 final float absXVelocity = Math.abs(xVelocity); in checkHorizontalSwipe()
1230 final float xVelocity = mVelocityTracker.getXVelocity(mActivePointerId); in checkVerticalSwipe() local
1236 && absYVelocity > Math.abs(xVelocity)) { in checkVerticalSwipe()