Home
last modified time | relevance | path

Searched refs:mStaggeredGrid (Results 1 – 2 of 2) sorted by relevance

/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
DStaggeredGridDefaultTest.java33 StaggeredGridDefault mStaggeredGrid; field in StaggeredGridDefaultTest
40 mStaggeredGrid = new StaggeredGridDefault(); in testWhenToFillNextRow()
41 mStaggeredGrid.setNumRows(3); in testWhenToFillNextRow()
42 mStaggeredGrid.setSpacing(20); in testWhenToFillNextRow()
43 mStaggeredGrid.setProvider(mProvider); in testWhenToFillNextRow()
44 mStaggeredGrid.appendVisibleItems(210); in testWhenToFillNextRow()
45 assertEquals(dump(mStaggeredGrid) + " Should fill 8 items", in testWhenToFillNextRow()
46 8, mStaggeredGrid.mLocations.size()); in testWhenToFillNextRow()
48 mStaggeredGrid.appendVisibleItems(100000); in testWhenToFillNextRow()
49 assertEquals(dump(mStaggeredGrid) + " Should fill 9 items", in testWhenToFillNextRow()
[all …]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DGridLayoutManager.java285 private final boolean mStaggeredGrid; field in GridLayoutManager.PendingMoveSmoothScroller
291 mStaggeredGrid = staggeredGrid; in PendingMoveSmoothScroller()
313 if (mStaggeredGrid || mPendingMoves == 0) { in consumePendingMovesBeforeLayout()
349 if (mStaggeredGrid && mPendingMoves != 0) { in consumePendingMovesAfterLayout()