Home
last modified time | relevance | path

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

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DGridLayoutManagerTest.java856 assertEquals("reference child non existent", -1, ssl.findReferenceIndexFromCache(2)); in spanLookupCache()
858 assertEquals("reference child non existent", -1, ssl.findReferenceIndexFromCache(3)); in spanLookupCache()
860 assertEquals("reference child itself", -1, ssl.findReferenceIndexFromCache(4)); in spanLookupCache()
861 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(5)); in spanLookupCache()
862 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(100)); in spanLookupCache()
864 assertEquals("reference child before", 6, ssl.findReferenceIndexFromCache(7)); in spanLookupCache()
865 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(6)); in spanLookupCache()
866 assertEquals("reference child itself", -1, ssl.findReferenceIndexFromCache(4)); in spanLookupCache()
868 assertEquals("reference child before", 12, ssl.findReferenceIndexFromCache(13)); in spanLookupCache()
869 assertEquals("reference child before", 6, ssl.findReferenceIndexFromCache(12)); in spanLookupCache()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGridLayoutManager.java916 int prevKey = findReferenceIndexFromCache(position); in getSpanIndex()
938 int findReferenceIndexFromCache(int position) { in findReferenceIndexFromCache() method in GridLayoutManager.SpanSizeLookup