Home
last modified time | relevance | path

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

/frameworks/support/v17/tests/src/android/support/v17/leanback/widget/
DStaggeredGridDefaultTest.java24 StaggeredGridDefault mStaggeredGrid; field in StaggeredGridDefaultTest
30 mStaggeredGrid = new StaggeredGridDefault(); in testWhenToFillNextRow()
31 mStaggeredGrid.setNumRows(3); in testWhenToFillNextRow()
32 mStaggeredGrid.setMargin(20); in testWhenToFillNextRow()
33 mStaggeredGrid.setProvider(mProvider); in testWhenToFillNextRow()
34 mStaggeredGrid.appendVisibleItems(210); in testWhenToFillNextRow()
35 assertEquals(dump(mStaggeredGrid) + " Should fill 8 items", in testWhenToFillNextRow()
36 8, mStaggeredGrid.mLocations.size()); in testWhenToFillNextRow()
38 mStaggeredGrid.appendVisibleItems(100000); in testWhenToFillNextRow()
39 assertEquals(dump(mStaggeredGrid) + " Should fill 9 items", in testWhenToFillNextRow()
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGridLayoutManager.java241 private final boolean mStaggeredGrid; field in GridLayoutManager.PendingMoveSmoothScroller
247 mStaggeredGrid = staggeredGrid; in PendingMoveSmoothScroller()
269 if (mStaggeredGrid || mPendingMoves == 0) { in consumePendingMovesBeforeLayout()
305 if (mStaggeredGrid && mPendingMoves != 0) { in consumePendingMovesAfterLayout()