Searched refs:mSpanIndexCache (Results 1 – 2 of 2) sorted by relevance
831 final SparseIntArray mSpanIndexCache = new SparseIntArray(); field in GridLayoutManager.SpanSizeLookup859 mSpanIndexCache.clear(); in invalidateSpanIndexCache()875 final int existing = mSpanIndexCache.get(position, -1); in getCachedSpanIndex()880 mSpanIndexCache.put(position, value); in getCachedSpanIndex()915 if (mCacheSpanIndices && mSpanIndexCache.size() > 0) { in getSpanIndex()918 span = mSpanIndexCache.get(prevKey) + getSpanSize(prevKey); in getSpanIndex()940 int hi = mSpanIndexCache.size() - 1; in findReferenceIndexFromCache()944 final int midVal = mSpanIndexCache.keyAt(mid); in findReferenceIndexFromCache()952 if (index >= 0 && index < mSpanIndexCache.size()) { in findReferenceIndexFromCache()953 return mSpanIndexCache.keyAt(index); in findReferenceIndexFromCache()
1056 assertTrue("some positions should be cached", ssl.mSpanIndexCache.size() > 0); in notifyDataSetChange()1061 assertEquals("cache should be empty", 0, ssl.mSpanIndexCache.size()); in notifyDataSetChange()1068 assertTrue("some items should be cached", ssl.mSpanIndexCache.size() > 0); in notifyDataSetChange()1158 assertTrue("cache should be filled", mGlm.mSpanSizeLookup.mSpanIndexCache.size() > 0); in cacheSpanIndices()