Home
last modified time | relevance | path

Searched refs:mViewCacheMax (Results 1 – 4 of 4) sorted by relevance

/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
DRecyclerViewBasicTest.java423 assertEquals(RecyclerView.Recycler.DEFAULT_CACHE_SIZE, recycler.mViewCacheMax); in prefetchChangesCacheSize()
425 assertEquals(RecyclerView.Recycler.DEFAULT_CACHE_SIZE, recycler.mViewCacheMax); in prefetchChangesCacheSize()
435 assertEquals(RecyclerView.Recycler.DEFAULT_CACHE_SIZE + 3, recycler.mViewCacheMax); in prefetchChangesCacheSize()
439 assertEquals(RecyclerView.Recycler.DEFAULT_CACHE_SIZE, recycler.mViewCacheMax); in prefetchChangesCacheSize()
443 assertEquals(RecyclerView.Recycler.DEFAULT_CACHE_SIZE + 3, recycler.mViewCacheMax); in prefetchChangesCacheSize()
DRecyclerViewCacheTest.java200 assertEquals(2, mRecyclerView.mRecycler.mViewCacheMax); in prefetchItemsNotEvictedWithInserts()
203 assertEquals(5, mRecyclerView.mRecycler.mViewCacheMax); in prefetchItemsNotEvictedWithInserts()
1108 assertEquals(2 + DEFAULT_CACHE_SIZE, innerView.mRecycler.mViewCacheMax); in nestedExpandCacheCorrectly()
1123 assertEquals(DEFAULT_CACHE_SIZE, innerView.mRecycler.mViewCacheMax); in nestedExpandCacheCorrectly()
1130 assertEquals(1 + DEFAULT_CACHE_SIZE, innerView.mRecycler.mViewCacheMax); in nestedExpandCacheCorrectly()
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java5177 int mViewCacheMax = DEFAULT_CACHE_SIZE; field in RecyclerView.Recycler
5206 mViewCacheMax = mRequestedCacheMax + extraCache; in updateViewCacheSize()
5210 i >= 0 && mCachedViews.size() > mViewCacheMax; i--) { in updateViewCacheSize()
5706 if (mViewCacheMax > 0 in recycleViewHolderInternal()
5713 if (cachedViewSize >= mViewCacheMax && cachedViewSize > 0) { in recycleViewHolderInternal()
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DRecyclerView.java5601 int mViewCacheMax = DEFAULT_CACHE_SIZE; field in RecyclerView.Recycler
5630 mViewCacheMax = mRequestedCacheMax + extraCache; in updateViewCacheSize()
5634 i >= 0 && mCachedViews.size() > mViewCacheMax; i--) { in updateViewCacheSize()
6140 if (mViewCacheMax > 0 in recycleViewHolderInternal()
6147 if (cachedViewSize >= mViewCacheMax && cachedViewSize > 0) { in recycleViewHolderInternal()