Searched refs:vh (Results 1 - 25 of 28) sorted by relevance

12

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
H A DVolumeAdapter.java50 ViewHolder vh = new ViewHolder();
54 vh.id = (TextView) convertView.findViewById(R.id.stream_id);
55 vh.maxVolume = (TextView) convertView.findViewById(R.id.volume_limit);
56 vh.currentVolume = (TextView) convertView.findViewById(R.id.current_volume);
57 vh.logicalVolume = (TextView) convertView.findViewById(R.id.logical_volume);
58 vh.logicalMax = (TextView) convertView.findViewById(R.id.logical_max);
59 vh.upButton = (Button) convertView.findViewById(R.id.volume_up);
60 vh.downButton = (Button) convertView.findViewById(R.id.volume_down);
61 vh.requestButton = (Button) convertView.findViewById(R.id.request);
62 convertView.setTag(vh);
[all...]
/packages/apps/TV/src/com/android/tv/dvr/ui/
H A DDetailsContentPresenter.java218 final ViewHolder vh = (ViewHolder) viewHolder;
221 vh.mActivity = mActivity;
222 vh.mFullTextAnimationDuration = mFullTextAnimationDuration;
226 vh.mTitle.setVisibility(View.GONE);
229 vh.mTitle.setText(detailsContent.getTitle());
230 vh.mTitle.setVisibility(View.VISIBLE);
231 vh.mTitle.setLineSpacing(vh.mTitleLineSpacing - vh.mTitle.getLineHeight()
232 + vh
[all...]
H A DActionPresenterSelector.java76 ActionViewHolder vh = (ActionViewHolder) viewHolder;
77 vh.mAction = action;
78 vh.mButton.setText(action.getLabel1());
98 ActionViewHolder vh = (ActionViewHolder) viewHolder;
100 vh.mAction = action;
103 final int startPadding = vh.view.getResources()
105 final int endPadding = vh.view.getResources()
107 vh.view.setPaddingRelative(startPadding, 0, endPadding, 0);
109 final int padding = vh.view.getResources()
111 vh
[all...]
H A DDvrPlaybackControlHelper.java100 protected void onBindRowViewHolder(RowPresenter.ViewHolder vh, Object item) {
101 super.onBindRowViewHolder(vh, item);
102 vh.setOnKeyListener(DvrPlaybackControlHelper.this);
106 protected void onUnbindRowViewHolder(RowPresenter.ViewHolder vh) {
107 super.onUnbindRowViewHolder(vh);
108 vh.setOnKeyListener(null);
H A DSeriesDeletionFragment.java202 public void onBindViewHolder(ViewHolder vh, GuidedAction action) {
203 super.onBindViewHolder(vh, action);
207 LayoutParams lp = vh.itemView.getLayoutParams();
211 vh.itemView.setLayoutParams(
H A DPrioritySettingsFragment.java191 public void onBindViewHolder(ViewHolder vh, GuidedAction action) {
192 super.onBindViewHolder(vh, action);
193 updateItem(vh.itemView, (int) action.getId());
/packages/apps/Car/SystemUpdater/src/com/android/car/systemupdater/
H A DFileAdapter.java42 ViewHolder vh = new ViewHolder();
46 vh.textView = (TextView) convertView.findViewById(R.id.text);
47 vh.descriptionView = (TextView) convertView.findViewById(R.id.description);
48 convertView.setTag(vh);
50 vh = (ViewHolder) convertView.getTag();
53 vh.textView.setText(mLocations[position].getAbsolutePath());
56 vh.textView.setTextColor(Color.GREEN);
58 vh.textView.setTextColor(Color.GRAY);
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/
H A DSuggestionDismissControllerTest.java81 final RecyclerView.ViewHolder vh = mock(RecyclerView.ViewHolder.class);
82 when(vh.getItemViewType()).thenReturn(R.layout.suggestion_tile);
84 assertThat(mController.getSwipeDirs(mRecyclerView, vh))
90 final RecyclerView.ViewHolder vh = mock(RecyclerView.ViewHolder.class);
91 when(vh.getItemViewType()).thenReturn(R.layout.condition_card);
93 assertThat(mController.getSwipeDirs(mRecyclerView, vh))
99 final RecyclerView.ViewHolder vh = mock(RecyclerView.ViewHolder.class);
101 mController.onSwiped(vh, ItemTouchHelper.START);
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
H A DDirectoryItemAnimator.java63 public void endAnimation(RecyclerView.ViewHolder vh) { argument
64 super.endAnimation(vh);
68 if (anim.viewHolder == vh) {
74 ColorAnimation anim = mRunningAnimations.get(vh);
131 public boolean canReuseUpdatedViewHolder(RecyclerView.ViewHolder vh) { argument
148 public ColorAnimation(RecyclerView.ViewHolder vh, int startColor, int endColor) argument
150 viewHolder = vh;
/packages/apps/Music/src/com/android/music/
H A DMusicPicker.java209 ViewHolder vh = new ViewHolder();
210 vh.line1 = (TextView) v.findViewById(R.id.line1);
211 vh.line2 = (TextView) v.findViewById(R.id.line2);
212 vh.duration = (TextView) v.findViewById(R.id.duration);
213 vh.radio = (RadioButton) v.findViewById(R.id.radio);
214 vh.play_indicator = (ImageView) v.findViewById(R.id.play_indicator);
215 vh.buffer1 = new CharArrayBuffer(100);
216 vh.buffer2 = new char[200];
217 v.setTag(vh);
223 ViewHolder vh
[all...]
H A DArtistAlbumBrowserActivity.java634 ViewHolder vh = new ViewHolder();
635 vh.line1 = (TextView) v.findViewById(R.id.line1);
636 vh.line2 = (TextView) v.findViewById(R.id.line2);
637 vh.play_indicator = (ImageView) v.findViewById(R.id.play_indicator);
638 vh.icon = (ImageView) v.findViewById(R.id.icon);
639 vh.icon.setPadding(0, 0, 1, 0);
640 v.setTag(vh);
648 ViewHolder vh = new ViewHolder();
649 vh.line1 = (TextView) v.findViewById(R.id.line1);
650 vh
[all...]
H A DAlbumBrowserActivity.java564 ViewHolder vh = new ViewHolder();
565 vh.line1 = (TextView) v.findViewById(R.id.line1);
566 vh.line2 = (TextView) v.findViewById(R.id.line2);
567 vh.play_indicator = (ImageView) v.findViewById(R.id.play_indicator);
568 vh.icon = (ImageView) v.findViewById(R.id.icon);
569 vh.icon.setBackgroundDrawable(mDefaultAlbumIcon);
570 vh.icon.setPadding(0, 0, 1, 0);
571 v.setTag(vh);
577 ViewHolder vh = (ViewHolder) view.getTag();
585 vh
[all...]
H A DTrackBrowserActivity.java1410 ViewHolder vh = new ViewHolder();
1411 vh.line1 = (TextView) v.findViewById(R.id.line1);
1412 vh.line2 = (TextView) v.findViewById(R.id.line2);
1413 vh.duration = (TextView) v.findViewById(R.id.duration);
1414 vh.play_indicator = (ImageView) v.findViewById(R.id.play_indicator);
1415 vh.buffer1 = new CharArrayBuffer(100);
1416 vh.buffer2 = new char[200];
1417 v.setTag(vh);
1423 ViewHolder vh = (ViewHolder) view.getTag();
1425 cursor.copyStringToBuffer(mTitleIdx, vh
[all...]
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
H A DSeriesScheduleRowPresenter.java69 protected void onBindRowViewHolder(ViewHolder vh, Object item) { argument
70 super.onBindRowViewHolder(vh, item);
71 SeriesScheduleRowViewHolder viewHolder = (SeriesScheduleRowViewHolder) vh;
H A DScheduleRowPresenter.java339 protected void onBindRowViewHolder(RowPresenter.ViewHolder vh, Object item) { argument
340 super.onBindRowViewHolder(vh, item);
341 ScheduleRowViewHolder viewHolder = (ScheduleRowViewHolder) vh;
626 protected void onRowViewSelected(ViewHolder vh, boolean selected) { argument
627 super.onRowViewSelected(vh, selected);
628 updateActionContainer(vh, selected);
634 private void updateActionContainer(ViewHolder vh, boolean selected) { argument
635 ScheduleRowViewHolder viewHolder = (ScheduleRowViewHolder) vh;
/packages/apps/TvSettings/QuickSettings/src/com/android/tv/quicksettings/
H A DDialogAdapter.java46 final ViewHolder vh = new ViewHolder(v);
54 Setting s = vh.mSetting;
71 return vh;
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DDragController.java107 final HistoryAdapter.ViewHolder vh =
109 if (yFraction > 0 && vh != null) {
112 if (vh != null && !mIsDisplayEmpty
113 && vh.getItemViewType() == HistoryAdapter.HISTORY_VIEW_TYPE) {
114 final AlignedTextView formula = vh.getFormula();
115 final CalculatorResult result = vh.getResult();
116 final TextView date = vh.getDate();
117 final View divider = vh.getDivider();
/packages/apps/Settings/src/com/android/settings/
H A DDeviceAdminSettings.java300 ViewHolder vh = (ViewHolder) view.getTag();
304 vh.icon.setImageDrawable(badgedIcon);
305 vh.name.setText(item.loadLabel(activity.getPackageManager()));
306 vh.checkbox.setChecked(isActiveAdmin(item));
309 vh.description.setText(item.loadDescription(activity.getPackageManager()));
312 vh.checkbox.setEnabled(enabled);
313 vh.name.setEnabled(enabled);
314 vh.description.setEnabled(enabled);
315 vh.icon.setEnabled(enabled);
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DFocusManager.java355 RecyclerView.ViewHolder vh = mScope.view.findViewHolderForAdapterPosition(pos);
356 if (vh != null) {
357 if (vh.itemView.requestFocus() && callback != null) {
358 callback.onFocus(vh.itemView);
368 RecyclerView.ViewHolder vh = view
370 if (vh != null) {
371 if (vh.itemView.requestFocus() && callback != null) {
372 callback.onFocus(vh.itemView);
H A DHorizontalBreadcrumb.java150 RecyclerView.ViewHolder vh = getChildViewHolder(v);
151 if (vh instanceof BreadcrumbHolder) {
152 ((BreadcrumbHolder) vh).setHighlighted(highlight);
/packages/apps/Settings/src/com/android/settings/dashboard/
H A DSupportFragment.java149 final SupportItemAdapter.ViewHolder vh =
151 mSupportItemAdapter.onItemClicked(vh.getAdapterPosition());
/packages/apps/Calendar/src/com/android/calendar/agenda/
H A DAgendaWindowAdapter.java504 AgendaAdapter.ViewHolder vh = (AgendaAdapter.ViewHolder) yy;
505 selected = mSelectedInstanceId == vh.instanceId;
506 vh.selectedMarker.setVisibility((selected && mShowEventOnStart) ?
510 (GridLayout.LayoutParams)vh.textContainer.getLayoutParams();
512 mSelectedVH = vh;
514 vh.title.setTextColor(mSelectedItemTextColor);
515 vh.when.setTextColor(mSelectedItemTextColor);
516 vh.where.setTextColor(mSelectedItemTextColor);
518 vh.textContainer.setLayoutParams(lp);
521 vh
[all...]
H A DAgendaFragment.java331 AgendaAdapter.ViewHolder vh = mAgendaListView.getSelectedViewHolder();
333 Log.d(TAG, "selected viewholder is null: " + (vh == null));
334 showEventInfo(event, vh != null ? vh.allDay : false, mForceReplace);
/packages/apps/Car/Settings/src/com/android/car/settings/wifi/
H A DAccessPointListAdapter.java136 ViewHolder vh = new ViewHolder(v);
137 return vh;
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
H A DConversationFastScroller.java317 final ViewHolder vh = mRv.findViewHolderForAdapterPosition(pos);
318 if (vh == null) {
322 final ConversationMessageView messageView = (ConversationMessageView) vh.itemView;

Completed in 800 milliseconds

12