Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/
DItemTouchHelper.java928 final float absDx = Math.abs(dx); in findSwipedView() local
931 if (absDx < mSlop && absDy < mSlop) { in findSwipedView()
934 if (absDx > absDy && lm.canScrollHorizontally()) { in findSwipedView()
936 } else if (absDy > absDx && lm.canScrollVertically()) { in findSwipedView()
980 final float absDx = Math.abs(dx); in checkSelectForSwipe() local
983 if (absDx < mSlop && absDy < mSlop) { in checkSelectForSwipe()
986 if (absDx > absDy) { in checkSelectForSwipe()
/frameworks/support/v4/java/android/support/v4/widget/
DViewDragHelper.java607 final int absDx = Math.abs(dx); in computeSettleDuration() local
612 final int addedDistance = absDx + absDy; in computeSettleDuration()
615 (float) absDx / addedDistance; in computeSettleDuration()
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DRecyclerView.java4485 final int absDx = Math.abs(dx); in computeScrollDuration() local
4487 final boolean horizontal = absDx > absDy; in computeScrollDuration()
4500 float absDelta = (float) (horizontal ? absDx : absDy); in computeScrollDuration()