Home
last modified time | relevance | path

Searched refs:scrapHeap (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/widget/
DAbsSpinner.java477 final SparseArray<View> scrapHeap = mScrapHeap; in clear() local
478 final int count = scrapHeap.size(); in clear()
480 final View view = scrapHeap.valueAt(i); in clear()
485 scrapHeap.clear(); in clear()
/frameworks/base/core/java/com/android/internal/widget/
DRecyclerView.java4975 final ArrayList<ViewHolder> scrapHeap = scrapData.mScrapHeap; in setMaxRecycledViews() local
4976 if (scrapHeap != null) { in setMaxRecycledViews()
4977 while (scrapHeap.size() > max) { in setMaxRecycledViews()
4978 scrapHeap.remove(scrapHeap.size() - 1); in setMaxRecycledViews()
4993 final ArrayList<ViewHolder> scrapHeap = scrapData.mScrapHeap; in getRecycledView() local
4994 return scrapHeap.remove(scrapHeap.size() - 1); in getRecycledView()
5012 final ArrayList scrapHeap = getScrapDataForType(viewType).mScrapHeap; in putRecycledView() local
5013 if (mScrap.get(viewType).mMaxScrap <= scrapHeap.size()) { in putRecycledView()
5016 if (DEBUG && scrapHeap.contains(scrap)) { in putRecycledView()
5020 scrapHeap.add(scrap); in putRecycledView()
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
DRecyclerView.java5380 final ArrayList<ViewHolder> scrapHeap = scrapData.mScrapHeap; in setMaxRecycledViews() local
5381 while (scrapHeap.size() > max) { in setMaxRecycledViews()
5382 scrapHeap.remove(scrapHeap.size() - 1); in setMaxRecycledViews()
5405 final ArrayList<ViewHolder> scrapHeap = scrapData.mScrapHeap; in getRecycledView() local
5406 return scrapHeap.remove(scrapHeap.size() - 1); in getRecycledView()
5436 final ArrayList<ViewHolder> scrapHeap = getScrapDataForType(viewType).mScrapHeap; in putRecycledView() local
5437 if (mScrap.get(viewType).mMaxScrap <= scrapHeap.size()) { in putRecycledView()
5440 if (DEBUG && scrapHeap.contains(scrap)) { in putRecycledView()
5444 scrapHeap.add(scrap); in putRecycledView()