/frameworks/base/core/java/com/android/internal/widget/ |
D | SimpleItemAnimator.java | 25 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 …]
|
D | ViewInfoStore.java | 26 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 …]
|
D | DefaultItemAnimator.java | 27 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 …]
|
D | RecyclerView.java | 469 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/ |
D | RvArrayAdapter.java | 24 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()
|
D | RvBoxAdapter.java | 29 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/ |
D | DayPickerPagerAdapter.java | 45 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/ |
D | AccessibilityTargetAdapter.java | 33 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/ |
D | SlowNestedRecyclerViewActivity.java | 76 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/ |
D | ItemTouchHelper.java | 40 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/ |
D | CardPresenter.java | 38 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/ |
D | DividerItemDecorationTest.java | 160 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/ |
D | RecyclerViewActivity.java | 50 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/ |
D | RecyclerMixin.java | 29 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/ |
D | FavoritesModel.kt | 220 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/ |
D | TimeZoneFilterTypeAdapter.java | 49 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()
|
D | TimeZoneResultAdapter.java | 64 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/ |
D | TargetOperations.java | 22 import com.android.internal.accessibility.dialog.TargetAdapter.ViewHolder; 31 void updateActionItem(@NonNull ViewHolder holder, in updateActionItem()
|
D | ShortcutTargetAdapter.java | 60 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/ |
D | DividerItemDecoration.java | 129 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/ |
D | HeaderRecyclerView.java | 39 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/ |
D | UsageLogActivity.java | 123 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/ |
D | TvNotificationAdapter.java | 37 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/ |
D | AccessibilityTargetAdapterTest.java | 33 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/ |
D | BatteryStatsViewerActivity.java | 237 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()
|