/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) { 720 public ViewHolder getChildViewHolder(View view) { in initChildrenHelper() 727 final ViewHolder vh = getChildViewHolderInt(child); in initChildrenHelper() 745 final ViewHolder vh = getChildViewHolderInt(view); in initChildrenHelper() 754 vh.addFlags(ViewHolder.FLAG_TMP_DETACHED); in initChildrenHelper() 762 final ViewHolder vh = getChildViewHolderInt(child); in initChildrenHelper() [all …]
|
D | GapWorker.java | 254 RecyclerView.ViewHolder holder = RecyclerView.getChildViewHolderInt(attachedView); in isPrefetchPositionAttached() 263 private RecyclerView.ViewHolder prefetchPositionWithDeadline(RecyclerView view, in prefetchPositionWithDeadline() 271 RecyclerView.ViewHolder holder = recycler.tryGetViewHolderForPositionByDeadline( in prefetchPositionWithDeadline() 325 RecyclerView.ViewHolder holder = prefetchPositionWithDeadline(task.view, in flushTaskWithDeadline()
|
/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/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
|
D | SetupWizardRecyclerLayoutTest.java | 31 import androidx.recyclerview.widget.RecyclerView.ViewHolder; 161 public ViewHolder onCreateViewHolder(ViewGroup parent, int position) { in createTestAdapter() 162 return new ViewHolder(new View(parent.getContext())) {}; in createTestAdapter() 166 public void onBindViewHolder(ViewHolder viewHolder, int position) {} in createTestAdapter()
|
D | GlifRecyclerLayoutTest.java | 158 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int position) { in createTestAdapter() 159 return new RecyclerView.ViewHolder(new View(parent.getContext())) {}; in createTestAdapter() 163 public void onBindViewHolder(RecyclerView.ViewHolder viewHolder, int position) {} in createTestAdapter()
|
/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/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/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()
|
D | SetupWizardRecyclerLayout.java | 23 import androidx.recyclerview.widget.RecyclerView.ViewHolder; 78 public Adapter<? extends ViewHolder> getAdapter() { in getAdapter() 83 public void setAdapter(Adapter<? extends ViewHolder> adapter) { in setAdapter()
|
D | GlifRecyclerLayout.java | 25 import androidx.recyclerview.widget.RecyclerView.ViewHolder; 133 public void setAdapter(Adapter<? extends ViewHolder> adapter) { in setAdapter() 138 public Adapter<? extends ViewHolder> getAdapter() { in getAdapter()
|
/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/qs/customize/ |
D | TileAdapter.java | 41 import androidx.recyclerview.widget.RecyclerView.ViewHolder; 467 public class Holder extends ViewHolder { 539 final ViewHolder holder = parent.getChildViewHolder(child); in onDraw() 570 public void onSelectedChanged(ViewHolder viewHolder, int actionState) { 598 public boolean canDropOver(RecyclerView recyclerView, ViewHolder current, 599 ViewHolder target) { 611 public int getMovementFlags(RecyclerView recyclerView, ViewHolder viewHolder) { 626 public boolean onMove(RecyclerView recyclerView, ViewHolder viewHolder, ViewHolder target) { 637 public void onSwiped(ViewHolder viewHolder, int direction) {
|
/frameworks/base/core/java/android/accounts/ |
D | ChooseAccountTypeActivity.java | 166 private static class ViewHolder { class in ChooseAccountTypeActivity 185 ViewHolder holder; in getView() 189 holder = new ViewHolder(); in getView() 194 holder = (ViewHolder) convertView.getTag(); in getView()
|
D | ChooseAccountActivity.java | 187 private static class ViewHolder { class in ChooseAccountActivity 205 ViewHolder holder; in getView() 209 holder = new ViewHolder(); in getView() 214 holder = (ViewHolder) convertView.getTag(); in getView()
|