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.java489 assertEquals("reference child non existent", -1, ssl.findReferenceIndexFromCache(2)); in spanLookupCache()
491 assertEquals("reference child non existent", -1, ssl.findReferenceIndexFromCache(3)); in spanLookupCache()
493 assertEquals("reference child itself", -1, ssl.findReferenceIndexFromCache(4)); in spanLookupCache()
494 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(5)); in spanLookupCache()
495 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(100)); in spanLookupCache()
497 assertEquals("reference child before", 6, ssl.findReferenceIndexFromCache(7)); in spanLookupCache()
498 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(6)); in spanLookupCache()
499 assertEquals("reference child itself", -1, ssl.findReferenceIndexFromCache(4)); in spanLookupCache()
501 assertEquals("reference child before", 12, ssl.findReferenceIndexFromCache(13)); in spanLookupCache()
502 assertEquals("reference child before", 6, ssl.findReferenceIndexFromCache(12)); in spanLookupCache()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGridLayoutManager.java903 int prevKey = findReferenceIndexFromCache(position); in getSpanIndex()
925 int findReferenceIndexFromCache(int position) { in findReferenceIndexFromCache() method in GridLayoutManager.SpanSizeLookup