Searched refs:absDy (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 922 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/ |
D | ItemTouchHelper.java | 944 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()
|
D | LinearLayoutManager.java | 1316 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()
|
D | RecyclerView.java | 5157 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/ |
D | LinearLayoutManager.java | 1288 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()
|
D | RecyclerView.java | 4806 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/ |
D | ViewDragHelper.java | 620 final int absDy = Math.abs(dy); in computeSettleDuration() local 624 final int addedDistance = absDx + absDy; in computeSettleDuration() 629 (float) absDy / addedDistance; in computeSettleDuration()
|