/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ItemBridgeAdapter.java | 37 public void onCreate(ViewHolder viewHolder) { in onCreate() argument 39 public void onBind(ViewHolder viewHolder) { in onBind() argument 41 public void onUnbind(ViewHolder viewHolder) { in onUnbind() argument 43 public void onAttachedToWindow(ViewHolder viewHolder) { in onAttachedToWindow() argument 45 public void onDetachedFromWindow(ViewHolder viewHolder) { in onDetachedFromWindow() argument 281 protected void onCreate(ViewHolder viewHolder) { in onCreate() argument 287 protected void onBind(ViewHolder viewHolder) { in onBind() argument 293 protected void onUnbind(ViewHolder viewHolder) { in onUnbind() argument 299 protected void onAttachedToWindow(ViewHolder viewHolder) { in onAttachedToWindow() argument 305 protected void onDetachedFromWindow(ViewHolder viewHolder) { in onDetachedFromWindow() argument [all …]
|
D | FullWidthDetailsOverviewRowPresenter.java | 114 ActionsItemBridgeAdapter(FullWidthDetailsOverviewRowPresenter.ViewHolder viewHolder) { in ActionsItemBridgeAdapter() argument 115 mViewHolder = viewHolder; in ActionsItemBridgeAdapter() 146 public void onAttachedToWindow(ItemBridgeAdapter.ViewHolder viewHolder) { in onAttachedToWindow() argument 148 viewHolder.itemView.removeOnLayoutChangeListener(mViewHolder.mLayoutChangeListener); in onAttachedToWindow() 149 viewHolder.itemView.addOnLayoutChangeListener(mViewHolder.mLayoutChangeListener); in onAttachedToWindow() 152 public void onDetachedFromWindow(ItemBridgeAdapter.ViewHolder viewHolder) { in onDetachedFromWindow() argument 153 viewHolder.itemView.removeOnLayoutChangeListener(mViewHolder.mLayoutChangeListener); in onDetachedFromWindow() 285 RecyclerView.ViewHolder viewHolder; in checkFirstAndLastPosition() local 287 viewHolder = mActionsRow.findViewHolderForPosition(mNumItems - 1); in checkFirstAndLastPosition() 288 boolean showRight = (viewHolder == null in checkFirstAndLastPosition() [all …]
|
D | RowHeaderPresenter.java | 131 ViewHolder viewHolder = new ViewHolder(root); in onCreateViewHolder() local 133 setSelectLevel(viewHolder, 0); in onCreateViewHolder() 135 return viewHolder; in onCreateViewHolder() 139 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 141 RowHeaderPresenter.ViewHolder vh = (RowHeaderPresenter.ViewHolder)viewHolder; in onBindViewHolder() 150 viewHolder.view.setContentDescription(null); in onBindViewHolder() 152 viewHolder.view.setVisibility(View.GONE); in onBindViewHolder() 166 viewHolder.view.setContentDescription(headerItem.getContentDescription()); in onBindViewHolder() 167 viewHolder.view.setVisibility(View.VISIBLE); in onBindViewHolder() 172 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument [all …]
|
D | DetailsOverviewLogoPresenter.java | 108 public void setContext(ViewHolder viewHolder, in setContext() argument 111 viewHolder.mParentViewHolder = parentViewHolder; in setContext() 112 viewHolder.mParentPresenter = parentPresenter; in setContext() 123 public boolean isBoundToImage(ViewHolder viewHolder, DetailsOverviewRow row) { in isBoundToImage() argument 135 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 137 ImageView imageView = ((ImageView) viewHolder.view); in onBindViewHolder() 139 if (isBoundToImage((ViewHolder) viewHolder, row)) { in onBindViewHolder() 140 ViewHolder vh = (ViewHolder) viewHolder; in onBindViewHolder() 169 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument
|
D | VerticalGridPresenter.java | 34 protected void onCreate(ItemBridgeAdapter.ViewHolder viewHolder) { in onCreate() argument 35 if (viewHolder.itemView instanceof ViewGroup) { in onCreate() 36 TransitionHelper.setTransitionGroup((ViewGroup) viewHolder.itemView, in onCreate() 40 mShadowOverlayHelper.onViewCreated(viewHolder.itemView); in onCreate() 63 public void onUnbind(ItemBridgeAdapter.ViewHolder viewHolder) { in onUnbind() argument 65 viewHolder.mHolder.view.setOnClickListener(null); in onUnbind() 70 public void onAttachedToWindow(ItemBridgeAdapter.ViewHolder viewHolder) { in onAttachedToWindow() argument 71 viewHolder.itemView.setActivated(true); in onAttachedToWindow() 333 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 335 ViewHolder vh = (ViewHolder) viewHolder; in onBindViewHolder() [all …]
|
D | ActionPresenterSelector.java | 67 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 69 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onBindViewHolder() 75 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument 76 ((ActionViewHolder) viewHolder).mAction = null; in onUnbindViewHolder() 89 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 91 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onBindViewHolder() 124 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument 125 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onUnbindViewHolder()
|
D | ControlButtonPresenterSelector.java | 93 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 95 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onBindViewHolder() 114 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument 115 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onUnbindViewHolder() 124 public void setOnClickListener(Presenter.ViewHolder viewHolder, in setOnClickListener() argument 126 ((ActionViewHolder) viewHolder).mFocusableView.setOnClickListener(listener); in setOnClickListener()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | SimpleItemAnimator.java | 85 public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder viewHolder) { in canReuseUpdatedViewHolder() argument 86 return !mSupportsChangeAnimations || viewHolder.isInvalid(); in canReuseUpdatedViewHolder() 90 public boolean animateDisappearance(@NonNull ViewHolder viewHolder, in animateDisappearance() argument 94 View disappearingItemView = viewHolder.itemView; in animateDisappearance() 97 if (!viewHolder.isRemoved() && (oldLeft != newLeft || oldTop != newTop)) { in animateDisappearance() 102 Log.d(TAG, "DISAPPEARING: " + viewHolder + " with view " + disappearingItemView); in animateDisappearance() 104 return animateMove(viewHolder, oldLeft, oldTop, newLeft, newTop); in animateDisappearance() 107 Log.d(TAG, "REMOVED: " + viewHolder + " with view " + disappearingItemView); in animateDisappearance() 109 return animateRemove(viewHolder); in animateDisappearance() 114 public boolean animateAppearance(@NonNull ViewHolder viewHolder, in animateAppearance() argument [all …]
|
D | ViewInfoStore.java | 163 boolean isInPreLayout(ViewHolder viewHolder) { in isInPreLayout() argument 164 final InfoRecord record = mLayoutHolderMap.get(viewHolder); in isInPreLayout() 223 final ViewHolder viewHolder = mLayoutHolderMap.keyAt(index); in process() local 227 callback.unused(viewHolder); in process() 233 callback.unused(viewHolder); in process() 235 callback.processDisappeared(viewHolder, record.preInfo, record.postInfo); in process() 239 callback.processAppeared(viewHolder, record.preInfo, record.postInfo); in process() 242 callback.processPersistent(viewHolder, record.preInfo, record.postInfo); in process() 245 callback.processDisappeared(viewHolder, record.preInfo, null); in process() 248 callback.processAppeared(viewHolder, record.preInfo, record.postInfo); in process() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | SimpleItemAnimator.java | 85 public boolean canReuseUpdatedViewHolder(@NonNull RecyclerView.ViewHolder viewHolder) { in canReuseUpdatedViewHolder() argument 86 return !mSupportsChangeAnimations || viewHolder.isInvalid(); in canReuseUpdatedViewHolder() 90 public boolean animateDisappearance(@NonNull ViewHolder viewHolder, in animateDisappearance() argument 94 View disappearingItemView = viewHolder.itemView; in animateDisappearance() 97 if (!viewHolder.isRemoved() && (oldLeft != newLeft || oldTop != newTop)) { in animateDisappearance() 102 Log.d(TAG, "DISAPPEARING: " + viewHolder + " with view " + disappearingItemView); in animateDisappearance() 104 return animateMove(viewHolder, oldLeft, oldTop, newLeft, newTop); in animateDisappearance() 107 Log.d(TAG, "REMOVED: " + viewHolder + " with view " + disappearingItemView); in animateDisappearance() 109 return animateRemove(viewHolder); in animateDisappearance() 114 public boolean animateAppearance(@NonNull ViewHolder viewHolder, in animateAppearance() argument [all …]
|
D | ViewInfoStore.java | 160 boolean isInPreLayout(ViewHolder viewHolder) { in isInPreLayout() argument 161 final InfoRecord record = mLayoutHolderMap.get(viewHolder); in isInPreLayout() 220 final ViewHolder viewHolder = mLayoutHolderMap.keyAt(index); in process() local 224 callback.unused(viewHolder); in process() 230 callback.unused(viewHolder); in process() 232 callback.processDisappeared(viewHolder, record.preInfo, record.postInfo); in process() 236 callback.processAppeared(viewHolder, record.preInfo, record.postInfo); in process() 239 callback.processPersistent(viewHolder, record.preInfo, record.postInfo); in process() 242 callback.processDisappeared(viewHolder, record.preInfo, null); in process() 245 callback.processAppeared(viewHolder, record.preInfo, record.postInfo); in process() [all …]
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/touch/ |
D | ItemTouchHelperActivity.java | 107 RecyclerView.ViewHolder viewHolder) { in createCallback() 108 return ItemTouchHelperActivity.this.getMovementFlags(recyclerView, viewHolder); in createCallback() 112 public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, in createCallback() argument 114 mAdapter.move(viewHolder.getAdapterPosition(), target.getAdapterPosition()); in createCallback() 119 public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) { in createCallback() argument 120 mAdapter.delete(viewHolder.getAdapterPosition()); in createCallback() 124 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { in createCallback() argument 125 super.onSelectedChanged(viewHolder, actionState); in createCallback() 126 ItemTouchHelperActivity.this.onSelectedChanged(viewHolder, actionState); in createCallback() 131 RecyclerView.ViewHolder viewHolder, in createCallback() argument [all …]
|
D | SwipeToDismissActivity.java | 97 public void onBind(ItemTouchViewHolder viewHolder) { in onBind() argument 98 super.onBind(viewHolder); in onBind() 99 viewHolder.actionButton.setVisibility(mPointerSwipeEnabled ? View.GONE : View.VISIBLE); in onBind() 103 public void clearView(RecyclerView.ViewHolder viewHolder) { in clearView() argument 104 super.clearView(viewHolder); in clearView() 105 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder; in clearView() 113 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { in onSelectedChanged() argument 114 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder; in onSelectedChanged() 120 touchVH.overlay.setTranslationX(viewHolder.itemView.getWidth()); in onSelectedChanged() 124 super.onSelectedChanged(viewHolder, actionState); in onSelectedChanged() [all …]
|
D | DragAndDropActivity.java | 81 public void onBind(ItemTouchViewHolder viewHolder) { 82 super.onBind(viewHolder); 83 viewHolder.actionButton.setVisibility(mLongPressDragEnabled ? View.GONE : View.VISIBLE); 87 public void clearView(RecyclerView.ViewHolder viewHolder) { 88 super.clearView(viewHolder); 89 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder; 96 public void onSelectedChanged(RecyclerView.ViewHolder viewHolder, int actionState) { 97 ItemTouchViewHolder touchVH = (ItemTouchViewHolder) viewHolder; 102 super.onSelectedChanged(viewHolder, actionState); 122 public int getMovementFlags(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) {
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | LoggingItemAnimator.java | 46 public boolean contains(RecyclerView.ViewHolder viewHolder, in contains() argument 49 if (log.viewHolder == viewHolder) { in contains() 53 if (((AnimateChange) log).newHolder == viewHolder) { in contains() 64 @NonNull RecyclerView.ViewHolder viewHolder, in recordPreLayoutInformation() argument 67 … loggingInfo = new BaseRecyclerViewAnimationsTest.LoggingInfo(viewHolder, changeFlags, payloads); in recordPreLayoutInformation() 74 @NonNull RecyclerView.ViewHolder viewHolder) { in recordPostLayoutInformation() argument 76 loggingInfo = new BaseRecyclerViewAnimationsTest.LoggingInfo(viewHolder, 0, null); in recordPostLayoutInformation() 82 public boolean animateDisappearance(@NonNull RecyclerView.ViewHolder viewHolder, in animateDisappearance() argument 85 .add(new AnimateDisappearance(viewHolder, in animateDisappearance() 88 return super.animateDisappearance(viewHolder, preLayoutInfo, postLayoutInfo); in animateDisappearance() [all …]
|
D | BaseRecyclerViewAnimationsTest.java | 174 for (RecyclerView.ViewHolder viewHolder : getTestRecyclerView().collectViewHolders()) { in validateClearedOldPositions() 176 RecyclerView.NO_POSITION, viewHolder.mOldPosition); in validateClearedOldPositions() 178 RecyclerView.NO_POSITION, viewHolder.mPreLayoutPosition); in validateClearedOldPositions() 187 for (RecyclerView.ViewHolder viewHolder : getTestRecyclerView().collectViewHolders()) { in validateOldPositions() 188 if (!viewHolder.isRemoved() && !viewHolder.isInvalid()) { in validateOldPositions() 190 viewHolder.mOldPosition != RecyclerView.NO_POSITION); in validateOldPositions() 510 static CollectPositionResult fromScrap(RecyclerView.ViewHolder viewHolder) { in fromScrap() argument 512 cpr.scrapResult = viewHolder; in fromScrap() 516 static CollectPositionResult fromAdapter(RecyclerView.ViewHolder viewHolder) { in fromAdapter() argument 518 cpr.adapterResult = viewHolder; in fromAdapter() [all …]
|
D | ItemAnimatorV2ApiTest.java | 102 public boolean canReUse(RecyclerView.ViewHolder viewHolder, List<Object> payloads) { in changeMovedOutsideWithPredictiveAndTwoViewHolders() 103 return viewHolder == singleItemTarget; in changeMovedOutsideWithPredictiveAndTwoViewHolders() 196 assertSame(vh, log.viewHolder); in simpleAdd() 221 assertSame(vh, log.viewHolder); in simpleRemove() 245 assertSame(vh, log.viewHolder); in simpleUpdate() 268 public boolean canReUse(RecyclerView.ViewHolder viewHolder, List<Object> payloads) { in updateWithDuplicateViewHolder() 269 assertSame(viewHolder, vh); in updateWithDuplicateViewHolder() 280 assertSame(vh, log.viewHolder); in updateWithDuplicateViewHolder() 306 public boolean canReUse(RecyclerView.ViewHolder viewHolder, List<Object> payloads) { in updateWithOneDuplicateAndOneInPlace() 307 if (viewHolder == replaced) { in updateWithOneDuplicateAndOneInPlace() [all …]
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/helper/ |
D | ItemTouchHelper.java | 359 ViewHolder viewHolder = mSelected; 360 if (viewHolder == null) { 368 moveIfNecessary(viewHolder); 763 private List<ViewHolder> findSwapTargets(ViewHolder viewHolder) { in findSwapTargets() argument 774 final int right = left + viewHolder.itemView.getWidth() + 2 * margin; in findSwapTargets() 775 final int bottom = top + viewHolder.itemView.getHeight() + 2 * margin; in findSwapTargets() 782 if (other == viewHolder.itemView) { in findSwapTargets() 815 void moveIfNecessary(ViewHolder viewHolder) { in moveIfNecessary() argument 823 final float threshold = mCallback.getMoveThreshold(viewHolder); in moveIfNecessary() 826 if (Math.abs(y - viewHolder.itemView.getTop()) < viewHolder.itemView.getHeight() * threshold in moveIfNecessary() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/helper/ |
D | ItemTouchHelper.java | 361 ViewHolder viewHolder = mSelected; 362 if (viewHolder == null) { 370 moveIfNecessary(viewHolder); 765 private List<ViewHolder> findSwapTargets(ViewHolder viewHolder) { in findSwapTargets() argument 776 final int right = left + viewHolder.itemView.getWidth() + 2 * margin; in findSwapTargets() 777 final int bottom = top + viewHolder.itemView.getHeight() + 2 * margin; in findSwapTargets() 784 if (other == viewHolder.itemView) { in findSwapTargets() 817 void moveIfNecessary(ViewHolder viewHolder) { in moveIfNecessary() argument 825 final float threshold = mCallback.getMoveThreshold(viewHolder); in moveIfNecessary() 828 if (Math.abs(y - viewHolder.itemView.getTop()) < viewHolder.itemView.getHeight() * threshold in moveIfNecessary() [all …]
|
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/details/ |
D | DetailsDescriptionPresenter.java | 46 @Override public void onBindViewHolder(ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 47 TextView primaryText = mResourceCache.getViewById(viewHolder.view, R.id.primary_text); in onBindViewHolder() 48 TextView sndText1 = mResourceCache.getViewById(viewHolder.view, R.id.secondary_text_first); in onBindViewHolder() 49 TextView sndText2 = mResourceCache.getViewById(viewHolder.view, R.id.secondary_text_second); in onBindViewHolder() 50 TextView extraText = mResourceCache.getViewById(viewHolder.view, R.id.extra_text); in onBindViewHolder() 59 @Override public void onUnbindViewHolder(ViewHolder viewHolder) { in onUnbindViewHolder() argument
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/helper/ |
D | ItemTouchHelperTest.java | 189 public boolean onMove(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder, in onMove() argument 191 mMoveRecordList.add(new MoveRecord(viewHolder, target)); in onMove() 196 public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) { in onSwiped() argument 197 mSwipeRecords.add(new SwipeRecord(viewHolder, direction)); in onSwiped() 210 public void clearView(RecyclerView recyclerView, RecyclerView.ViewHolder viewHolder) { in clearView() argument 211 super.clearView(recyclerView, viewHolder); in clearView() 212 mCleared.add(viewHolder); in clearView() 217 if (swipe.viewHolder == vh) { in getSwipe() 238 RecyclerView.ViewHolder viewHolder; field in ItemTouchHelperTest.SwipeRecord 242 public SwipeRecord(RecyclerView.ViewHolder viewHolder, int dir) { in SwipeRecord() argument [all …]
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | DropdownChipLayouter.java | 128 final ViewHolder viewHolder = new ViewHolder(itemView); in bindView() local 149 if (viewHolder.topDivider != null) { in bindView() 150 viewHolder.topDivider.setVisibility(position == 0 ? View.VISIBLE : View.GONE); in bindView() 152 (MarginLayoutParams) viewHolder.topDivider.getLayoutParams(), in bindView() 155 if (viewHolder.bottomDivider != null) { in bindView() 157 (MarginLayoutParams) viewHolder.bottomDivider.getLayoutParams(), in bindView() 175 bindTextToView(displayName, viewHolder.displayNameView); in bindView() 176 bindTextToView(destination, viewHolder.destinationView); in bindView() 177 bindTextToView(destinationType, viewHolder.destinationTypeView); in bindView() 178 bindIconToView(showImage, entry, viewHolder.imageView, type); in bindView() [all …]
|
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/ |
D | ListPopupWindowActivity.java | 97 ViewHolder viewHolder = new ViewHolder(); in onCreate() 98 viewHolder.title = (TextView) convertView.findViewById(R.id.title); in onCreate() 99 viewHolder.shortcut = in onCreate() 101 convertView.setTag(viewHolder); in onCreate() 104 ViewHolder viewHolder = (ViewHolder) convertView.getTag(); in onCreate() 105 viewHolder.title.setText(POPUP_CONTENT[position]); in onCreate() 106 viewHolder.shortcut.setVisibility(View.GONE); in onCreate()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | HeadersFragment.java | 63 void onHeaderClicked(RowHeaderPresenter.ViewHolder viewHolder, Row row); in onHeaderClicked() argument 76 void onHeaderSelected(RowHeaderPresenter.ViewHolder viewHolder, Row row); in onHeaderSelected() argument 111 void onRowSelected(RecyclerView parent, RecyclerView.ViewHolder viewHolder, in onRowSelected() argument 114 if (viewHolder != null && position >= 0) { in onRowSelected() 115 ItemBridgeAdapter.ViewHolder vh = (ItemBridgeAdapter.ViewHolder) viewHolder; in onRowSelected() 127 public void onCreate(final ItemBridgeAdapter.ViewHolder viewHolder) { 128 View headerView = viewHolder.getViewHolder().view; 134 (RowHeaderPresenter.ViewHolder) viewHolder.getViewHolder(), 135 (Row) viewHolder.getItem()); 140 viewHolder.itemView.addOnLayoutChangeListener(sLayoutChangeListener);
|
D | HeadersSupportFragment.java | 66 void onHeaderClicked(RowHeaderPresenter.ViewHolder viewHolder, Row row); in onHeaderClicked() argument 79 void onHeaderSelected(RowHeaderPresenter.ViewHolder viewHolder, Row row); in onHeaderSelected() argument 114 void onRowSelected(RecyclerView parent, RecyclerView.ViewHolder viewHolder, in onRowSelected() argument 117 if (viewHolder != null && position >= 0) { in onRowSelected() 118 ItemBridgeAdapter.ViewHolder vh = (ItemBridgeAdapter.ViewHolder) viewHolder; in onRowSelected() 130 public void onCreate(final ItemBridgeAdapter.ViewHolder viewHolder) { 131 View headerView = viewHolder.getViewHolder().view; 137 (RowHeaderPresenter.ViewHolder) viewHolder.getViewHolder(), 138 (Row) viewHolder.getItem()); 143 viewHolder.itemView.addOnLayoutChangeListener(sLayoutChangeListener);
|