Home
last modified time | relevance | path

Searched refs:gridLayoutManager (Results 1 – 15 of 15) sorted by relevance

/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/
DAutoFitRecyclerViewTest.java41 final GridLayoutManager gridLayoutManager = new GridLayoutManager(context, in testMeasure_spanCountIsRounded() local
44 assertThat(gridLayoutManager.getSpanCount()).isEqualTo(defaultSpanCount); in testMeasure_spanCountIsRounded()
46 recyclerView.setLayoutManager(gridLayoutManager); in testMeasure_spanCountIsRounded()
52 assertThat(gridLayoutManager.getSpanCount()).isEqualTo(3); in testMeasure_spanCountIsRounded()
64 final GridLayoutManager gridLayoutManager = new GridLayoutManager(context, in testSetMinimumSpanCount_resultSmallerThanMinSpanCount() local
67 assertThat(gridLayoutManager.getSpanCount()).isEqualTo(defaultSpanCount); in testSetMinimumSpanCount_resultSmallerThanMinSpanCount()
69 recyclerView.setLayoutManager(gridLayoutManager); in testSetMinimumSpanCount_resultSmallerThanMinSpanCount()
77 assertThat(gridLayoutManager.getSpanCount()).isEqualTo(minSpanCount); in testSetMinimumSpanCount_resultSmallerThanMinSpanCount()
90 final GridLayoutManager gridLayoutManager = new GridLayoutManager(context, in testSetMinimumSpanCount_resultLargerThanMinSpanCount() local
93 assertThat(gridLayoutManager.getSpanCount()).isEqualTo(defaultSpanCount); in testSetMinimumSpanCount_resultLargerThanMinSpanCount()
[all …]
/packages/apps/Car/Launcher/libs/appgrid/lib/tests/src/com/android/car/carlauncher/
DAppGridPageSnapperTest.java101 GridLayoutManager gridLayoutManager = new GridLayoutManager(testableContext, mRowNo, in testScrollToNextPage()
103 rv.setLayoutManager(gridLayoutManager); in testScrollToNextPage()
149 GridLayoutManager gridLayoutManager = new GridLayoutManager(testableContext, in testSwipeRightAndStayOnCurrentPage()
153 rv.setLayoutManager(gridLayoutManager); in testSwipeRightAndStayOnCurrentPage()
199 GridLayoutManager gridLayoutManager = new GridLayoutManager(testableContext, in testScrollToPrevPage()
203 rv.setLayoutManager(gridLayoutManager); in testScrollToPrevPage()
273 GridLayoutManager gridLayoutManager = new GridLayoutManager(testableContext, mRowNo, in testScrollLeftAndStayOnCurrentPage()
275 rv.setLayoutManager(gridLayoutManager); in testScrollLeftAndStayOnCurrentPage()
333 GridLayoutManager gridLayoutManager = new GridLayoutManager(testableContext, mRowNo, in testOnFlingRight()
335 rv.setLayoutManager(gridLayoutManager); in testOnFlingRight()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/fragment/
DOtherFragment.java69 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView() local
70 gridLayoutManager.setSpanSizeLookup(otherAdapter.getSpanSizeLookup()); in onCreateView()
71 if (gridLayoutManager.getSpanCount() != SPAN_COUNT) { in onCreateView()
73 ", found a span count of " + gridLayoutManager.getSpanCount() + "."); in onCreateView()
DGenreFragment.java62 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView() local
63 gridLayoutManager.setSpanSizeLookup( in onCreateView()
64 new HeaderSpanSizeLookup(gridLayoutManager.getSpanCount())); in onCreateView()
DSeriesFragment.java64 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView() local
65 gridLayoutManager.setSpanSizeLookup( in onCreateView()
66 new HeaderSpanSizeLookup(gridLayoutManager.getSpanCount())); in onCreateView()
DMovieFragment.java65 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView() local
66 gridLayoutManager.setSpanSizeLookup( in onCreateView()
67 new HeaderSpanSizeLookup(gridLayoutManager.getSpanCount())); in onCreateView()
DAlbumFragment.java63 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView() local
64 gridLayoutManager.setSpanSizeLookup( in onCreateView()
65 new HeaderSpanSizeLookup(gridLayoutManager.getSpanCount())); in onCreateView()
DArtistFragment.java64 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView() local
65 gridLayoutManager.setSpanSizeLookup( in onCreateView()
66 new HeaderSpanSizeLookup(gridLayoutManager.getSpanCount())); in onCreateView()
DPlaylistFragment.java70 GridLayoutManager gridLayoutManager = (GridLayoutManager) mRecyclerView.getLayoutManager(); in onCreateView() local
71 gridLayoutManager.setSpanSizeLookup( in onCreateView()
72 new HeaderSpanSizeLookup(gridLayoutManager.getSpanCount())); in onCreateView()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/category/ui/binder/
DSectionsBinder.kt40 val gridLayoutManager = in <lambda>() constant
49 sectionsListView.layoutManager = gridLayoutManager in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/widget/
DGridPaddingDecorationCreativeCategory.java113 GridLayoutManager gridLayoutManager = (GridLayoutManager) layoutManager; in getSpanCount() local
114 return gridLayoutManager.getSpanCount(); in getSpanCount()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/
DContextualCardsAdapter.java103 final GridLayoutManager gridLayoutManager = (GridLayoutManager) layoutManager; in onAttachedToRecyclerView() local
104 gridLayoutManager.setSpanSizeLookup(new GridLayoutManager.SpanSizeLookup() { in onAttachedToRecyclerView()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/individual/
DIndividualPickerFragment2.kt445 val gridLayoutManager = imageGrid.layoutManager as GridLayoutManager? in <lambda>() constant
446 val needUpdateLayout = gridLayoutManager?.spanCount != getNumColumns() in <lambda>()
545 val gridLayoutManager = GridLayoutManager(activity, getNumColumns()) in <lambda>() constant
546 gridLayoutManager.spanSizeLookup = in <lambda>()
553 is PickerItem.HeaderItem -> gridLayoutManager.spanCount in <lambda>()
561 imageGrid.layoutManager = gridLayoutManager in <lambda>()
DIndividualPickerFragment.java365 GridLayoutManager gridLayoutManager = (GridLayoutManager) mImageGrid.getLayoutManager(); in maybeSetUpImageGrid() local
367 gridLayoutManager != null && gridLayoutManager.getSpanCount() != getNumColumns(); in maybeSetUpImageGrid()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/
DCategorySelectorFragment.java167 GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(), in onCreateView() local
170 gridLayoutManager.setSpanSizeLookup(new in onCreateView()
172 mImageGrid.setLayoutManager(gridLayoutManager); in onCreateView()
177 GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(), in onCreateView() local
179 gridLayoutManager.setSpanSizeLookup(new CategorySpanSizeLookup(mAdapter)); in onCreateView()
180 mImageGrid.setLayoutManager(gridLayoutManager); in onCreateView()