Searched refs:mCachedViews (Results 1 - 13 of 13) sorted by relevance

/frameworks/support/preference/src/main/java/androidx/preference/
H A DPreferenceViewHolder.java32 private final SparseArray<View> mCachedViews = new SparseArray<>(4); field in class:PreferenceViewHolder
40 mCachedViews.put(android.R.id.title, itemView.findViewById(android.R.id.title));
41 mCachedViews.put(android.R.id.summary, itemView.findViewById(android.R.id.summary));
42 mCachedViews.put(android.R.id.icon, itemView.findViewById(android.R.id.icon));
43 mCachedViews.put(R.id.icon_frame, itemView.findViewById(R.id.icon_frame));
44 mCachedViews.put(AndroidResources.ANDROID_R_ICON_FRAME,
62 final View cachedView = mCachedViews.get(id);
68 mCachedViews.put(id, v);
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DCacheUtils.java42 for (int i = 0; i < view.mRecycler.mCachedViews.size(); i++) {
43 if (view.mRecycler.mCachedViews.get(i).mPosition == position) return;
68 assertEquals(positions.length, view.mRecycler.mCachedViews.size());
76 for (int i = 0; i < view.mRecycler.mCachedViews.size(); i++) {
78 (int) position, view.mRecycler.mCachedViews.get(i).mPosition);
84 for (int i = 0; i < view.mRecycler.mCachedViews.size(); i++) {
85 RecyclerView.ViewHolder holder = view.mRecycler.mCachedViews.get(i);
H A DRecyclerViewCacheTest.java163 assertTrue(mRecycler.mCachedViews.isEmpty());
174 assertTrue(mRecycler.mCachedViews.size() == 3);
255 assertTrue(mRecycler.mCachedViews.isEmpty());
263 assertTrue(mRecycler.mCachedViews.size() == 3);
270 assertTrue(mRecycler.mCachedViews.size() == 5);
442 assertTrue(mRecycler.mCachedViews.size() == 0);
453 assertTrue(mRecycler.mCachedViews.size() == 1);
463 assertTrue(mRecycler.mCachedViews.size() == 3);
507 assertTrue(mRecycler.mCachedViews.size() == 0);
518 assertTrue(mRecycler.mCachedViews
[all...]
H A DRecyclerViewPrefetchTest.java78 return mRecyclerView.mRecycler.mCachedViews;
H A DGridLayoutManagerCacheTest.java66 return mRecyclerView.mRecycler.mCachedViews;
H A DLinearLayoutManagerCacheTest.java65 return mRecyclerView.mRecycler.mCachedViews;
H A DStaggeredGridLayoutManagerCacheTest.java67 return mRecyclerView.mRecycler.mCachedViews;
H A DRecyclerViewLayoutTest.java150 assertThat("test sanity", rv.mRecycler.mCachedViews.size(), is(1));
161 assertThat("test sanity", rv.mRecycler.mCachedViews.size(), is(0));
512 if (mRecyclerView.mRecycler.mCachedViews.contains(holder)) {
554 mRecyclerView.mRecycler.mCachedViews.size(),
564 mRecyclerView.mRecycler.mCachedViews.size(),
645 assertThat(mRecyclerView.mRecycler.mCachedViews.size(), is(0));
653 assertThat(mRecyclerView.mRecycler.mCachedViews.size(), is(5));
3580 for (RecyclerView.ViewHolder vh : mRecyclerView.mRecycler.mCachedViews) {
3654 assertEquals("a view should be cached", 1, mRecyclerView.mRecycler.mCachedViews.size());
4139 .mCachedViews
[all...]
H A DRecyclerViewBasicTest.java234 mRecyclerView.mRecycler.mCachedViews.add(mvh);
257 mRecyclerView.mRecycler.mCachedViews.add(mvh);
H A DRecyclerViewAnimationsTest.java172 MatcherAssert.assertThat(mRecyclerView.mRecycler.mCachedViews.contains(vh),
178 MatcherAssert.assertThat(mRecyclerView.mRecycler.mCachedViews.contains(updatedVH[0]),
1103 mRecyclerView.getChildCount() + mRecyclerView.mRecycler.mCachedViews.size());
H A DLinearLayoutManagerTest.java1176 mRecyclerView.getChildCount() + mRecyclerView.mRecycler.mCachedViews.size());
1196 mRecyclerView.getChildCount() + mRecyclerView.mRecycler.mCachedViews.size());
/frameworks/base/core/java/com/android/internal/widget/
H A DRecyclerView.java5171 final ArrayList<ViewHolder> mCachedViews = new ArrayList<ViewHolder>(); field in class:RecyclerView.Recycler
5209 for (int i = mCachedViews.size() - 1;
5210 i >= 0 && mCachedViews.size() > mViewCacheMax; i--) {
5638 final int count = mCachedViews.size();
5642 mCachedViews.clear();
5663 ViewHolder viewHolder = mCachedViews.get(cachedViewIndex);
5668 mCachedViews.remove(cachedViewIndex);
5701 if (DEBUG && mCachedViews.contains(holder)) {
5712 int cachedViewSize = mCachedViews.size();
5725 int cachedPos = mCachedViews
[all...]
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DRecyclerView.java5595 final ArrayList<ViewHolder> mCachedViews = new ArrayList<ViewHolder>(); field in class:RecyclerView.Recycler
5633 for (int i = mCachedViews.size() - 1;
5634 i >= 0 && mCachedViews.size() > mViewCacheMax; i--) {
6070 final int count = mCachedViews.size();
6074 mCachedViews.clear();
6095 ViewHolder viewHolder = mCachedViews.get(cachedViewIndex);
6100 mCachedViews.remove(cachedViewIndex);
6135 if (DEBUG && mCachedViews.contains(holder)) {
6146 int cachedViewSize = mCachedViews.size();
6159 int cachedPos = mCachedViews
[all...]

Completed in 147 milliseconds