Home
last modified time | relevance | path

Searched refs:vh (Results 1 – 25 of 35) sorted by relevance

12

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DNetworkListAdapter.java52 ViewHolder vh; in getView() local
54 vh = new ViewHolder(); in getView()
57 vh.netActive = convertView.findViewById(R.id.network_active); in getView()
58 vh.netId = convertView.findViewById(R.id.network_id); in getView()
59 vh.netType = convertView.findViewById(R.id.network_type); in getView()
60 vh.netState = convertView.findViewById(R.id.network_state); in getView()
61 vh.connected = convertView.findViewById(R.id.network_connected); in getView()
62 vh.available = convertView.findViewById(R.id.network_available); in getView()
63 vh.roaming = convertView.findViewById(R.id.network_roaming); in getView()
64 vh.netIface = convertView.findViewById(R.id.network_iface); in getView()
[all …]
/packages/apps/TV/src/com/android/tv/dvr/ui/browse/
DDetailsContentPresenter.java278 final ViewHolder vh = (ViewHolder) viewHolder; in onBindViewHolder() local
281 vh.mActivity = mActivity; in onBindViewHolder()
282 vh.mFullTextAnimationDuration = mFullTextAnimationDuration; in onBindViewHolder()
286 vh.mTitle.setVisibility(View.GONE); in onBindViewHolder()
289 vh.mTitle.setText(detailsContent.getTitle()); in onBindViewHolder()
290 vh.mTitle.setVisibility(View.VISIBLE); in onBindViewHolder()
291 vh.mTitle.setLineSpacing( in onBindViewHolder()
292 vh.mTitleLineSpacing in onBindViewHolder()
293 - vh.mTitle.getLineHeight() in onBindViewHolder()
294 + vh.mTitle.getLineSpacingExtra(), in onBindViewHolder()
[all …]
DActionPresenterSelector.java79 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onBindViewHolder() local
80 vh.mAction = action; in onBindViewHolder()
81 vh.mButton.setText(action.getLabel1()); in onBindViewHolder()
102 ActionViewHolder vh = (ActionViewHolder) viewHolder; in onBindViewHolder() local
104 vh.mAction = action; in onBindViewHolder()
108 vh.view in onBindViewHolder()
112 vh.view in onBindViewHolder()
115 vh.view.setPaddingRelative(startPadding, 0, endPadding, 0); in onBindViewHolder()
118 vh.view in onBindViewHolder()
121 vh.view.setPaddingRelative(padding, 0, padding, 0); in onBindViewHolder()
[all …]
DDvrHistoryCardPresenter.java42 public void onBindDvrItemViewHolder(DvrItemViewHolder vh, Object o) { in onBindDvrItemViewHolder() argument
43 final RecordingCardView cardView = (RecordingCardView) vh.view; in onBindDvrItemViewHolder()
50 public void onUnbindViewHolder(ViewHolder vh) { in onUnbindViewHolder() argument
51 ((RecordingCardView) vh.view).reset(); in onUnbindViewHolder()
52 super.onUnbindViewHolder(vh); in onUnbindViewHolder()
DFullSchedulesCardPresenter.java47 public void onBindDvrItemViewHolder(DvrItemViewHolder vh, Object o) { in onBindDvrItemViewHolder() argument
48 final RecordingCardView cardView = (RecordingCardView) vh.view; in onBindDvrItemViewHolder()
75 public void onUnbindViewHolder(ViewHolder vh) { in onUnbindViewHolder() argument
76 ((RecordingCardView) vh.view).reset(); in onUnbindViewHolder()
77 super.onUnbindViewHolder(vh); in onUnbindViewHolder()
/packages/apps/Car/Notification/tests/robotests/src/com/android/car/notification/
DCarNotificationViewAdapterTest.java134 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_carWarningType_shouldReturnObjectOfBasicNotificationViewHolder() local
137 assertThat(vh.getClass()).isEqualTo(BasicNotificationViewHolder.class); in onCreateViewHolder_carWarningType_shouldReturnObjectOfBasicNotificationViewHolder()
145 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_groupExpandedType_shouldReturnObjectOfGroupNotificationViewHolder() local
148 assertThat(vh.getClass()).isEqualTo(GroupNotificationViewHolder.class); in onCreateViewHolder_groupExpandedType_shouldReturnObjectOfGroupNotificationViewHolder()
156 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_groupCollapsed_shouldReturnObjectOfGroupNotificationViewHolder() local
159 assertThat(vh.getClass()).isEqualTo(GroupNotificationViewHolder.class); in onCreateViewHolder_groupCollapsed_shouldReturnObjectOfGroupNotificationViewHolder()
167 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_groupSummaryType_shouldReturnObjectOfGroupSummaryNotificationViewHolder() local
170 assertThat(vh.getClass()).isEqualTo(GroupSummaryNotificationViewHolder.class); in onCreateViewHolder_groupSummaryType_shouldReturnObjectOfGroupSummaryNotificationViewHolder()
178 RecyclerView.ViewHolder vh = mCarNotificationViewAdapter.onCreateViewHolder(null, in onCreateViewHolder_carInformation_shouldReturnObjectOfBasicNotificationViewHolder() local
181 assertThat(vh.getClass()).isEqualTo(BasicNotificationViewHolder.class); in onCreateViewHolder_carInformation_shouldReturnObjectOfBasicNotificationViewHolder()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DCarAudioZoneVolumeAdapter.java49 ViewHolder vh = new ViewHolder(); in getView() local
53 vh.id = convertView.findViewById(R.id.stream_id); in getView()
54 vh.maxVolume = convertView.findViewById(R.id.volume_limit); in getView()
55 vh.currentVolume = convertView.findViewById(R.id.current_volume); in getView()
56 vh.upButton = convertView.findViewById(R.id.volume_up); in getView()
57 vh.downButton = convertView.findViewById(R.id.volume_down); in getView()
58 vh.requestButton = convertView.findViewById(R.id.request); in getView()
59 convertView.setTag(vh); in getView()
61 vh = (ViewHolder) convertView.getTag(); in getView()
64 vh.id.setText(mVolumeList[position].mId); in getView()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DCarAudioInputAdapter.java55 ViewHolder vh = new ViewHolder(); in getView() local
59 vh.mDeviceAddress = convertView.findViewById(R.id.input_device_address); in getView()
60 vh.mPlayButton = convertView.findViewById(R.id.play_audio_input); in getView()
61 vh.mStopButton = convertView.findViewById(R.id.stop_audio_input); in getView()
62 vh.mPlayerState = convertView.findViewById(R.id.input_device_state); in getView()
63 convertView.setTag(vh); in getView()
65 vh = (ViewHolder) convertView.getTag(); in getView()
69 vh.mDeviceAddress.setText(deviceAddress); in getView()
71 vh.mPlayButton.setVisibility(View.INVISIBLE); in getView()
72 vh.mStopButton.setVisibility(View.INVISIBLE); in getView()
[all …]
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DQuickSettingGridAdapter.java180 TileViewHolder vh = (TileViewHolder) holder; in onBindViewHolder() local
181 vh.itemView.setOnClickListener(tile); in onBindViewHolder()
184 vh.itemView.setOnLongClickListener(onLongClickListener); in onBindViewHolder()
186 vh.itemView.setOnLongClickListener(null); in onBindViewHolder()
188 vh.mIcon.setImageDrawable(tile.getIcon()); in onBindViewHolder()
191 vh.mIcon.setEnabled(true); in onBindViewHolder()
192 vh.mIconBackground.setEnabled(true); in onBindViewHolder()
195 vh.mIcon.setEnabled(false); in onBindViewHolder()
196 vh.mIconBackground.setEnabled(false); in onBindViewHolder()
202 vh.mText.setText(textString); in onBindViewHolder()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDirectoryItemAnimator.java58 public void endAnimation(RecyclerView.ViewHolder vh) { in endAnimation() argument
59 super.endAnimation(vh); in endAnimation()
63 if (anim.viewHolder == vh) { in endAnimation()
69 ColorAnimation anim = mRunningAnimations.get(vh); in endAnimation()
103 public boolean canReuseUpdatedViewHolder(RecyclerView.ViewHolder vh) { in canReuseUpdatedViewHolder() argument
120 public ColorAnimation(RecyclerView.ViewHolder vh, int startColor, int endColor) in ColorAnimation() argument
122 viewHolder = vh; in ColorAnimation()
DDocsSelectionPredicate.java93 final RecyclerView.ViewHolder vh = mRecView.findViewHolderForAdapterPosition(position); in canSetStateAtPosition() local
94 if (vh == null) { in canSetStateAtPosition()
97 return ModelBackedDocumentsAdapter.isContentType(vh.getItemViewType()); in canSetStateAtPosition()
DDirectoryFragment.java1209 RecyclerView.ViewHolder vh = mRecView.getChildViewHolder(itemView); in getModelId() local
1210 if (vh instanceof DocumentHolder) { in getModelId()
1211 return ((DocumentHolder) vh).getModelId(); in getModelId()
1218 RecyclerView.ViewHolder vh = mRecView.getChildViewHolder(v); in getDocumentHolder() local
1219 if (vh instanceof DocumentHolder) { in getDocumentHolder()
1220 return (DocumentHolder) vh; in getDocumentHolder()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardRenderer.java54 final LegacySuggestionViewHolder vh = (LegacySuggestionViewHolder) holder; in bindView() local
57 vh.icon.setImageDrawable(card.getIconDrawable()); in bindView()
58 vh.title.setText(card.getTitleText()); in bindView()
59 vh.summary.setText(card.getSummaryText()); in bindView()
60 vh.itemView.setOnClickListener(v -> controller.onPrimaryClick(card)); in bindView()
61 vh.closeButton.setOnClickListener(v -> controller.onDismissed(card)); in bindView()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/legacysuggestion/
DLegacySuggestionContextualCardRenderer.java53 final LegacySuggestionViewHolder vh = (LegacySuggestionViewHolder) holder; in bindView() local
54 vh.icon.setImageDrawable(card.getIconDrawable()); in bindView()
55 vh.title.setText(card.getTitleText()); in bindView()
56 vh.summary.setText(card.getSummaryText()); in bindView()
57 vh.itemView.setOnClickListener(v -> in bindView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DEnterPasswordState.java132 public void onBindViewHolder(ViewHolder vh, GuidedAction action) { in onCreateActionsStylist() argument
133 super.onBindViewHolder(vh, action); in onCreateActionsStylist()
135 PasswordViewHolder checkBoxVH = (PasswordViewHolder) vh; in onCreateActionsStylist()
145 mTextInput = (EditText) vh.itemView.findViewById( in onCreateActionsStylist()
152 protected void onEditingModeChange(ViewHolder vh, boolean editing, in onCreateActionsStylist() argument
154 super.onEditingModeChange(vh, editing, withTransition); in onCreateActionsStylist()
DSelectWifiState.java139 public void onBindViewHolder(ViewHolder vh, GuidedAction action) { in onCreateActionsStylist()
140 super.onBindViewHolder(vh, action); in onCreateActionsStylist()
144 vh.getIconView().setImageLevel(wifiAction.getIconLevel()); in onCreateActionsStylist()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackControlHelper.java129 protected void onBindRowViewHolder(RowPresenter.ViewHolder vh, Object item) { in createControlsRowPresenter()
130 super.onBindRowViewHolder(vh, item); in createControlsRowPresenter()
131 vh.setOnKeyListener(DvrPlaybackControlHelper.this); in createControlsRowPresenter()
132 ViewGroup controlBar = (ViewGroup) vh.view.findViewById(R.id.control_bar); in createControlsRowPresenter()
137 protected void onUnbindRowViewHolder(RowPresenter.ViewHolder vh) { in createControlsRowPresenter()
138 super.onUnbindRowViewHolder(vh); in createControlsRowPresenter()
139 vh.setOnKeyListener(null); in createControlsRowPresenter()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DFocusManager.java387 final RecyclerView.ViewHolder vh = recyclerView.findViewHolderForAdapterPosition(pos); in focusItem() local
390 if (vh != null) { in focusItem()
391 if (vh.itemView.requestFocus() && callback != null) { in focusItem()
392 callback.onFocus(vh.itemView); in focusItem()
402 RecyclerView.ViewHolder vh = view in focusItem()
404 if (vh != null) { in focusItem()
405 if (vh.itemView.requestFocus() && callback != null) { in focusItem()
406 callback.onFocus(vh.itemView); in focusItem()
/packages/apps/TV/common/src/com/android/tv/common/ui/setup/
DSetupGuidedStepFragment.java181 protected void setAccessibilityDelegate(GuidedActionsStylist.ViewHolder vh,
186 vh.itemView.setAccessibilityDelegate(
209 public void onBindViewHolder(GuidedActionsStylist.ViewHolder vh, GuidedAction action) {
210 super.onBindViewHolder(vh, action);
211 setAccessibilityDelegate(vh, action);
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DScheduleRowPresenter.java365 protected void onBindRowViewHolder(RowPresenter.ViewHolder vh, Object item) { in onBindRowViewHolder() argument
366 super.onBindRowViewHolder(vh, item); in onBindRowViewHolder()
367 ScheduleRowViewHolder viewHolder = (ScheduleRowViewHolder) vh; in onBindRowViewHolder()
725 protected void onRowViewSelected(ViewHolder vh, boolean selected) { in onRowViewSelected() argument
726 super.onRowViewSelected(vh, selected); in onRowViewSelected()
727 updateActionContainer(vh, selected); in onRowViewSelected()
731 private void updateActionContainer(ViewHolder vh, boolean selected) { in updateActionContainer() argument
732 ScheduleRowViewHolder viewHolder = (ScheduleRowViewHolder) vh; in updateActionContainer()
DSeriesScheduleRowPresenter.java68 protected void onBindRowViewHolder(ViewHolder vh, Object item) { in onBindRowViewHolder() argument
69 super.onBindRowViewHolder(vh, item); in onBindRowViewHolder()
70 SeriesScheduleRowViewHolder viewHolder = (SeriesScheduleRowViewHolder) vh; in onBindRowViewHolder()
/packages/apps/TV/src/com/android/tv/dvr/ui/
DDvrSeriesDeletionFragment.java204 public void onBindViewHolder(ViewHolder vh, GuidedAction action) { in onCreateActionsStylist()
205 super.onBindViewHolder(vh, action); in onCreateActionsStylist()
209 LayoutParams lp = vh.itemView.getLayoutParams(); in onCreateActionsStylist()
213 vh.itemView.setLayoutParams( in onCreateActionsStylist()
DDvrPrioritySettingsFragment.java211 public void onBindViewHolder(ViewHolder vh, GuidedAction action) { in onCreateActionsStylist()
212 super.onBindViewHolder(vh, action); in onCreateActionsStylist()
213 updateItem(vh.itemView, (int) action.getId()); in onCreateActionsStylist()
/packages/apps/TV/src/com/android/tv/onboarding/
DSetupSourcesFragment.java404 public void onBindViewHolder(ViewHolder vh, GuidedAction action) { in onBindViewHolder() argument
405 super.onBindViewHolder(vh, action); in onBindViewHolder()
406 TextView descriptionView = vh.getDescriptionView(); in onBindViewHolder()
422 setAccessibilityDelegate(vh, action); in onBindViewHolder()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java317 final ViewHolder vh = mRv.findViewHolderForAdapterPosition(pos); in updatePreviewText() local
318 if (vh == null) { in updatePreviewText()
322 final ConversationMessageView messageView = (ConversationMessageView) vh.itemView; in updatePreviewText()

12