Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/widget/
DSlidingDrawer.java436 float xVelocity = velocityTracker.getXVelocity(); in onTouchEvent() local
442 if (xVelocity < 0) { in onTouchEvent()
443 xVelocity = -xVelocity; in onTouchEvent()
445 if (xVelocity > mMaximumMinorVelocity) { in onTouchEvent()
446 xVelocity = mMaximumMinorVelocity; in onTouchEvent()
449 negative = xVelocity < 0; in onTouchEvent()
458 float velocity = (float) Math.hypot(xVelocity, yVelocity); in onTouchEvent()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
DItemTouchHelper.java1210 final float xVelocity = VelocityTrackerCompat in checkHorizontalSwipe() local
1214 final int velDirFlag = xVelocity > 0f ? RIGHT : LEFT; in checkHorizontalSwipe()
1215 final float absXVelocity = Math.abs(xVelocity); in checkHorizontalSwipe()
1239 final float xVelocity = VelocityTrackerCompat in checkVerticalSwipe() local
1247 absYVelocity > Math.abs(xVelocity)) { in checkVerticalSwipe()