Home
last modified time | relevance | path

Searched refs:absDy (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java922 final float absDy = Math.abs(dy); 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()
974 final float absDy = Math.abs(dy); in checkSelectForSwipe() local
976 if (absDx < mSlop && absDy < mSlop) { in checkSelectForSwipe()
979 if (absDx > absDy) { in checkSelectForSwipe()
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DItemTouchHelper.java944 final float absDy = Math.abs(dy); in findSwipedView() local
946 if (absDx < mSlop && absDy < mSlop) { in findSwipedView()
949 if (absDx > absDy && lm.canScrollHorizontally()) { in findSwipedView()
951 } else if (absDy > absDx && lm.canScrollVertically()) { in findSwipedView()
996 final float absDy = Math.abs(dy); in checkSelectForSwipe() local
998 if (absDx < mSlop && absDy < mSlop) { in checkSelectForSwipe()
1001 if (absDx > absDy) { in checkSelectForSwipe()
DLinearLayoutManager.java1316 final int absDy = Math.abs(delta); in collectAdjacentPrefetchPositions() local
1317 updateLayoutState(layoutDirection, absDy, true, state); in collectAdjacentPrefetchPositions()
1328 final int absDy = Math.abs(dy); in scrollBy() local
1329 updateLayoutState(layoutDirection, absDy, true, state); in scrollBy()
1338 final int scrolled = absDy > consumed ? layoutDirection * consumed : dy; in scrollBy()
DRecyclerView.java5157 final int absDy = Math.abs(dy); in computeScrollDuration() local
5158 final boolean horizontal = absDx > absDy; in computeScrollDuration()
5171 float absDelta = (float) (horizontal ? absDx : absDy); in computeScrollDuration()
/frameworks/base/core/java/com/android/internal/widget/
DLinearLayoutManager.java1288 final int absDy = Math.abs(delta); in collectAdjacentPrefetchPositions() local
1289 updateLayoutState(layoutDirection, absDy, true, state); in collectAdjacentPrefetchPositions()
1300 final int absDy = Math.abs(dy); in scrollBy() local
1301 updateLayoutState(layoutDirection, absDy, true, state); in scrollBy()
1310 final int scrolled = absDy > consumed ? layoutDirection * consumed : dy; in scrollBy()
DRecyclerView.java4806 final int absDy = Math.abs(dy); in computeScrollDuration() local
4807 final boolean horizontal = absDx > absDy; in computeScrollDuration()
4820 float absDelta = (float) (horizontal ? absDx : absDy); in computeScrollDuration()
/frameworks/support/customview/src/main/java/androidx/customview/widget/
DViewDragHelper.java620 final int absDy = Math.abs(dy); in computeSettleDuration() local
624 final int addedDistance = absDx + absDy; in computeSettleDuration()
629 (float) absDy / addedDistance; in computeSettleDuration()