/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 250 ViewHolder viewHolder = new ViewHolder(presenter, view, presenterVh); in onCreateViewHolder() local 252 mAdapterListener.onCreate(viewHolder); in onCreateViewHolder() 254 View presenterView = viewHolder.mHolder.view; in onCreateViewHolder() 256 … viewHolder.mFocusChangeListener.mChainedListener = presenterView.getOnFocusChangeListener(); in onCreateViewHolder() 257 presenterView.setOnFocusChangeListener(viewHolder.mFocusChangeListener); in onCreateViewHolder() [all …]
|
D | RowHeaderPresenter.java | 62 ViewHolder viewHolder = new ViewHolder(headerView); in onCreateViewHolder() local 63 viewHolder.mOriginalTextColor = headerView.getCurrentTextColor(); in onCreateViewHolder() 64 viewHolder.mUnselectAlpha = parent.getResources().getFraction( in onCreateViewHolder() 66 return viewHolder; in onCreateViewHolder() 70 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 71 setSelectLevel((ViewHolder) viewHolder, 0); in onBindViewHolder() 77 ((RowHeaderView) viewHolder.view).setText(text); in onBindViewHolder() 83 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument
|
D | ActionPresenterSelector.java | 57 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 59 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onBindViewHolder() 65 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument 66 ((ActionViewHolder) viewHolder).mAction = null; in onUnbindViewHolder() 79 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 81 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onBindViewHolder() 109 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument 110 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onUnbindViewHolder()
|
D | ControlButtonPresenterSelector.java | 84 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 86 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onBindViewHolder() 98 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument 99 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onUnbindViewHolder() 105 public void setOnClickListener(Presenter.ViewHolder viewHolder, in setOnClickListener() argument 107 ((ActionViewHolder) viewHolder).mFocusableView.setOnClickListener(listener); in setOnClickListener()
|
D | VerticalGridPresenter.java | 229 public void onUnbind(ItemBridgeAdapter.ViewHolder viewHolder) { in initializeGridViewHolder() 231 viewHolder.mHolder.view.setOnClickListener(null); in initializeGridViewHolder() 236 public void onAttachedToWindow(ItemBridgeAdapter.ViewHolder viewHolder) { in initializeGridViewHolder() 237 viewHolder.itemView.setActivated(true); in initializeGridViewHolder() 243 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 245 ViewHolder vh = (ViewHolder) viewHolder; in onBindViewHolder() 251 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument 253 ViewHolder vh = (ViewHolder) viewHolder; in onUnbindViewHolder()
|
D | DetailsOverviewRowPresenter.java | 168 public void onAttachedToWindow(ItemBridgeAdapter.ViewHolder viewHolder) { 170 viewHolder.itemView.removeOnLayoutChangeListener(mLayoutChangeListener); 171 viewHolder.itemView.addOnLayoutChangeListener(mLayoutChangeListener); 174 public void onDetachedFromWindow(ItemBridgeAdapter.ViewHolder viewHolder) { 175 viewHolder.itemView.removeOnLayoutChangeListener(mLayoutChangeListener); 197 RecyclerView.ViewHolder viewHolder; in checkFirstAndLastPosition() local 199 viewHolder = mActionsRow.findViewHolderForPosition(mNumItems - 1); in checkFirstAndLastPosition() 200 boolean showRight = (viewHolder == null || in checkFirstAndLastPosition() 201 viewHolder.itemView.getRight() > mActionsRow.getWidth()); in checkFirstAndLastPosition() 203 viewHolder = mActionsRow.findViewHolderForPosition(0); in checkFirstAndLastPosition() [all …]
|
D | ListRowPresenter.java | 205 public void onBind(final ItemBridgeAdapter.ViewHolder viewHolder) { in initializeRowViewHolder() 208 viewHolder.mHolder.view.setOnClickListener(new View.OnClickListener() { in initializeRowViewHolder() 213 .getChildViewHolder(viewHolder.itemView); in initializeRowViewHolder() 219 getOnItemViewClickedListener().onItemClicked(viewHolder.mHolder, in initializeRowViewHolder() 228 public void onUnbind(ItemBridgeAdapter.ViewHolder viewHolder) { in initializeRowViewHolder() 230 viewHolder.mHolder.view.setOnClickListener(null); in initializeRowViewHolder() 235 public void onAttachedToWindow(ItemBridgeAdapter.ViewHolder viewHolder) { in initializeRowViewHolder() 236 if (viewHolder.itemView instanceof ShadowOverlayContainer) { in initializeRowViewHolder() 238 ((ShadowOverlayContainer) viewHolder.itemView).setOverlayColor(dimmedColor); in initializeRowViewHolder() 240 viewHolder.itemView.setActivated(rowViewHolder.mExpanded); in initializeRowViewHolder()
|
D | Presenter.java | 77 public abstract void onBindViewHolder(ViewHolder viewHolder, Object item); in onBindViewHolder() argument 84 public abstract void onUnbindViewHolder(ViewHolder viewHolder); in onUnbindViewHolder() argument
|
D | RowPresenter.java | 375 public final void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 376 onBindRowViewHolder(getRowViewHolder(viewHolder), item); in onBindViewHolder() 387 public final void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument 388 onUnbindRowViewHolder(getRowViewHolder(viewHolder)); in onUnbindViewHolder()
|
D | AbstractDetailsDescriptionPresenter.java | 117 public final void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument 118 ViewHolder vh = (ViewHolder) viewHolder; in onBindViewHolder() 175 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) {} in onUnbindViewHolder() argument
|
/frameworks/opt/chips/src/com/android/ex/chips/ |
D | DropdownChipLayouter.java | 90 final ViewHolder viewHolder = new ViewHolder(itemView); in bindView() local 111 if (viewHolder.topDivider != null) { in bindView() 112 viewHolder.topDivider.setVisibility(position == 0 ? View.VISIBLE : View.GONE); in bindView() 127 bindTextToView(displayName, viewHolder.displayNameView); in bindView() 128 bindTextToView(destination, viewHolder.destinationView); in bindView() 129 bindTextToView(destinationType, viewHolder.destinationTypeView); in bindView() 130 bindIconToView(showImage, entry, viewHolder.imageView, type); in bindView() 131 bindDrawableToDeleteView(deleteDrawable, viewHolder.deleteView); in bindView()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | BaseRecyclerViewInstrumentationTest.java | 167 RecyclerView.ViewHolder viewHolder = super.getRecycledView(viewType); in setRecyclerView() 168 if (viewHolder == null) { in setRecyclerView() 171 viewHolder.addFlags(RecyclerView.ViewHolder.FLAG_BOUND); in setRecyclerView() 172 viewHolder.mPosition = 200; in setRecyclerView() 173 viewHolder.mOldPosition = 300; in setRecyclerView() 174 viewHolder.mPreLayoutPosition = 500; in setRecyclerView() 175 return viewHolder; in setRecyclerView() 358 for (RecyclerView.ViewHolder viewHolder : recycler.getScrapList()) { in assertScrap() 359 assertFalse("Invalid scrap should be no kept", viewHolder.isInvalid()); in assertScrap()
|
D | RecyclerViewAnimationsTest.java | 911 for (RecyclerView.ViewHolder viewHolder : getTestRecyclerView().collectViewHolders()) { in validateClearedOldPositions() 913 RecyclerView.NO_POSITION, viewHolder.mOldPosition); in validateClearedOldPositions() 915 RecyclerView.NO_POSITION, viewHolder.mPreLayoutPosition); in validateClearedOldPositions() 924 for (RecyclerView.ViewHolder viewHolder : getTestRecyclerView().collectViewHolders()) { in validateOldPositions() 925 if (!viewHolder.isRemoved() && !viewHolder.isInvalid()) { in validateOldPositions() 927 viewHolder.mOldPosition != RecyclerView.NO_POSITION); in validateOldPositions() 1249 static CollectPositionResult fromScrap(RecyclerView.ViewHolder viewHolder) { in fromScrap() argument 1251 cpr.scrapResult = viewHolder; in fromScrap() 1255 static CollectPositionResult fromAdapter(RecyclerView.ViewHolder viewHolder) { in fromAdapter() argument 1257 cpr.adapterResult = viewHolder; in fromAdapter() [all …]
|
D | AdapterHelperTest.java | 128 for (ViewHolder viewHolder : mViewHolders) { in cleanState() 132 viewHolder.getPosition() == updateOp.positionStart + i); in cleanState() 202 ViewHolder viewHolder = new RecyclerViewBasicTest.MockViewHolder( in addViewHolder() local 204 viewHolder.mPosition = posiiton; in addViewHolder() 205 mViewHolders.add(viewHolder); in addViewHolder() 904 for (ViewHolder viewHolder : mViewHolders) { in isItemLaidOut() 905 if (viewHolder.mOldPosition == pos) { in isItemLaidOut()
|
D | RecyclerViewLayoutTest.java | 1386 TestViewHolder viewHolder = in findViewByIdTest() 1388 assertSame("should be the correct item " + viewHolder in findViewByIdTest() 1389 , viewHolder.mBindedItem, in findViewByIdTest() 1390 adapter.mItems.get(viewHolder.mPosition)); in findViewByIdTest()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/ |
D | HeadersFragment.java | 88 public void onCreate(ItemBridgeAdapter.ViewHolder viewHolder) { 89 View headerView = viewHolder.getViewHolder().view; 101 viewHolder.itemView.addOnLayoutChangeListener(sLayoutChangeListener);
|
/frameworks/base/docs/html/training/tv/playback/ |
D | details.jd | 63 protected void onBindDescription(ViewHolder viewHolder, Object itemData) { 67 // viewHolder.getTitle().setText(details.getShortTitle()); 70 viewHolder.getTitle().setText(itemData.toString()); 71 viewHolder.getSubtitle().setText("2014 Drama TV-14"); 72 viewHolder.getBody().setText("Lorem ipsum dolor sit amet, consectetur "
|
D | browse.jd | 122 public void onBindViewHolder(ViewHolder viewHolder, Object item) { 123 ((TextView) viewHolder.view).setText(item.toString()); 126 public void onUnbindViewHolder(ViewHolder viewHolder) {
|
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/ |
D | RecyclerView.java | 659 final ViewHolder viewHolder = getChildViewHolderInt(view); in removeAnimatingView() local 660 mRecycler.unscrapView(viewHolder); in removeAnimatingView() 661 mRecycler.recycleViewHolderInternal(viewHolder); in removeAnimatingView() 3481 ViewHolder viewHolder = mCachedViews.get(cachedViewIndex); in tryToRecycleCachedViewAt() local 3483 Log.d(TAG, "CachedViewHolder to be recycled(if recycleable): " + viewHolder); in tryToRecycleCachedViewAt() 3485 if (viewHolder.isRecyclable()) { in tryToRecycleCachedViewAt() 3486 getRecycledViewPool().putRecycledView(viewHolder); in tryToRecycleCachedViewAt() 3487 dispatchViewRecycled(viewHolder); in tryToRecycleCachedViewAt() 5345 final ViewHolder viewHolder = getChildViewHolderInt(view); in scrapOrRecycleView() local 5346 if (viewHolder.shouldIgnore()) { in scrapOrRecycleView() [all …]
|
D | LinearLayoutManager.java | 1820 RecyclerView.ViewHolder viewHolder = mScrapList.get(i); in nextFromLimitedList() local 1821 if (!mIsPreLayout && viewHolder.isRemoved()) { in nextFromLimitedList() 1824 final int distance = (viewHolder.getPosition() - mCurrentPosition) * mItemDirection; in nextFromLimitedList() 1829 closest = viewHolder; in nextFromLimitedList()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
D | RecentsPanelView.java | 769 ViewHolder viewHolder = (ViewHolder) selectedView.getTag(); in handleLongPress() 770 if (viewHolder != null) { in handleLongPress() 771 final TaskDescription ad = viewHolder.taskDescription; in handleLongPress()
|