Home
last modified time | relevance | path

Searched refs:viewHolder (Results 1 – 25 of 77) sorted by relevance

1234

/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DSliceContextualCardRendererTest.java90 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in bindView_invalidScheme_sliceShouldBeNull() local
92 mRenderer.bindView(viewHolder, buildContextualCard(invalidUri)); in bindView_invalidScheme_sliceShouldBeNull()
95 ((SliceFullCardRendererHelper.SliceViewHolder) viewHolder).sliceView.getSlice()) in bindView_invalidScheme_sliceShouldBeNull()
101 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in bindView_viewTypeFullWidth_shouldSetCachedSlice() local
103 mRenderer.bindView(viewHolder, buildContextualCard(TEST_SLICE_URI)); in bindView_viewTypeFullWidth_shouldSetCachedSlice()
106 ((SliceFullCardRendererHelper.SliceViewHolder) viewHolder).sliceView.getSlice()) in bindView_viewTypeFullWidth_shouldSetCachedSlice()
112 final RecyclerView.ViewHolder viewHolder = spy(getStickyViewHolder()); in bindView_viewTypeSticky_shouldSetCachedSlice() local
113 doReturn(VIEW_TYPE_STICKY).when(viewHolder).getItemViewType(); in bindView_viewTypeSticky_shouldSetCachedSlice()
115 mRenderer.bindView(viewHolder, buildContextualCard(TEST_SLICE_URI)); in bindView_viewTypeSticky_shouldSetCachedSlice()
118 ((SliceFullCardRendererHelper.SliceViewHolder) viewHolder).sliceView.getSlice()) in bindView_viewTypeSticky_shouldSetCachedSlice()
[all …]
DSliceFullCardRendererHelperTest.java72 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in createViewHolder_shouldAlwaysReturnSliceViewHolder() local
74 assertThat(viewHolder).isInstanceOf(SliceViewHolder.class); in createViewHolder_shouldAlwaysReturnSliceViewHolder()
79 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in bindView_shouldSetScrollableToFalse() local
81 mHelper.bindView(viewHolder, buildContextualCard(), buildSlice()); in bindView_shouldSetScrollableToFalse()
83 assertThat(((SliceViewHolder) viewHolder).sliceView.isScrollable()).isFalse(); in bindView_shouldSetScrollableToFalse()
88 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in bindView_shouldSetTagToSliceUri() local
91 mHelper.bindView(viewHolder, card, buildSlice()); in bindView_shouldSetTagToSliceUri()
93 assertThat(((SliceViewHolder) viewHolder).sliceView.getTag()).isEqualTo(card.getSliceUri()); in bindView_shouldSetTagToSliceUri()
98 final RecyclerView.ViewHolder viewHolder = getSliceViewHolder(); in bindView_shouldSetModeToLarge() local
100 mHelper.bindView(viewHolder, buildContextualCard(), buildSlice()); in bindView_shouldSetModeToLarge()
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogAdapter.java307 CallLogListItemViewHolder viewHolder = (CallLogListItemViewHolder) v.getTag();
308 viewHolder.quickContactView.setVisibility(View.GONE);
309 viewHolder.checkBoxView.setVisibility(View.VISIBLE);
330 CallLogListItemViewHolder viewHolder = (CallLogListItemViewHolder) v.getTag();
331 if (viewHolder == null) {
334 if (actionMode != null && viewHolder.voicemailUri != null) {
338 int id = getVoicemailId(viewHolder.voicemailUri);
342 uncheckMarkCallLogEntry(viewHolder, id);
346 checkMarkCallLogEntry(viewHolder);
370 if (viewHolder.number != null) {
[all …]
/packages/apps/Car/Notification/src/com/android/car/notification/
DDismissAnimationHelper.java73 void onDismiss(CarNotificationBaseViewHolder viewHolder); in onDismiss() argument
84 void animateDismiss(CarNotificationBaseViewHolder viewHolder, in animateDismiss() argument
86 animateDismiss(viewHolder, swipeDirection, 0f); in animateDismiss()
91 CarNotificationBaseViewHolder viewHolder, in animateDismiss() argument
98 viewHolder.setIsAnimating(true); in animateDismiss()
100 int viewWidth = viewHolder.itemView.getWidth(); in animateDismiss()
101 ViewPropertyAnimator viewPropertyAnimator = viewHolder.itemView.animate() in animateDismiss()
106 viewHolder.setIsAnimating(false); in animateDismiss()
107 mCallBacks.onDismiss(viewHolder); in animateDismiss()
113 void animateRestore(CarNotificationBaseViewHolder viewHolder, float velocityX) { in animateRestore() argument
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DScheduleRowPresenter.java367 ScheduleRowViewHolder viewHolder = (ScheduleRowViewHolder) vh; in onBindRowViewHolder() local
370 viewHolder.mActions = actions; in onBindRowViewHolder()
371 viewHolder.mInfoContainer.setOnClickListener( in onBindRowViewHolder()
381 viewHolder.mFirstActionContainer.setOnClickListener( in onBindRowViewHolder()
389 viewHolder.mSecondActionContainer.setOnClickListener( in onBindRowViewHolder()
397 viewHolder.mTimeView.setText(onGetRecordingTimeText(row)); in onBindRowViewHolder()
409 viewHolder.mProgramTitleView.setText(programInfoText); in onBindRowViewHolder()
410 viewHolder.mInfoSeparatorView.setVisibility( in onBindRowViewHolder()
414 viewHolder.mChannelNameView.setText(channelName); in onBindRowViewHolder()
418 viewHolder.mSecondActionView.setImageResource(getImageForAction(actions[1])); in onBindRowViewHolder()
[all …]
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DSwipeDismissalDelegate.java54 @NonNull RecyclerView.ViewHolder viewHolder) { in getMovementFlags() argument
55 if (viewHolder.getItemViewType() == SliceContextualCardRenderer.VIEW_TYPE_FULL_WIDTH in getMovementFlags()
56 || viewHolder.getItemViewType() in getMovementFlags()
60 if (viewHolder.itemView.findViewById(R.id.dismissal_view).getVisibility() in getMovementFlags()
73 @NonNull RecyclerView.ViewHolder viewHolder, in onMove() argument
79 public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) { in onSwiped() argument
80 mListener.onSwiped(viewHolder.getAdapterPosition()); in onSwiped()
85 @NonNull RecyclerView.ViewHolder viewHolder) { in clearView() argument
86 final View view = getSwipeableView(viewHolder); in clearView()
92 @NonNull RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, in onChildDraw() argument
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DSwipeDismissalDelegate.java54 @NonNull RecyclerView.ViewHolder viewHolder) { in getMovementFlags() argument
55 switch (viewHolder.getItemViewType()) { in getMovementFlags()
60 if (viewHolder.itemView.findViewById(R.id.dismissal_view).getVisibility() in getMovementFlags()
74 @NonNull RecyclerView.ViewHolder viewHolder, in onMove() argument
80 public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) { in onSwiped() argument
81 mListener.onSwiped(viewHolder.getAdapterPosition()); in onSwiped()
86 @NonNull RecyclerView.ViewHolder viewHolder) { in clearView() argument
87 final View view = getSwipeableView(viewHolder); in clearView()
93 @NonNull RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, in onChildDraw() argument
95 final View view = getSwipeableView(viewHolder); in onChildDraw()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDvrItemPresenter.java67 DvrItemViewHolder viewHolder; in onBindViewHolder() local
70 viewHolder = (DvrItemViewHolder) baseHolder; in onBindViewHolder()
77 viewHolder.view.setTag(item); in onBindViewHolder()
78 viewHolder.view.setOnClickListener(mOnClickListener); in onBindViewHolder()
79 onBindDvrItemViewHolder(viewHolder, dvrItem); in onBindViewHolder()
80 viewHolder.onBound(dvrItem); in onBindViewHolder()
81 mBoundViewHolders.add(viewHolder); in onBindViewHolder()
87 DvrItemViewHolder viewHolder = (DvrItemViewHolder) baseHolder; in onUnbindViewHolder() local
88 mBoundViewHolders.remove(viewHolder); in onUnbindViewHolder()
89 viewHolder.onUnbound(); in onUnbindViewHolder()
[all …]
DActionPresenterSelector.java77 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument
79 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onBindViewHolder()
85 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument
86 ((ActionViewHolder) viewHolder).mAction = null; in onUnbindViewHolder()
100 public void onBindViewHolder(Presenter.ViewHolder viewHolder, Object item) { in onBindViewHolder() argument
102 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onBindViewHolder()
137 public void onUnbindViewHolder(Presenter.ViewHolder viewHolder) { in onUnbindViewHolder() argument
138 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onUnbindViewHolder()
/packages/apps/Settings/tests/robotests/src/com/android/settings/panel/
DPanelSlicesAdapterTest.java123 final SliceRowViewHolder viewHolder = in sizeOfAdapter_shouldNotExceedMaxNum() local
138 final SliceRowViewHolder viewHolder = in mediaOutputIndicatorSlice_shouldNotAllowDividerAbove() local
141 adapter.onBindViewHolder(viewHolder, position); in mediaOutputIndicatorSlice_shouldNotAllowDividerAbove()
143 assertThat(viewHolder.isDividerAllowedAbove()).isFalse(); in mediaOutputIndicatorSlice_shouldNotAllowDividerAbove()
155 final SliceRowViewHolder viewHolder = in sliderLargeIconPanel_shouldNotAllowDividerBelow() local
157 adapter.onBindViewHolder(viewHolder, position); in sliderLargeIconPanel_shouldNotAllowDividerBelow()
159 assertThat(viewHolder.isDividerAllowedBelow()).isFalse(); in sliderLargeIconPanel_shouldNotAllowDividerBelow()
171 final SliceRowViewHolder viewHolder = in sliderPanelType_shouldAllowDividerBelow() local
173 adapter.onBindViewHolder(viewHolder, position); in sliderPanelType_shouldAllowDividerBelow()
175 assertThat(viewHolder.isDividerAllowedBelow()).isTrue(); in sliderPanelType_shouldAllowDividerBelow()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryItemAnimator.java52 mRunningAnimations.put(anim.viewHolder, anim); in runPendingAnimations()
63 if (anim.viewHolder == vh) { in endAnimation()
78 RecyclerView.ViewHolder viewHolder, in recordPreLayoutInformation() argument
82 viewHolder, changeFlags, payloads); in recordPreLayoutInformation()
83 info.isActivated = viewHolder.itemView.isActivated(); in recordPreLayoutInformation()
90 RecyclerView.State state, RecyclerView.ViewHolder viewHolder) { in recordPostLayoutInformation() argument
92 viewHolder); in recordPostLayoutInformation()
93 info.isActivated = viewHolder.itemView.isActivated(); in recordPostLayoutInformation()
117 final RecyclerView.ViewHolder viewHolder; field in DirectoryItemAnimator.ColorAnimation
122 viewHolder = vh; in ColorAnimation()
[all …]
/packages/apps/Dialer/java/com/android/dialer/speeddial/draghelper/
DSpeedDialItemTouchHelperCallback.java65 public int getMovementFlags(@NonNull RecyclerView recyclerView, @NonNull ViewHolder viewHolder) { in getMovementFlags() argument
66 if (!adapter.canDropOver(viewHolder)) { in getMovementFlags()
78 @NonNull ViewHolder viewHolder, in onMove() argument
94 adapter.onItemMove(viewHolder.getAdapterPosition(), target.getAdapterPosition()); in onMove()
101 @NonNull ViewHolder viewHolder, in onMoved() argument
109 super.onMoved(recyclerView, viewHolder, fromPos, viewHolder1, toPos, x, y); in onMoved()
116 @NonNull ViewHolder viewHolder, in onChildDraw() argument
125 adapter.dropOnRemoveView(viewHolder); in onChildDraw()
135 super.onChildDraw(canvas, recyclerView, viewHolder, dx, dy, i, isCurrentlyActive); in onChildDraw()
139 public void onSelectedChanged(@Nullable ViewHolder viewHolder, int actionState) { in onSelectedChanged() argument
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/presets/
DUserPresetsAdapter.java94 UserPresetViewHolder viewHolder; in getView() local
97 viewHolder = new UserPresetViewHolder(); in getView()
98 viewHolder.imageView = (ImageView) convertView.findViewById(R.id.imageView); in getView()
99 viewHolder.editText = (EditText) convertView.findViewById(R.id.editView); in getView()
100 viewHolder.deleteButton = (ImageButton) convertView.findViewById(R.id.deleteUserPreset); in getView()
101 viewHolder.editText.setOnClickListener(this); in getView()
102 viewHolder.editText.setOnFocusChangeListener(this); in getView()
103 viewHolder.deleteButton.setOnClickListener(this); in getView()
104 convertView.setTag(viewHolder); in getView()
106 viewHolder = (UserPresetViewHolder) convertView.getTag(); in getView()
[all …]
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/
DWalletCardCarousel.java160 ViewHolder viewHolder = findViewHolderForAdapterPosition(mCenteredAdapterPosition); in updatePadding() local
161 if (viewHolder != null) { in updatePadding()
162 View cardView = viewHolder.itemView; in updatePadding()
223 WalletCardViewHolder viewHolder = (WalletCardViewHolder) view.getTag(); in updateCardView() local
224 CardView cardView = viewHolder.cardView; in updateCardView()
318 WalletCardViewHolder viewHolder = (WalletCardViewHolder) view.getTag();
319 WalletCardViewInfo card = viewHolder.info;
385 WalletCardViewHolder viewHolder = new WalletCardViewHolder(view);
386 CardView cardView = viewHolder.cardView;
391 view.setTag(viewHolder);
[all …]
/packages/apps/Settings/src/com/android/settings/utils/
DSettingsDividerItemDecoration.java33 protected boolean isDividerAllowedAbove(RecyclerView.ViewHolder viewHolder) { in isDividerAllowedAbove() argument
34 if (viewHolder instanceof PreferenceViewHolder) { in isDividerAllowedAbove()
35 return ((PreferenceViewHolder) viewHolder).isDividerAllowedAbove(); in isDividerAllowedAbove()
37 return super.isDividerAllowedAbove(viewHolder); in isDividerAllowedAbove()
41 protected boolean isDividerAllowedBelow(RecyclerView.ViewHolder viewHolder) { in isDividerAllowedBelow() argument
42 if (viewHolder instanceof PreferenceViewHolder) { in isDividerAllowedBelow()
43 return ((PreferenceViewHolder) viewHolder).isDividerAllowedBelow(); in isDividerAllowedBelow()
45 return super.isDividerAllowedBelow(viewHolder); in isDividerAllowedBelow()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/utils/
DSettingsDividerItemDecoration.java33 protected boolean isDividerAllowedAbove(RecyclerView.ViewHolder viewHolder) { in isDividerAllowedAbove() argument
34 if (viewHolder instanceof PreferenceViewHolder) { in isDividerAllowedAbove()
35 return ((PreferenceViewHolder) viewHolder).isDividerAllowedAbove(); in isDividerAllowedAbove()
37 return super.isDividerAllowedAbove(viewHolder); in isDividerAllowedAbove()
41 protected boolean isDividerAllowedBelow(RecyclerView.ViewHolder viewHolder) { in isDividerAllowedBelow() argument
42 if (viewHolder instanceof PreferenceViewHolder) { in isDividerAllowedBelow()
43 return ((PreferenceViewHolder) viewHolder).isDividerAllowedBelow(); in isDividerAllowedBelow()
45 return super.isDividerAllowedBelow(viewHolder); in isDividerAllowedBelow()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardRendererTest.java74 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(cardView, in bindView_shouldSetListener() local
79 mRenderer.bindView(viewHolder, buildContextualCard()); in bindView_shouldSetListener()
92 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(cardView, in bindView_closeButton_shouldSetListener() local
94 final View closeButton = viewHolder.itemView.findViewById(R.id.close_button); in bindView_closeButton_shouldSetListener()
98 mRenderer.bindView(viewHolder, buildContextualCard()); in bindView_closeButton_shouldSetListener()
111 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(cardView, in viewClick_shouldInvokeControllerPrimaryClick() local
116 mRenderer.bindView(viewHolder, buildContextualCard()); in viewClick_shouldInvokeControllerPrimaryClick()
131 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(cardView, in viewClick_closeButton_shouldInvokeControllerDismissClick() local
133 final View closeButton = viewHolder.itemView.findViewById(R.id.close_button); in viewClick_closeButton_shouldInvokeControllerDismissClick()
137 mRenderer.bindView(viewHolder, buildContextualCard()); in viewClick_closeButton_shouldInvokeControllerDismissClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/
DConditionFooterContextualCardRendererTest.java67 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(view, in bindView_shouldSetClickListener() local
72 mRenderer.bindView(viewHolder, card); in bindView_shouldSetClickListener()
74 assertThat(viewHolder.itemView).isNotNull(); in bindView_shouldSetClickListener()
75 assertThat(viewHolder.itemView.hasOnClickListeners()).isTrue(); in bindView_shouldSetClickListener()
85 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(view, in bindView_clickView_shouldSetTrueToIsConditionExpanded() local
90 mRenderer.bindView(viewHolder, card); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
92 assertThat(viewHolder.itemView).isNotNull(); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
93 viewHolder.itemView.performClick(); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
DConditionHeaderContextualCardRendererTest.java75 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(view, in bindView_shouldSetClickListener() local
80 mRenderer.bindView(viewHolder, generateConditionHeaderContextualCard()); in bindView_shouldSetClickListener()
82 assertThat(viewHolder.itemView).isNotNull(); in bindView_shouldSetClickListener()
83 assertThat(viewHolder.itemView.hasOnClickListeners()).isTrue(); in bindView_shouldSetClickListener()
93 final RecyclerView.ViewHolder viewHolder = mRenderer.createViewHolder(view, in bindView_clickView_shouldSetTrueToIsConditionExpanded() local
98 mRenderer.bindView(viewHolder, generateConditionHeaderContextualCard()); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
100 assertThat(viewHolder.itemView).isNotNull(); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
101 viewHolder.itemView.performClick(); in bindView_clickView_shouldSetTrueToIsConditionExpanded()
/packages/apps/DeskClock/src/com/android/deskclock/
DItemAdapter.java73 public void onItemClicked(ItemViewHolder<?> viewHolder, int id) {
75 mListenersByViewType.get(viewHolder.getItemViewType());
77 listener.onItemClicked(viewHolder, id);
271 public void onBindViewHolder(ItemViewHolder viewHolder, int position) { in onBindViewHolder() argument
274 viewHolder.bindItemView(mItemHolders.get(position)); in onBindViewHolder()
275 viewHolder.setOnItemClickedListener(mOnItemClickedListener); in onBindViewHolder()
279 public void onViewRecycled(ItemViewHolder viewHolder) { in onViewRecycled() argument
280 viewHolder.setOnItemClickedListener(null); in onViewRecycled()
281 viewHolder.recycleItemView(); in onViewRecycled()
542 void onItemClicked(ItemViewHolder<?> viewHolder, int id); in onItemClicked() argument
/packages/apps/TV/src/com/android/tv/menu/
DChannelsRowAdapter.java91 public void onBindViewHolder(MyViewHolder viewHolder, int position) { in onBindViewHolder() argument
94 viewHolder.itemView.setOnClickListener(this::onGuideClicked); in onBindViewHolder()
96 viewHolder.itemView.setOnClickListener(this::onChannelUpClicked); in onBindViewHolder()
98 viewHolder.itemView.setOnClickListener(this::onChannelDownClicked); in onBindViewHolder()
100 viewHolder.itemView.setOnClickListener(this::onSetupClicked); in onBindViewHolder()
102 viewHolder.itemView.setOnClickListener(this::onAppLinkClicked); in onBindViewHolder()
104 viewHolder.itemView.setOnClickListener(this::onDvrClicked); in onBindViewHolder()
105 SimpleCardView view = (SimpleCardView) viewHolder.itemView; in onBindViewHolder()
108 viewHolder.itemView.setTag(getItemList().get(position).getChannel()); in onBindViewHolder()
109 viewHolder.itemView.setOnClickListener(this::onChannelClicked); in onBindViewHolder()
[all …]
/packages/apps/Camera2/src/com/android/camera/data/
DVideoItem.java152 VideoViewHolder viewHolder; in getView() local
156 viewHolder = getViewHolder(view); in getView()
163 viewHolder = new VideoViewHolder(videoView, playButton); in getView()
164 view.setTag(R.id.mediadata_tag_target, viewHolder); in getView()
167 if (viewHolder != null) { in getView()
169 viewHolder.mPlayButton.setOnClickListener(new View.OnClickListener() { in getView()
180 renderTiny(viewHolder); in getView()
228 private void renderTiny(@Nonnull VideoViewHolder viewHolder) { in renderTiny() argument
230 .into(viewHolder.mVideoView); in renderTiny()
/packages/apps/Dialer/java/com/android/dialer/voicemail/listui/
DNewVoicemailAdapter.java240 public void onBindViewHolder(ViewHolder viewHolder, int position) { in onBindViewHolder() argument
252 onBindViewHolder(viewHolder, ++position); in onBindViewHolder()
261 if (viewHolder instanceof NewVoicemailHeaderViewHolder) { in onBindViewHolder()
264 onBindHeaderViewHolder(viewHolder, position); in onBindViewHolder()
268 if (viewHolder instanceof NewVoicemailAlertViewHolder) { in onBindViewHolder()
271 onBindAlertViewHolder(viewHolder, position); in onBindViewHolder()
280 NewVoicemailViewHolder newVoicemailViewHolder = (NewVoicemailViewHolder) viewHolder; in onBindViewHolder()
378 private void onBindAlertViewHolder(ViewHolder viewHolder, int position) { in onBindAlertViewHolder() argument
385 NewVoicemailAlertViewHolder alertViewHolder = (NewVoicemailAlertViewHolder) viewHolder; in onBindAlertViewHolder()
412 private void onBindHeaderViewHolder(ViewHolder viewHolder, int position) { in onBindHeaderViewHolder() argument
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackControlHelper.java107 AbstractDetailsDescriptionPresenter.ViewHolder viewHolder, in createControlsRowPresenter()
111 viewHolder.getTitle().setText(glue.getMediaTitle()); in createControlsRowPresenter()
112 viewHolder.getSubtitle().setText(glue.getMediaSubtitle()); in createControlsRowPresenter()
114 viewHolder.getTitle().setText(""); in createControlsRowPresenter()
115 viewHolder.getSubtitle().setText(""); in createControlsRowPresenter()
117 if (TextUtils.isEmpty(viewHolder.getSubtitle().getText())) { in createControlsRowPresenter()
118 viewHolder.view.setPadding( in createControlsRowPresenter()
119 viewHolder.view.getPaddingLeft(), in createControlsRowPresenter()
121 viewHolder.view.getPaddingRight(), in createControlsRowPresenter()
122 viewHolder.view.getPaddingBottom()); in createControlsRowPresenter()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DFavoriteAdapter.java99 public void onBindViewHolder(FavoriteContactViewHolder viewHolder, int position) { in onBindViewHolder() argument
104 viewHolder.onBind(contact); in onBindViewHolder()
105 viewHolder.itemView.setOnClickListener(v -> onItemViewClicked(contact)); in onBindViewHolder()
109 viewHolder.onBind(header); in onBindViewHolder()
110 viewHolder.itemView.setOnClickListener(null); in onBindViewHolder()
113 viewHolder.itemView.setOnClickListener(v -> { in onBindViewHolder()

1234