/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | DefaultItemAnimatorTest.java | 45 List<RecyclerView.ViewHolder> mExpectedItems = new ArrayList<RecyclerView.ViewHolder>(); 47 Set<RecyclerView.ViewHolder> mRemoveFinished = new HashSet<RecyclerView.ViewHolder>(); 48 Set<RecyclerView.ViewHolder> mAddFinished = new HashSet<RecyclerView.ViewHolder>(); 49 Set<RecyclerView.ViewHolder> mMoveFinished = new HashSet<RecyclerView.ViewHolder>(); 50 Set<RecyclerView.ViewHolder> mChangeFinished = new HashSet<RecyclerView.ViewHolder>(); 66 public void onRemoveFinished(RecyclerView.ViewHolder item) { in setUp() 76 public void onAddFinished(RecyclerView.ViewHolder item) { in setUp() 86 public void onMoveFinished(RecyclerView.ViewHolder item) { in setUp() 96 public void onChangeFinished(RecyclerView.ViewHolder item) { in setUp() 105 private void onFinished(RecyclerView.ViewHolder item) { in setUp() [all …]
|
D | RecyclerViewAnimationsTest.java | 140 final List<RecyclerView.ViewHolder> mRecycledViews in testAddRemoveSamePass() 141 = new ArrayList<RecyclerView.ViewHolder>(); in testAddRemoveSamePass() 152 final ArrayList<RecyclerView.ViewHolder> addVH in testAddRemoveSamePass() 153 = new ArrayList<RecyclerView.ViewHolder>(); in testAddRemoveSamePass() 154 final ArrayList<RecyclerView.ViewHolder> removeVH in testAddRemoveSamePass() 155 = new ArrayList<RecyclerView.ViewHolder>(); in testAddRemoveSamePass() 157 final ArrayList<RecyclerView.ViewHolder> moveVH in testAddRemoveSamePass() 158 = new ArrayList<RecyclerView.ViewHolder>(); in testAddRemoveSamePass() 163 public boolean animateAdd(RecyclerView.ViewHolder holder) { in testAddRemoveSamePass() 169 public boolean animateRemove(RecyclerView.ViewHolder holder) { in testAddRemoveSamePass() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | RowPresenter.java | 75 static class ContainerViewHolder extends Presenter.ViewHolder { 79 final ViewHolder mRowViewHolder; 81 public ContainerViewHolder(RowContainerView containerView, ViewHolder rowViewHolder) { in ContainerViewHolder() 95 public static class ViewHolder extends Presenter.ViewHolder { class in RowPresenter 97 RowHeaderPresenter.ViewHolder mHeaderViewHolder; 110 public ViewHolder(View view) { in ViewHolder() method in RowPresenter.ViewHolder 150 public final RowHeaderPresenter.ViewHolder getHeaderViewHolder() { in getHeaderViewHolder() 164 public final Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 165 ViewHolder vh = createRowViewHolder(parent); in onCreateViewHolder() 167 Presenter.ViewHolder result; in onCreateViewHolder() [all …]
|
D | ListRowPresenter.java | 20 import android.support.v17.leanback.widget.RowPresenter.ViewHolder; 55 public static class ViewHolder extends RowPresenter.ViewHolder { class in ListRowPresenter 65 public ViewHolder(View rootView, HorizontalGridView gridView, ListRowPresenter p) { in ViewHolder() method in ListRowPresenter.ViewHolder 184 protected void initializeRowViewHolder(RowPresenter.ViewHolder holder) { in initializeRowViewHolder() 186 final ViewHolder rowViewHolder = (ViewHolder) holder; in initializeRowViewHolder() 207 public void onBind(final ItemBridgeAdapter.ViewHolder viewHolder) { in initializeRowViewHolder() 213 ItemBridgeAdapter.ViewHolder ibh = (ItemBridgeAdapter.ViewHolder) in initializeRowViewHolder() 230 public void onUnbind(ItemBridgeAdapter.ViewHolder viewHolder) { in initializeRowViewHolder() 237 public void onAttachedToWindow(ItemBridgeAdapter.ViewHolder viewHolder) { in initializeRowViewHolder() 289 private void selectChildView(ViewHolder rowViewHolder, View view) { in selectChildView() [all …]
|
D | ItemBridgeAdapter.java | 37 public void onCreate(ViewHolder viewHolder) { in onCreate() 39 public void onBind(ViewHolder viewHolder) { in onBind() 41 public void onUnbind(ViewHolder viewHolder) { in onUnbind() 43 public void onAttachedToWindow(ViewHolder viewHolder) { in onAttachedToWindow() 45 public void onDetachedFromWindow(ViewHolder viewHolder) { in onDetachedFromWindow() 84 public class ViewHolder extends RecyclerView.ViewHolder { class in ItemBridgeAdapter 86 final Presenter.ViewHolder mHolder; 101 public final Presenter.ViewHolder getViewHolder() { in getViewHolder() 130 ViewHolder(Presenter presenter, View view, Presenter.ViewHolder holder) { in ViewHolder() method in ItemBridgeAdapter.ViewHolder 237 public RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) { in onCreateViewHolder() [all …]
|
D | VerticalGridPresenter.java | 31 public static class ViewHolder extends Presenter.ViewHolder { class in VerticalGridPresenter 36 public ViewHolder(VerticalGridView view) { in ViewHolder() method in VerticalGridPresenter.ViewHolder 138 public final ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 139 ViewHolder vh = createGridViewHolder(parent); in onCreateViewHolder() 151 protected ViewHolder createGridViewHolder(ViewGroup parent) { in createGridViewHolder() 154 return new ViewHolder((VerticalGridView) root.findViewById(R.id.browse_grid)); in createGridViewHolder() 179 protected void initializeGridViewHolder(ViewHolder vh) { in initializeGridViewHolder() 196 final ViewHolder gridViewHolder = vh; in initializeGridViewHolder() 206 public void onBind(final ItemBridgeAdapter.ViewHolder itemViewHolder) { in initializeGridViewHolder() 229 public void onUnbind(ItemBridgeAdapter.ViewHolder viewHolder) { in initializeGridViewHolder() [all …]
|
D | RowHeaderPresenter.java | 44 public static class ViewHolder extends Presenter.ViewHolder { class in RowHeaderPresenter 49 public ViewHolder(View view) { in ViewHolder() method in RowHeaderPresenter.ViewHolder 58 public Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 62 ViewHolder viewHolder = new ViewHolder(headerView); in onCreateViewHolder() 70 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 71 setSelectLevel((ViewHolder) viewHolder, 0); in onBindViewHolder() 83 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() 86 public final void setSelectLevel(ViewHolder holder, float selectLevel) { in setSelectLevel() 91 protected void onSelectLevelChanged(ViewHolder holder) { in onSelectLevelChanged() 100 public int getSpaceUnderBaseline(ViewHolder holder) { in getSpaceUnderBaseline()
|
D | DetailsOverviewRowPresenter.java | 71 public final class ViewHolder extends RowPresenter.ViewHolder { class in DetailsOverviewRowPresenter 78 public final Presenter.ViewHolder mDetailsDescriptionViewHolder; 116 ItemBridgeAdapter.ViewHolder ibvh = (ItemBridgeAdapter.ViewHolder) (view != null ? in dispatchItemSelection() 125 ViewHolder.this, getRow()); in dispatchItemSelection() 133 ViewHolder.this, getRow()); in dispatchItemSelection() 142 public void onBind(final ItemBridgeAdapter.ViewHolder ibvh) { 151 ibvh.getItem(), ViewHolder.this, getRow()); 161 public void onUnbind(final ItemBridgeAdapter.ViewHolder ibvh) { 168 public void onAttachedToWindow(ItemBridgeAdapter.ViewHolder viewHolder) { 174 public void onDetachedFromWindow(ItemBridgeAdapter.ViewHolder viewHolder) { [all …]
|
D | PlaybackControlsRowPresenter.java | 38 ViewHolder mRowViewHolder; 44 public class ViewHolder extends RowPresenter.ViewHolder { class in PlaybackControlsRowPresenter 45 public final Presenter.ViewHolder mDescriptionViewHolder; 57 PlaybackControlsPresenter.ViewHolder mControlsVh; 58 Presenter.ViewHolder mSecondaryControlsVh; 61 Presenter.ViewHolder mSelectedViewHolder; 75 ViewHolder(View rootView, Presenter descriptionPresenter) { in ViewHolder() method in PlaybackControlsRowPresenter.ViewHolder 102 ViewHolder.this, getRow()); in dispatchItemSelection() 110 ViewHolder.this, getRow()); in dispatchItemSelection() 162 public void onControlSelected(Presenter.ViewHolder itemViewHolder, Object item, [all …]
|
D | Presenter.java | 61 public static class ViewHolder { class in Presenter 64 public ViewHolder(View view) { in ViewHolder() method in Presenter.ViewHolder 72 public abstract ViewHolder onCreateViewHolder(ViewGroup parent); in onCreateViewHolder() 77 public abstract void onBindViewHolder(ViewHolder viewHolder, Object item); in onBindViewHolder() 84 public abstract void onUnbindViewHolder(ViewHolder viewHolder); in onUnbindViewHolder() 96 public void onViewAttachedToWindow(ViewHolder holder) { in onViewAttachedToWindow() 111 public void onViewDetachedFromWindow(ViewHolder holder) { in onViewDetachedFromWindow() 141 public void setOnClickListener(ViewHolder holder, View.OnClickListener listener) { in setOnClickListener()
|
D | PlaybackControlsPresenter.java | 51 class ViewHolder extends ControlBarPresenter.ViewHolder { class in PlaybackControlsPresenter 55 Presenter.ViewHolder mMoreActionsViewHolder; 66 ViewHolder(View rootView) { in ViewHolder() method in PlaybackControlsPresenter.ViewHolder 228 public void setProgressColor(ViewHolder vh, int color) { in setProgressColor() 235 public void setTotalTime(ViewHolder vh, int ms) { in setTotalTime() 239 public int getTotalTime(ViewHolder vh) { in getTotalTime() 243 public void setCurrentTime(ViewHolder vh, int ms) { in setCurrentTime() 247 public int getCurrentTime(ViewHolder vh) { in getCurrentTime() 251 public void setSecondaryProgress(ViewHolder vh, int progressMs) { in setSecondaryProgress() 255 public int getSecondaryProgress(ViewHolder vh) { in getSecondaryProgress() [all …]
|
D | ControlBarPresenter.java | 54 void onControlSelected(Presenter.ViewHolder controlViewHolder, Object item, in onControlSelected() 62 void onControlClicked(Presenter.ViewHolder controlViewHolder, Object item, in onControlClicked() 66 class ViewHolder extends Presenter.ViewHolder { class in ControlBarPresenter 71 SparseArray<Presenter.ViewHolder> mViewHolders = 72 new SparseArray<Presenter.ViewHolder>(); 78 ViewHolder(View rootView) { in ViewHolder() method in ControlBarPresenter.ViewHolder 149 Presenter.ViewHolder vh = mViewHolders.get(position); in bindControlToAction() 155 final Presenter.ViewHolder itemViewHolder = vh; in bindControlToAction() 233 public Presenter.ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 236 return new ViewHolder(v); in onCreateViewHolder() [all …]
|
D | AbstractDetailsDescriptionPresenter.java | 34 public static class ViewHolder extends Presenter.ViewHolder { class in AbstractDetailsDescriptionPresenter 49 public ViewHolder(View view) { in ViewHolder() method in AbstractDetailsDescriptionPresenter.ViewHolder 110 public final ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 113 return new ViewHolder(v); in onCreateViewHolder() 117 public final void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 118 ViewHolder vh = (ViewHolder) viewHolder; in onBindViewHolder() 172 protected abstract void onBindDescription(ViewHolder vh, Object item); in onBindDescription() 175 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {} in onUnbindViewHolder()
|
D | ActionPresenterSelector.java | 39 static class ActionViewHolder extends Presenter.ViewHolder { 53 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 60 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 68 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() 75 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 82 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 117 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder()
|
D | ControlButtonPresenterSelector.java | 59 static class ActionViewHolder extends Presenter.ViewHolder { 80 public ViewHolder onCreateViewHolder(ViewGroup parent) { in onCreateViewHolder() 87 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() 108 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() 118 public void setOnClickListener(Presenter.ViewHolder viewHolder, in setOnClickListener()
|
D | OnItemViewClickedListener.java | 21 public void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, in onItemClicked() 22 RowPresenter.ViewHolder rowViewHolder, Row row); in onItemClicked()
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | DefaultItemAnimator.java | 21 import android.support.v7.widget.RecyclerView.ViewHolder; 37 private ArrayList<ViewHolder> mPendingRemovals = new ArrayList<ViewHolder>(); 38 private ArrayList<ViewHolder> mPendingAdditions = new ArrayList<ViewHolder>(); 42 private ArrayList<ArrayList<ViewHolder>> mAdditionsList = 43 new ArrayList<ArrayList<ViewHolder>>(); 47 private ArrayList<ViewHolder> mAddAnimations = new ArrayList<ViewHolder>(); 48 private ArrayList<ViewHolder> mMoveAnimations = new ArrayList<ViewHolder>(); 49 private ArrayList<ViewHolder> mRemoveAnimations = new ArrayList<ViewHolder>(); 50 private ArrayList<ViewHolder> mChangeAnimations = new ArrayList<ViewHolder>(); 53 public ViewHolder holder; [all …]
|
D | RecyclerView.java | 412 public ViewHolder getChildViewHolder(View view) { in initChildrenHelper() 419 final ViewHolder vh = getChildViewHolderInt(child); in initChildrenHelper() 437 final ViewHolder vh = getChildViewHolderInt(view); in initChildrenHelper() 446 vh.addFlags(ViewHolder.FLAG_TMP_DETACHED); in initChildrenHelper() 457 public ViewHolder findViewHolder(int position) { in initAdapterManager() 753 private void addAnimatingView(ViewHolder viewHolder) { in addAnimatingView() 777 final ViewHolder viewHolder = getChildViewHolderInt(view); in removeAnimatingView() 1055 ViewHolder holder = getChildViewHolder(view); in scrollByInternal() 1057 ViewHolder shadowingHolder = holder.mShadowingHolder; in scrollByInternal() 2026 && supportsChangeAnimations() ? new ArrayMap<Long, ViewHolder>() : null; in dispatchLayout() [all …]
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | RowsFragment.java | 25 import android.support.v17.leanback.widget.RowPresenter.ViewHolder; 54 final Presenter.ViewHolder mRowViewHolder; 63 RowViewHolderExtra(ItemBridgeAdapter.ViewHolder ibvh) { in RowViewHolderExtra() 118 private ItemBridgeAdapter.ViewHolder mSelectedViewHolder; 205 …ItemBridgeAdapter.ViewHolder vh = (ItemBridgeAdapter.ViewHolder) listView.getChildViewHolder(view); in setExpand() 222 ItemBridgeAdapter.ViewHolder vh = (ItemBridgeAdapter.ViewHolder) in setOnItemSelectedListener() 239 ItemBridgeAdapter.ViewHolder vh = (ItemBridgeAdapter.ViewHolder) in setOnItemViewSelectedListener() 268 ItemBridgeAdapter.ViewHolder vh = (view == null) ? null : in onRowSelected() 269 (ItemBridgeAdapter.ViewHolder) listView.getChildViewHolder(view); in onRowSelected() 354 private static void setRowViewExpanded(ItemBridgeAdapter.ViewHolder vh, boolean expanded) { in setRowViewExpanded() [all …]
|
D | RowsSupportFragment.java | 27 import android.support.v17.leanback.widget.RowPresenter.ViewHolder; 56 final Presenter.ViewHolder mRowViewHolder; 65 RowViewHolderExtra(ItemBridgeAdapter.ViewHolder ibvh) { in RowViewHolderExtra() 120 private ItemBridgeAdapter.ViewHolder mSelectedViewHolder; 207 …ItemBridgeAdapter.ViewHolder vh = (ItemBridgeAdapter.ViewHolder) listView.getChildViewHolder(view); in setExpand() 224 ItemBridgeAdapter.ViewHolder vh = (ItemBridgeAdapter.ViewHolder) in setOnItemSelectedListener() 241 ItemBridgeAdapter.ViewHolder vh = (ItemBridgeAdapter.ViewHolder) in setOnItemViewSelectedListener() 270 ItemBridgeAdapter.ViewHolder vh = (view == null) ? null : in onRowSelected() 271 (ItemBridgeAdapter.ViewHolder) listView.getChildViewHolder(view); in onRowSelected() 356 private static void setRowViewExpanded(ItemBridgeAdapter.ViewHolder vh, boolean expanded) { in setRowViewExpanded() [all …]
|
D | PlaybackOverlayFragment.java | 191 private void resetControlsToPrimaryActions(ItemBridgeAdapter.ViewHolder vh) { in resetControlsToPrimaryActions() 193 vh = (ItemBridgeAdapter.ViewHolder) getVerticalGridView().findViewHolderForPosition(0); in resetControlsToPrimaryActions() 200 (PlaybackControlsRowPresenter.ViewHolder) vh.getViewHolder()); in resetControlsToPrimaryActions() 369 RecyclerView.ViewHolder vh = getVerticalGridView().findViewHolderForPosition(0); in getControlRowView() 464 ItemBridgeAdapter.ViewHolder adapterVh = (ItemBridgeAdapter.ViewHolder) in loadDescriptionAnimator() 467 instanceof PlaybackControlsRowPresenter.ViewHolder) { in loadDescriptionAnimator() 468 final Presenter.ViewHolder vh = ((PlaybackControlsRowPresenter.ViewHolder) in loadDescriptionAnimator() 644 private void updateControlsBottomSpace(ItemBridgeAdapter.ViewHolder vh) { in updateControlsBottomSpace() 647 vh = (ItemBridgeAdapter.ViewHolder) in updateControlsBottomSpace() 653 (PlaybackControlsRowPresenter.ViewHolder) vh.getViewHolder(), in updateControlsBottomSpace() [all …]
|
D | PlaybackOverlaySupportFragment.java | 193 private void resetControlsToPrimaryActions(ItemBridgeAdapter.ViewHolder vh) { in resetControlsToPrimaryActions() 195 vh = (ItemBridgeAdapter.ViewHolder) getVerticalGridView().findViewHolderForPosition(0); in resetControlsToPrimaryActions() 202 (PlaybackControlsRowPresenter.ViewHolder) vh.getViewHolder()); in resetControlsToPrimaryActions() 371 RecyclerView.ViewHolder vh = getVerticalGridView().findViewHolderForPosition(0); in getControlRowView() 466 ItemBridgeAdapter.ViewHolder adapterVh = (ItemBridgeAdapter.ViewHolder) in loadDescriptionAnimator() 469 instanceof PlaybackControlsRowPresenter.ViewHolder) { in loadDescriptionAnimator() 470 final Presenter.ViewHolder vh = ((PlaybackControlsRowPresenter.ViewHolder) in loadDescriptionAnimator() 646 private void updateControlsBottomSpace(ItemBridgeAdapter.ViewHolder vh) { in updateControlsBottomSpace() 649 vh = (ItemBridgeAdapter.ViewHolder) in updateControlsBottomSpace() 655 (PlaybackControlsRowPresenter.ViewHolder) vh.getViewHolder(), in updateControlsBottomSpace() [all …]
|
/frameworks/base/docs/html/training/improving-layouts/ |
D | smooth-scrolling.jd | 19 <li><a href="#ViewHolder">Hold View Objects in a View Holder</a></li> 53 new AsyncTask<ViewHolder, Void, Bitmap>() { 54 private ViewHolder v; 57 protected Bitmap doInBackground(ViewHolder... params) { 83 <h2 id="ViewHolder">Hold View Objects in a View Holder</h2> 93 <p>A {@code ViewHolder} object stores each of the component views inside the tag field of the 98 static class ViewHolder { 107 <p>Then populate the {@code ViewHolder} and store it inside the layout.</p> 110 ViewHolder holder = new ViewHolder();
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
D | RecentsPanelView.java | 82 private ViewHolder mItemToAnimateInWhenWindowAnimationIsFinished; 116 /* package */ final static class ViewHolder { class in RecentsPanelView 149 ViewHolder holder = new ViewHolder(); in createView() 170 final ViewHolder holder = (ViewHolder) convertView.getTag(); in getView() 186 ViewHolder oldHolder = mItemToAnimateInWhenWindowAnimationIsFinished; in getView() 231 ViewHolder holder = (ViewHolder) v.getTag(); in recycleView() 471 private void updateIcon(ViewHolder h, Drawable icon, boolean show, boolean anim) { in updateIcon() 484 private void updateThumbnail(ViewHolder h, Drawable thumbnail, boolean show, boolean anim) { in updateThumbnail() 528 if (v.getTag() instanceof ViewHolder) { in onTaskThumbnailLoaded() 529 ViewHolder h = (ViewHolder)v.getTag(); in onTaskThumbnailLoaded() [all …]
|
/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()
|