Home
last modified time | relevance | path

Searched refs:smoothScroller (Results 1 – 5 of 5) sorted by relevance

/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DSnapHelper.java161 RecyclerView.SmoothScroller smoothScroller = createScroller(layoutManager); in snapFromFling() local
162 if (smoothScroller == null) { in snapFromFling()
171 smoothScroller.setTargetPosition(targetPosition); in snapFromFling()
172 layoutManager.startSmoothScroll(smoothScroller); in snapFromFling()
DRecyclerView.java5002 final SmoothScroller smoothScroller = mLayout.mSmoothScroller; in run() local
5027 if (smoothScroller != null && !smoothScroller.isPendingInitialRun() in run()
5028 && smoothScroller.isRunning()) { in run()
5031 smoothScroller.stop(); in run()
5032 } else if (smoothScroller.getTargetPosition() >= adapterSize) { in run()
5033 smoothScroller.setTargetPosition(adapterSize - 1); in run()
5034 smoothScroller.onAnimation(dx - overscrollX, dy - overscrollY); in run()
5036 smoothScroller.onAnimation(dx - overscrollX, dy - overscrollY); in run()
5101 if (smoothScroller != null) { in run()
5102 if (smoothScroller.isPendingInitialRun()) { in run()
[all …]
/frameworks/support/car/src/main/java/androidx/car/widget/
DPagedListView.java529 RecyclerView.SmoothScroller smoothScroller = mSnapHelper.createScroller(layoutManager); in scrollToPosition() local
530 smoothScroller.setTargetPosition(position); in scrollToPosition()
532 layoutManager.startSmoothScroll(smoothScroller); in scrollToPosition()
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java4653 final SmoothScroller smoothScroller = mLayout.mSmoothScroller; in run() local
4682 if (smoothScroller != null && !smoothScroller.isPendingInitialRun() in run()
4683 && smoothScroller.isRunning()) { in run()
4686 smoothScroller.stop(); in run()
4687 } else if (smoothScroller.getTargetPosition() >= adapterSize) { in run()
4688 smoothScroller.setTargetPosition(adapterSize - 1); in run()
4689 smoothScroller.onAnimation(dx - overscrollX, dy - overscrollY); in run()
4691 smoothScroller.onAnimation(dx - overscrollX, dy - overscrollY); in run()
4750 if (smoothScroller != null) { in run()
4751 if (smoothScroller.isPendingInitialRun()) { in run()
[all …]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DGridLayoutManager.java2761 public void startSmoothScroll(RecyclerView.SmoothScroller smoothScroller) {
2763 super.startSmoothScroll(smoothScroller);
2764 if (smoothScroller.isRunning() && smoothScroller instanceof GridLinearSmoothScroller) {
2765 mCurrentSmoothScroller = (GridLinearSmoothScroller) smoothScroller;