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.java310 assertEquals("reference child non existent", -1, ssl.findReferenceIndexFromCache(2)); in testSpanLookupCache()
312 assertEquals("reference child non existent", -1, ssl.findReferenceIndexFromCache(3)); in testSpanLookupCache()
314 assertEquals("reference child itself", -1, ssl.findReferenceIndexFromCache(4)); in testSpanLookupCache()
315 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(5)); in testSpanLookupCache()
316 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(100)); in testSpanLookupCache()
318 assertEquals("reference child before", 6, ssl.findReferenceIndexFromCache(7)); in testSpanLookupCache()
319 assertEquals("reference child before", 4, ssl.findReferenceIndexFromCache(6)); in testSpanLookupCache()
320 assertEquals("reference child itself", -1, ssl.findReferenceIndexFromCache(4)); in testSpanLookupCache()
322 assertEquals("reference child before", 12, ssl.findReferenceIndexFromCache(13)); in testSpanLookupCache()
323 assertEquals("reference child before", 6, ssl.findReferenceIndexFromCache(12)); in testSpanLookupCache()
[all …]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
DGridLayoutManager.java658 int prevKey = findReferenceIndexFromCache(position); in getSpanIndex()
680 int findReferenceIndexFromCache(int position) { in findReferenceIndexFromCache() method in GridLayoutManager.SpanSizeLookup