Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java921 final float absDx = Math.abs(dx); in findSwipedView() local
924 if (absDx < mSlop && absDy < mSlop) { in findSwipedView()
927 if (absDx > absDy && lm.canScrollHorizontally()) { in findSwipedView()
929 } else if (absDy > absDx && lm.canScrollVertically()) { in findSwipedView()
973 final float absDx = Math.abs(dx); in checkSelectForSwipe() local
976 if (absDx < mSlop && absDy < mSlop) { in checkSelectForSwipe()
979 if (absDx > absDy) { in checkSelectForSwipe()
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java4806 final int absDx = Math.abs(dx); in computeScrollDuration() local
4808 final boolean horizontal = absDx > absDy; in computeScrollDuration()
4821 float absDelta = (float) (horizontal ? absDx : absDy); in computeScrollDuration()