Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DGridLayoutManagerTest.java857 ssl.getCachedSpanIndex(4, 5); in spanLookupCache()
863 ssl.getCachedSpanIndex(6, 5); in spanLookupCache()
867 ssl.getCachedSpanIndex(12, 5); in spanLookupCache()
872 ssl.getCachedSpanIndex(i, 5); in spanLookupCache()
897 assertEquals(0, ssl.getCachedSpanIndex(0, 5)); in spanLookupTest()
898 assertEquals(4, ssl.getCachedSpanIndex(4, 5)); in spanLookupTest()
899 assertEquals(0, ssl.getCachedSpanIndex(5, 5)); in spanLookupTest()
900 assertEquals(1, ssl.getCachedSpanIndex(6, 5)); in spanLookupTest()
901 assertEquals(2, ssl.getCachedSpanIndex(7, 5)); in spanLookupTest()
902 assertEquals(2, ssl.getCachedSpanIndex(9, 5)); in spanLookupTest()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGridLayoutManager.java467 return mSpanSizeLookup.getCachedSpanIndex(pos, mSpanCount); in getSpanIndex()
483 return mSpanSizeLookup.getCachedSpanIndex(adapterPosition, mSpanCount); in getSpanIndex()
871 int getCachedSpanIndex(int position, int spanCount) { in getCachedSpanIndex() method in GridLayoutManager.SpanSizeLookup