/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/ |
H A D | LinearLayoutManagerWrapContentTest.java | 158 protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager) { argument 169 protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager) { argument 170 boolean rtl = layoutManager.getLayoutDirection() == ViewCompat.LAYOUT_DIRECTION_RTL;
|
H A D | StaggeredGridLayoutManagerWrapContentTest.java | 153 protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager) { argument 158 protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager) { argument
|
H A D | GridLayoutManagerSnappingTest.java | 183 @Nullable View findCenterView(RecyclerView.LayoutManager layoutManager) { argument 184 if (layoutManager.canScrollHorizontally()) {
|
H A D | GridLayoutManagerWrapContentTest.java | 222 protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager) { argument 227 protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager) { argument
|
H A D | LinearLayoutManagerSnappingTest.java | 202 @Nullable private View findCenterView(RecyclerView.LayoutManager layoutManager) { argument 203 if (layoutManager.canScrollHorizontally()) {
|
H A D | PagerSnapHelperTest.java | 233 private View findCenterView(RecyclerView.LayoutManager layoutManager) { argument 234 if (layoutManager.canScrollHorizontally()) {
|
H A D | StaggeredGridLayoutManagerSavedStateTest.java | 76 layoutManager().expectLayouts(1); 78 layoutManager().waitForLayout(2); 89 layoutManager().expectLayouts(1); 92 layoutManager().waitForLayout(2); 103 layoutManager().expectLayouts(1); 106 layoutManager().waitForLayout(2); 236 public WrappedLayoutManager layoutManager() { method in class:StaggeredGridLayoutManagerSavedStateTest.PostLayoutRunnable
|
H A D | StaggeredGridLayoutManagerSnappingTest.java | 210 @Nullable View findCenterView(RecyclerView.LayoutManager layoutManager) { argument
|
H A D | LinearLayoutManagerSavedStateTest.java | 99 layoutManager().expectLayouts(1); 101 layoutManager().waitForLayout(2); 112 layoutManager().expectLayouts(1); 115 layoutManager().waitForLayout(2); 126 layoutManager().expectLayouts(1); 129 layoutManager().waitForLayout(2); 151 layoutManager().setOrientation(config.mOrientation); 168 layoutManager().setStackFromEnd(config.mStackFromEnd); 185 layoutManager().setReverseLayout(config.mReverseLayout); 202 layoutManager() 355 protected WrappedLinearLayoutManager layoutManager() { method in class:LinearLayoutManagerSavedStateTest.PostLayoutRunnable 390 protected WrappedLinearLayoutManager layoutManager() { method in class:LinearLayoutManagerSavedStateTest.PostRestoreRunnable [all...] |
H A D | TestResizingRelayoutWithAutoMeasure.java | 59 RecyclerView.LayoutManager layoutManager, float widthMultiplier, 63 mLayoutManager = layoutManager; 57 TestResizingRelayoutWithAutoMeasure(@uppressWarnings�) String name, int rvWidth, int rvHeight, RecyclerView.LayoutManager layoutManager, float widthMultiplier, float heightMultiplier) argument
|
H A D | BaseWrapContentTest.java | 72 RecyclerView.LayoutManager layoutManager = createLayoutManager(); 82 rv.setLayoutManager(layoutManager); 151 RecyclerView.LayoutManager layoutManager = scenario.createLayoutManager(); 154 recyclerView.setLayoutManager(layoutManager); 156 mLayoutManager = layoutManager; 227 abstract protected int getVerticalGravity(RecyclerView.LayoutManager layoutManager); argument 229 abstract protected int getHorizontalGravity(RecyclerView.LayoutManager layoutManager); argument 454 RecyclerView.LayoutManager layoutManager = recyclerView.getLayoutManager(); 456 Rect rect = new Rect(layoutManager.getDecoratedLeft(child) - lp.leftMargin, 457 layoutManager [all...] |
H A D | RecyclerViewFocusRecoveryTest.java | 95 void setupBasic(TestLayoutManager layoutManager) throws Throwable { argument 96 setupBasic(null, layoutManager); 103 void setupBasic(@Nullable TestAdapter adapter, @Nullable TestLayoutManager layoutManager) argument 106 if (layoutManager == null) { 107 layoutManager = new FocusLayoutManager(); 113 mLayoutManager = layoutManager;
|
H A D | BaseRecyclerViewAnimationsTest.java | 318 void afterPreLayout(RecyclerView.Recycler recycler, AnimationLayoutManager layoutManager, argument 322 void beforePostLayout(RecyclerView.Recycler recycler, AnimationLayoutManager layoutManager, argument 326 void afterPostLayout(RecyclerView.Recycler recycler, AnimationLayoutManager layoutManager, argument
|
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/ |
H A D | RvCompatListActivity.java | 34 RecyclerView.LayoutManager layoutManager; field in class:RvCompatListActivity.RecyclerViewFragment 43 recyclerView.setLayoutManager(layoutManager); 56 fragment.layoutManager = createLayoutManager(this);
|
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/ |
H A D | LinearSnapHelper.java | 45 @NonNull RecyclerView.LayoutManager layoutManager, @NonNull View targetView) { 47 if (layoutManager.canScrollHorizontally()) { 48 out[0] = distanceToCenter(layoutManager, targetView, 49 getHorizontalHelper(layoutManager)); 54 if (layoutManager.canScrollVertically()) { 55 out[1] = distanceToCenter(layoutManager, targetView, 56 getVerticalHelper(layoutManager)); 64 public int findTargetSnapPosition(RecyclerView.LayoutManager layoutManager, int velocityX, argument 66 if (!(layoutManager instanceof RecyclerView.SmoothScroller.ScrollVectorProvider)) { 70 final int itemCount = layoutManager 44 calculateDistanceToFinalSnap( @onNull RecyclerView.LayoutManager layoutManager, @NonNull View targetView) argument 132 findSnapView(RecyclerView.LayoutManager layoutManager) argument 141 distanceToCenter(@onNull RecyclerView.LayoutManager layoutManager, @NonNull View targetView, OrientationHelper helper) argument 165 estimateNextPositionDiffForFling(RecyclerView.LayoutManager layoutManager, OrientationHelper helper, int velocityX, int velocityY) argument 187 findCenterView(RecyclerView.LayoutManager layoutManager, OrientationHelper helper) argument 231 computeDistancePerChild(RecyclerView.LayoutManager layoutManager, OrientationHelper helper) argument 272 getVerticalHelper(@onNull RecyclerView.LayoutManager layoutManager) argument 280 getHorizontalHelper( @onNull RecyclerView.LayoutManager layoutManager) argument [all...] |
H A D | PagerSnapHelper.java | 50 public int[] calculateDistanceToFinalSnap(@NonNull RecyclerView.LayoutManager layoutManager, argument 53 if (layoutManager.canScrollHorizontally()) { 54 out[0] = distanceToCenter(layoutManager, targetView, 55 getHorizontalHelper(layoutManager)); 60 if (layoutManager.canScrollVertically()) { 61 out[1] = distanceToCenter(layoutManager, targetView, 62 getVerticalHelper(layoutManager)); 71 public View findSnapView(RecyclerView.LayoutManager layoutManager) { argument 72 if (layoutManager.canScrollVertically()) { 73 return findCenterView(layoutManager, getVerticalHelpe 81 findTargetSnapPosition(RecyclerView.LayoutManager layoutManager, int velocityX, int velocityY) argument 124 createSnapScroller(RecyclerView.LayoutManager layoutManager) argument 153 distanceToCenter(@onNull RecyclerView.LayoutManager layoutManager, @NonNull View targetView, OrientationHelper helper) argument 176 findCenterView(RecyclerView.LayoutManager layoutManager, OrientationHelper helper) argument 217 findStartView(RecyclerView.LayoutManager layoutManager, OrientationHelper helper) argument 241 getVerticalHelper(@onNull RecyclerView.LayoutManager layoutManager) argument 249 getHorizontalHelper( @onNull RecyclerView.LayoutManager layoutManager) argument [all...] |
H A D | SnapHelper.java | 65 RecyclerView.LayoutManager layoutManager = mRecyclerView.getLayoutManager(); 66 if (layoutManager == null) { 75 && snapFromFling(layoutManager, velocityX, velocityY); 148 * @param layoutManager The {@link RecyclerView.LayoutManager} associated with the attached 155 private boolean snapFromFling(@NonNull RecyclerView.LayoutManager layoutManager, int velocityX, argument 157 if (!(layoutManager instanceof RecyclerView.SmoothScroller.ScrollVectorProvider)) { 161 RecyclerView.SmoothScroller smoothScroller = createScroller(layoutManager); 166 int targetPosition = findTargetSnapPosition(layoutManager, velocityX, velocityY); 172 layoutManager.startSmoothScroll(smoothScroller); 185 RecyclerView.LayoutManager layoutManager 208 createScroller(RecyclerView.LayoutManager layoutManager) argument 223 createSnapScroller(RecyclerView.LayoutManager layoutManager) argument 267 calculateDistanceToFinalSnap(@onNull RecyclerView.LayoutManager layoutManager, @NonNull View targetView) argument 287 findSnapView(RecyclerView.LayoutManager layoutManager) argument 300 findTargetSnapPosition(RecyclerView.LayoutManager layoutManager, int velocityX, int velocityY) argument [all...] |
H A D | OrientationHelper.java | 46 private OrientationHelper(RecyclerView.LayoutManager layoutManager) { argument 47 mLayoutManager = layoutManager; 235 * @param layoutManager LayoutManager to attach to 240 RecyclerView.LayoutManager layoutManager, @RecyclerView.Orientation int orientation) { 243 return createHorizontalHelper(layoutManager); 245 return createVerticalHelper(layoutManager); 253 * @param layoutManager The LayoutManager to attach to. 257 RecyclerView.LayoutManager layoutManager) { 258 return new OrientationHelper(layoutManager) { 352 * @param layoutManager Th 239 createOrientationHelper( RecyclerView.LayoutManager layoutManager, @RecyclerView.Orientation int orientation) argument 256 createHorizontalHelper( RecyclerView.LayoutManager layoutManager) argument 355 createVerticalHelper(RecyclerView.LayoutManager layoutManager) argument [all...] |
H A D | RecyclerView.java | 639 // Create the layoutManager if specified. 11477 void start(RecyclerView recyclerView, LayoutManager layoutManager) { argument 11486 mLayoutManager = layoutManager; 11516 LayoutManager layoutManager = getLayoutManager(); 11517 if (layoutManager instanceof ScrollVectorProvider) { 11518 return ((ScrollVectorProvider) layoutManager)
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | OrientationHelper.java | 47 private OrientationHelper(RecyclerView.LayoutManager layoutManager) { argument 48 mLayoutManager = layoutManager; 228 * @param layoutManager LayoutManager to attach to 233 RecyclerView.LayoutManager layoutManager, int orientation) { 236 return createHorizontalHelper(layoutManager); 238 return createVerticalHelper(layoutManager); 246 * @param layoutManager The LayoutManager to attach to. 250 RecyclerView.LayoutManager layoutManager) { 251 return new OrientationHelper(layoutManager) { 345 * @param layoutManager Th 232 createOrientationHelper( RecyclerView.LayoutManager layoutManager, int orientation) argument 249 createHorizontalHelper( RecyclerView.LayoutManager layoutManager) argument 348 createVerticalHelper(RecyclerView.LayoutManager layoutManager) argument [all...] |
H A D | RecyclerView.java | 562 // Create the layoutManager if specified. 10629 void start(RecyclerView recyclerView, LayoutManager layoutManager) { argument 10631 mLayoutManager = layoutManager;
|
/frameworks/support/car/src/main/java/androidx/car/widget/ |
H A D | PagedSnapHelper.java | 68 public int[] calculateDistanceToFinalSnap(@NonNull RecyclerView.LayoutManager layoutManager, argument 72 out[0] = layoutManager.canScrollHorizontally() 73 ? getHorizontalHelper(layoutManager).getDecoratedStart(targetView) 76 out[1] = layoutManager.canScrollVertically() 77 ? getVerticalHelper(layoutManager).getDecoratedStart(targetView) 89 * @param layoutManager The current {@link RecyclerView.LayoutManager} for the attached 100 public View findSnapView(RecyclerView.LayoutManager layoutManager) { argument 101 int childCount = layoutManager.getChildCount(); 106 OrientationHelper orientationHelper = getOrientationHelper(layoutManager); 110 View firstChild = layoutManager 240 createScroller(RecyclerView.LayoutManager layoutManager) argument 290 isAtStart(RecyclerView.LayoutManager layoutManager) argument 306 isAtEnd(RecyclerView.LayoutManager layoutManager) argument 325 getOrientationHelper( @onNull RecyclerView.LayoutManager layoutManager) argument 333 getVerticalHelper(@onNull RecyclerView.LayoutManager layoutManager) argument 341 getHorizontalHelper( @onNull RecyclerView.LayoutManager layoutManager) argument [all...] |
H A D | PagedListView.java | 258 RecyclerView.LayoutManager layoutManager = 260 mRecyclerView.setLayoutManager(layoutManager); 524 RecyclerView.LayoutManager layoutManager = mRecyclerView.getLayoutManager(); 525 if (layoutManager == null) { 529 RecyclerView.SmoothScroller smoothScroller = mSnapHelper.createScroller(layoutManager); 532 layoutManager.startSmoothScroll(smoothScroller); 547 RecyclerView.LayoutManager layoutManager = mRecyclerView.getLayoutManager(); 549 if (layoutManager == null) { 554 if ((layoutManager instanceof RecyclerView.SmoothScroller.ScrollVectorProvider)) { 555 PointF vector = ((RecyclerView.SmoothScroller.ScrollVectorProvider) layoutManager) 809 getOrientationHelper(RecyclerView.LayoutManager layoutManager) argument [all...] |