Home
last modified time | relevance | path

Searched refs:ViewHolder (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/widget/
DSimpleItemAnimator.java25 import com.android.internal.widget.RecyclerView.ViewHolder;
85 public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder viewHolder) { in canReuseUpdatedViewHolder()
90 public boolean animateDisappearance(@NonNull ViewHolder viewHolder, in animateDisappearance()
114 public boolean animateAppearance(@NonNull ViewHolder viewHolder, in animateAppearance()
133 public boolean animatePersistence(@NonNull ViewHolder viewHolder, in animatePersistence()
148 public boolean animateChange(@NonNull ViewHolder oldHolder, @NonNull ViewHolder newHolder, in animateChange()
189 public abstract boolean animateRemove(ViewHolder holder); in animateRemove()
214 public abstract boolean animateAdd(ViewHolder holder); in animateAdd()
234 public abstract boolean animateMove(ViewHolder holder, int fromX, int fromY, in animateMove()
267 public abstract boolean animateChange(ViewHolder oldHolder, in animateChange()
[all …]
DViewInfoStore.java26 import static com.android.internal.widget.RecyclerView.ViewHolder;
48 final ArrayMap<ViewHolder, InfoRecord> mLayoutHolderMap = new ArrayMap<>();
51 final LongSparseArray<ViewHolder> mOldChangedHolders = new LongSparseArray<>();
66 void addToPreLayout(ViewHolder holder, ItemHolderInfo info) { in addToPreLayout()
76 boolean isDisappearing(ViewHolder holder) { in isDisappearing()
88 ItemHolderInfo popFromPreLayout(ViewHolder vh) { in popFromPreLayout()
99 ItemHolderInfo popFromPostLayout(ViewHolder vh) { in popFromPostLayout()
103 private ItemHolderInfo popFromLayoutStep(ViewHolder vh, int flag) { in popFromLayoutStep()
134 void addToOldChangeHolders(long key, ViewHolder holder) { in addToOldChangeHolders()
147 void addToAppearedInPreLayoutHolders(ViewHolder holder, ItemHolderInfo info) { in addToAppearedInPreLayoutHolders()
[all …]
DDefaultItemAnimator.java27 import com.android.internal.widget.RecyclerView.ViewHolder;
44 private ArrayList<ViewHolder> mPendingRemovals = new ArrayList<>();
45 private ArrayList<ViewHolder> mPendingAdditions = new ArrayList<>();
49 ArrayList<ArrayList<ViewHolder>> mAdditionsList = new ArrayList<>();
53 ArrayList<ViewHolder> mAddAnimations = new ArrayList<>();
54 ArrayList<ViewHolder> mMoveAnimations = new ArrayList<>();
55 ArrayList<ViewHolder> mRemoveAnimations = new ArrayList<>();
56 ArrayList<ViewHolder> mChangeAnimations = new ArrayList<>();
59 public ViewHolder holder;
62 MoveInfo(ViewHolder holder, int fromX, int fromY, int toX, int toY) { in MoveInfo()
[all …]
DRecyclerView.java469 final List<ViewHolder> mPendingAccessibilityImportanceChange = new ArrayList();
495 public void processDisappeared(ViewHolder viewHolder, @NonNull ItemHolderInfo info,
501 public void processAppeared(ViewHolder viewHolder,
507 public void processPersistent(ViewHolder viewHolder,
522 public void unused(ViewHolder viewHolder) {
724 public ViewHolder getChildViewHolder(View view) { in initChildrenHelper()
731 final ViewHolder vh = getChildViewHolderInt(child); in initChildrenHelper()
749 final ViewHolder vh = getChildViewHolderInt(view); in initChildrenHelper()
758 vh.addFlags(ViewHolder.FLAG_TMP_DETACHED); in initChildrenHelper()
766 final ViewHolder vh = getChildViewHolderInt(child); in initChildrenHelper()
[all …]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/recyclerview/
DRvArrayAdapter.java24 public class RvArrayAdapter extends RecyclerView.Adapter<RvArrayAdapter.ViewHolder> {
28 public static class ViewHolder extends RecyclerView.ViewHolder { class in RvArrayAdapter
31 public ViewHolder(View v) { in ViewHolder() method in RvArrayAdapter.ViewHolder
46 public ViewHolder onCreateViewHolder(ViewGroup viewGroup, int viewType) { in onCreateViewHolder()
52 return new ViewHolder(v); in onCreateViewHolder()
56 public void onBindViewHolder(ViewHolder viewHolder, final int position) { in onBindViewHolder()
DRvBoxAdapter.java29 public class RvBoxAdapter extends RecyclerView.Adapter<RvBoxAdapter.ViewHolder> {
35 public static class ViewHolder extends RecyclerView.ViewHolder { class in RvBoxAdapter
38 public ViewHolder(TextView v) { in ViewHolder() method in RvBoxAdapter.ViewHolder
61 public RvBoxAdapter.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
62 final ViewHolder h = new ViewHolder(new TextView(parent.getContext())); in onCreateViewHolder()
79 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
/frameworks/base/core/java/android/widget/
DDayPickerPagerAdapter.java45 private final SparseArray<ViewHolder> mItems = new SparseArray<>();
113 final ViewHolder monthView = mItems.get(position, null); in getBoundsForDate()
133 final ViewHolder oldMonthView = mItems.get(oldPosition, null); in setSelectedDay()
141 final ViewHolder newMonthView = mItems.get(newPosition, null); in setSelectedDay()
200 final ViewHolder holder = (ViewHolder) object; in isViewFromObject()
276 final ViewHolder holder = new ViewHolder(position, itemView, v); in instantiateItem()
286 final ViewHolder holder = (ViewHolder) object; in destroyItem()
294 final ViewHolder holder = (ViewHolder) object; in getItemPosition()
311 final ViewHolder holder = (ViewHolder) object; in getView()
328 private static class ViewHolder { class in DayPickerPagerAdapter
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityTargetAdapter.java33 import com.android.systemui.accessibility.floatingmenu.AccessibilityTargetAdapter.ViewHolder;
42 public class AccessibilityTargetAdapter extends Adapter<ViewHolder> {
65 public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, @ItemType int itemType) { in onCreateViewHolder()
78 return new ViewHolder(root); in onCreateViewHolder()
82 public void onBindViewHolder(@NonNull ViewHolder holder, int position) { in onBindViewHolder()
127 static class ViewHolder extends RecyclerView.ViewHolder { class in AccessibilityTargetAdapter
130 ViewHolder(View itemView) { in ViewHolder() method in AccessibilityTargetAdapter.ViewHolder
150 static class TopViewHolder extends ViewHolder {
162 static class BottomViewHolder extends ViewHolder {
/frameworks/base/tests/UiBench/src/com/android/test/uibench/
DSlowNestedRecyclerViewActivity.java76 private class InnerAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
78 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
101 RecyclerView.ViewHolder holder = new RecyclerView.ViewHolder(view) {}; in onCreateViewHolder()
108 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { in onBindViewHolder()
117 private class OuterAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
131 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
136 return new RecyclerView.ViewHolder(view) {}; in onCreateViewHolder()
155 RecyclerView.ViewHolder holder = new RecyclerView.ViewHolder(rv) {}; in onCreateViewHolder()
163 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { in onBindViewHolder()
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java40 import com.android.internal.widget.RecyclerView.ViewHolder;
174 ViewHolder mSelected = null;
268 private List<ViewHolder> mSwapTargets;
361 ViewHolder viewHolder = mSelected;
546 void select(ViewHolder selected, int actionState) { in select()
567 final ViewHolder prevSelected = mSelected; in select()
765 private List<ViewHolder> findSwapTargets(ViewHolder viewHolder) { in findSwapTargets()
767 mSwapTargets = new ArrayList<ViewHolder>(); in findSwapTargets()
791 final ViewHolder otherVh = mRecyclerView.getChildViewHolder(other); in findSwapTargets()
817 void moveIfNecessary(ViewHolder viewHolder) { in moveIfNecessary()
[all …]
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DCardPresenter.java38 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder()
45 return new ViewHolder(v); in onCreateViewHolder()
49 public void onBindViewHolder(ViewHolder viewHolder, Object item) { in onBindViewHolder()
58 public void onUnbindViewHolder(ViewHolder viewHolder) { in onUnbindViewHolder()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DDividerItemDecorationTest.java160 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup viewGroup, int i) { in drawDecoration()
164 return ViewHolder.createInstance(itemView, allowDividerAbove, allowDividerBelow); in drawDecoration()
168 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int i) {} in drawDecoration()
194 private static class ViewHolder extends RecyclerView.ViewHolder class in DividerItemDecorationTest
200 public static ViewHolder createInstance( in createInstance()
202 return new ViewHolder(itemView, allowDividerAbove, allowDividerBelow); in createInstance()
205 private ViewHolder(View itemView, boolean allowDividerAbove, boolean allowDividerBelow) { in ViewHolder() method in DividerItemDecorationTest.ViewHolder
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/screenshot/
DRecyclerViewActivity.java50 static final class TestViewHolder extends RecyclerView.ViewHolder {
56 static final class TestAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
60 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
65 public void onBindViewHolder(RecyclerView.ViewHolder holder, int position) { in onBindViewHolder()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/template/
DRecyclerMixin.java29 import androidx.recyclerview.widget.RecyclerView.ViewHolder;
164 public Adapter<? extends ViewHolder> getAdapter() { in getAdapter()
166 final RecyclerView.Adapter<? extends ViewHolder> adapter = recyclerView.getAdapter(); in getAdapter()
168 return ((HeaderAdapter<? extends ViewHolder>) adapter).getWrappedAdapter(); in getAdapter()
174 public void setAdapter(Adapter<? extends ViewHolder> adapter) { in setAdapter()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DFavoritesModel.kt220 viewHolder: RecyclerView.ViewHolder, in onMove()
221 target: RecyclerView.ViewHolder in onMove()
229 viewHolder: RecyclerView.ViewHolder in getMovementFlags()
240 current: RecyclerView.ViewHolder, in canDropOver()
241 target: RecyclerView.ViewHolder in canDropOver()
246 override fun onSwiped(viewHolder: RecyclerView.ViewHolder, direction: Int) {} in onSwiped()
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
DTimeZoneFilterTypeAdapter.java49 static class ViewHolder { class in TimeZoneFilterTypeAdapter
56 ViewHolder vh = new ViewHolder(); in setupViewHolder()
118 ViewHolder.setupViewHolder(v); in getView()
121 ViewHolder vh = (ViewHolder) v.getTag(); in getView()
151 ViewHolder vh = (ViewHolder) v.getTag(); in onClick()
DTimeZoneResultAdapter.java64 static class ViewHolder { class in TimeZoneResultAdapter
70 ViewHolder vh = new ViewHolder(); in setupViewHolder()
278 ViewHolder.setupViewHolder(v); in getView()
281 ViewHolder vh = (ViewHolder) v.getTag(); in getView()
/frameworks/base/core/java/com/android/internal/accessibility/dialog/
DTargetOperations.java22 import com.android.internal.accessibility.dialog.TargetAdapter.ViewHolder;
31 void updateActionItem(@NonNull ViewHolder holder, in updateActionItem()
DShortcutTargetAdapter.java60 ViewHolder holder; in getView()
65 holder = new ViewHolder(); in getView()
75 holder = (ViewHolder) convertView.getTag(); in getView()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/
DDividerItemDecoration.java129 final RecyclerView.ViewHolder holder = parent.getChildViewHolder(view); in shouldDrawDividerBelow()
147 final RecyclerView.ViewHolder nextHolder = parent.findViewHolderForLayoutPosition(index + 1); in shouldDrawDividerBelow()
165 protected boolean isDividerAllowedAbove(RecyclerView.ViewHolder viewHolder) { in isDividerAllowedAbove()
179 protected boolean isDividerAllowedBelow(RecyclerView.ViewHolder viewHolder) { in isDividerAllowedBelow()
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/view/
DHeaderRecyclerView.java39 private static class HeaderViewHolder extends ViewHolder
62 public static class HeaderAdapter<CVH extends ViewHolder>
63 extends RecyclerView.Adapter<ViewHolder> {
122 public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder()
142 public void onBindViewHolder(ViewHolder holder, int position) { in onBindViewHolder()
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/
DUsageLogActivity.java123 final ViewHolder holder; in getView()
125 holder = new ViewHolder(); in getView()
139 holder = (ViewHolder) convertView.getTag(); in getView()
177 static class ViewHolder { class in UsageLogActivity
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tv/notifications/
DTvNotificationAdapter.java37 public class TvNotificationAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
54 public void onBindViewHolder(@NonNull RecyclerView.ViewHolder viewHolder, int position) { in onBindViewHolder()
86 private static class TvNotificationViewHolder extends RecyclerView.ViewHolder implements
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityTargetAdapterTest.java33 import com.android.systemui.accessibility.floatingmenu.AccessibilityTargetAdapter.ViewHolder;
57 private ViewHolder mViewHolder;
70 mViewHolder = new ViewHolder(rootView); in setUp()
/frameworks/base/core/tests/batterystatstests/BatteryStatsViewer/src/com/android/frameworks/core/batterystatsviewer/
DBatteryStatsViewerActivity.java237 RecyclerView.Adapter<BatteryStatsDataAdapter.ViewHolder> {
238 public static class ViewHolder extends RecyclerView.ViewHolder { class in BatteryStatsViewerActivity.BatteryStatsDataAdapter
244 ViewHolder(View itemView) { in ViewHolder() method in BatteryStatsViewerActivity.BatteryStatsDataAdapter.ViewHolder
268 public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int position) { in onCreateViewHolder()
272 return new ViewHolder(itemView); in onCreateViewHolder()
276 public void onBindViewHolder(@NonNull ViewHolder viewHolder, int position) { in onBindViewHolder()
349 private void setTitleIconAndBackground(ViewHolder viewHolder, String title, int icon, in setTitleIconAndBackground()

123