/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/ |
D | ConversationListSwipeHelper.java | 260 private void onSwipeGestureStart(final ConversationListItemView itemView) { in onSwipeGestureStart() argument 262 setHardwareAnimatingLayerType(itemView, ANIMATING); in onSwipeGestureStart() 263 itemView.setAnimating(true); in onSwipeGestureStart() 269 private void onSwipeGestureEnd(final ConversationListItemView itemView, in onSwipeGestureEnd() argument 272 itemView.onSwipeComplete(); in onSwipeGestureEnd() 276 itemView.setAnimating(false); in onSwipeGestureEnd() 295 private void onSwipeAnimationStart(final ConversationListItemView itemView) { in onSwipeAnimationStart() argument 297 itemView.setAnimating(true); in onSwipeAnimationStart() 298 ViewCompat.setHasTransientState(itemView, true); in onSwipeAnimationStart() 299 setHardwareAnimatingLayerType(itemView, ANIMATING); in onSwipeAnimationStart() [all …]
|
/packages/modules/Bluetooth/android/leaudio/app/src/main/java/com/android/bluetooth/leaudio/ |
D | LeAudioRecycleViewAdapter.java | 116 holder.itemView in onBindViewHolder() 125 holder.itemView in onBindViewHolder() 135 holder.itemView in onBindViewHolder() 143 holder.itemView in onBindViewHolder() 181 if (holder.itemView.findViewById(R.id.le_audio_layout).getVisibility() in setLeAudioStateObservers() 183 holder.itemView in setLeAudioStateObservers() 188 holder.itemView in setLeAudioStateObservers() 290 if (holder.itemView.findViewById(R.id.hap_layout).getVisibility() in setHasStateObservers() 292 holder.itemView in setHasStateObservers() 438 holder.itemView.findViewById(R.id.hap_layout).setVisibility(View.GONE); in setHasStateObservers() [all …]
|
/packages/services/Car/tests/CustomizationTool/src/com/android/car/customization/tool/ui/menu/ |
D | DropDownPopup.kt | 36 itemView: View, in showDropDownPopupWindow() 40 val dropDownPopup = LayoutInflater.from(itemView.context).inflate( in showDropDownPopupWindow() 53 layoutManager = LinearLayoutManager(itemView.context) in showDropDownPopupWindow() 60 itemView.getLocationInWindow(location) in showDropDownPopupWindow() 63 val y = location[1] + itemView.height + margin in showDropDownPopupWindow() 65 popupWindow.showAtLocation(itemView, Gravity.NO_GRAVITY, x, y) in showDropDownPopupWindow() 76 class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { 78 private val titleTextView = itemView.requireViewById<TextView>(R.id.dropdown_title) 86 itemView.isSelected = model.isActive in bindTo() 89 itemView.isSelected = false in bindTo() [all …]
|
/packages/apps/TV/src/com/android/tv/dvr/ui/ |
D | DvrPrioritySettingsFragment.java | 213 updateItem(vh.itemView, (int) action.getId()); in onCreateActionsStylist() 224 View itemView = getActionItemView(position); 225 if (itemView == null) { 228 updateItem(itemView, position); 231 private void updateItem(View itemView, int position) { 237 TextView titleView = (TextView) itemView.findViewById(R.id.guidedactions_item_title); 238 ImageView imageView = (ImageView) itemView.findViewById(R.id.guidedactions_item_tail_image); 241 itemView.setBackgroundResource(R.drawable.setup_selector_background); 243 itemView.setFocusable(false); 244 itemView.setElevation(0); [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ringtone/ |
D | RingtoneViewHolder.kt | 37 internal class RingtoneViewHolder private constructor(itemView: View) 38 : ItemViewHolder<RingtoneHolder>(itemView), View.OnClickListener, OnCreateContextMenuListener { 39 private val mSelectedView: View = itemView.findViewById(R.id.sound_image_selected) 40 private val mNameView: TextView = itemView.findViewById<View>(R.id.ringtone_name) as TextView 42 itemView.findViewById<View>(R.id.ringtone_image) as ImageView 45 itemView.setOnClickListener(this) 59 val colorAccent = ThemeUtils.resolveColor(itemView.getContext(), in onBindItemView() 77 itemView.setBackgroundColor(ContextCompat.getColor(itemView.getContext(), bgColorId)) in onBindItemView() 80 itemView.setOnCreateContextMenuListener(this) in onBindItemView() 104 val itemView = mInflater.inflate(R.layout.ringtone_item_sound, parent, false) in createViewHolder() constant [all …]
|
D | AddCustomRingtoneViewHolder.kt | 28 internal class AddCustomRingtoneViewHolder private constructor(itemView: View) 29 : ItemViewHolder<AddCustomRingtoneHolder>(itemView), View.OnClickListener { 32 itemView.setOnClickListener(this) 33 val selectedView = itemView.findViewById<View>(R.id.sound_image_selected) 35 val nameView = itemView.findViewById<View>(R.id.ringtone_name) as TextView 36 nameView.text = itemView.context.getString(R.string.add_new_sound) 38 val imageView = itemView.findViewById<View>(R.id.ringtone_image) as ImageView 50 val itemView = in createViewHolder() constant 52 return AddCustomRingtoneViewHolder(itemView) in createViewHolder()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/ |
D | MediaItemGridViewHolder.java | 67 @NonNull View itemView, in MediaItemGridViewHolder() argument 74 super(itemView); in MediaItemGridViewHolder() 76 mIconThumb = itemView.findViewById(R.id.icon_thumbnail); in MediaItemGridViewHolder() 77 mIconGif = itemView.findViewById(R.id.icon_gif); in MediaItemGridViewHolder() 78 mIconMotionPhoto = itemView.findViewById(R.id.icon_motion_photo); in MediaItemGridViewHolder() 79 mVideoBadgeContainer = itemView.findViewById(R.id.video_container); in MediaItemGridViewHolder() 81 mOverlayGradient = itemView.findViewById(R.id.overlay_gradient); in MediaItemGridViewHolder() 88 mSelectedOrderText = itemView.findViewById(R.id.selected_order); in MediaItemGridViewHolder() 89 mCheckIcon = itemView.findViewById(R.id.icon_check); in MediaItemGridViewHolder() 107 itemView.setOnClickListener(v -> mOnMediaItemClickListener.onItemClick(v, position, this)); in bind() [all …]
|
D | PreviewVideoHolder.java | 58 mImageView = itemView.findViewById(R.id.preview_video_image); in PreviewVideoHolder() 59 mSurfaceView = itemView.findViewById(R.id.preview_player_view); in PreviewVideoHolder() 60 mPlayerFrame = itemView.findViewById(R.id.preview_player_frame); in PreviewVideoHolder() 61 mPlayerContainer = itemView.findViewById(R.id.preview_player_container); in PreviewVideoHolder() 62 mPlayerControlsRoot = itemView.findViewById(R.id.preview_player_controls); in PreviewVideoHolder() 63 mPlayPauseButton = itemView.findViewById(R.id.exo_play_pause); in PreviewVideoHolder() 64 mMuteButton = itemView.findViewById(R.id.preview_mute); in PreviewVideoHolder() 65 mCircularProgressIndicator = itemView.findViewById(R.id.preview_progress_indicator); in PreviewVideoHolder() 75 final Item item = (Item) itemView.getTag(); in bind()
|
D | AlbumGridHolder.java | 53 AlbumGridHolder(@NonNull View itemView, @NonNull ImageLoader imageLoader, in AlbumGridHolder() argument 56 super(itemView); in AlbumGridHolder() 58 Objects.requireNonNull(itemView); in AlbumGridHolder() 63 mIconThumb = itemView.findViewById(R.id.icon_thumbnail); in AlbumGridHolder() 64 mIconDefaultThumb = itemView.findViewById(R.id.icon_default_thumbnail); in AlbumGridHolder() 65 mAlbumName = itemView.findViewById(R.id.album_name); in AlbumGridHolder() 66 mItemCount = itemView.findViewById(R.id.item_count); in AlbumGridHolder() 75 itemView.setOnClickListener(v -> mOnAlbumClickListener.onAlbumClick(category, position)); in bind() 86 mAlbumName.setText(category.getDisplayName(itemView.getContext())); in bind() 107 itemView.getResources(), itemCount, in bind()
|
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/ |
D | RowViewHolder.java | 35 public RowViewHolder(@NonNull View itemView) { in RowViewHolder() argument 36 super(itemView); in RowViewHolder() 37 layout = itemView; in RowViewHolder() 38 textHeader = itemView.findViewById(R.id.firstLine); in RowViewHolder() 39 textDescription = itemView.findViewById(R.id.secondLine); in RowViewHolder() 40 textValueField = itemView.findViewById(R.id.dtc_number); in RowViewHolder() 41 checkBox = itemView.findViewById(R.id.checkBox); in RowViewHolder() 54 @NonNull View itemView, in RowViewHolder() 58 this(itemView); in RowViewHolder()
|
/packages/apps/Car/Notification/src/com/android/car/notification/template/ |
D | CarNotificationBaseViewHolder.java | 120 CarNotificationBaseViewHolder(View itemView, in CarNotificationBaseViewHolder() argument 122 super(itemView); in CarNotificationBaseViewHolder() 123 mContext = itemView.getContext(); in CarNotificationBaseViewHolder() 125 mCardView = itemView.findViewById(R.id.card_view); in CarNotificationBaseViewHolder() 126 mInnerView = itemView.findViewById(R.id.inner_template_view); in CarNotificationBaseViewHolder() 127 mHeaderView = itemView.findViewById(R.id.notification_header); in CarNotificationBaseViewHolder() 128 mBodyView = itemView.findViewById(R.id.notification_body); in CarNotificationBaseViewHolder() 129 mActionsView = itemView.findViewById(R.id.notification_actions); in CarNotificationBaseViewHolder() 130 mDismissButton = itemView.findViewById(R.id.dismiss_button); in CarNotificationBaseViewHolder() 139 mDismissButton.setImageAlpha(itemView.hasFocus() ? 255 : 0); in CarNotificationBaseViewHolder() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | DocumentHolder.java | 79 itemView.setOnKeyListener(this); in DocumentHolder() 107 itemView.setActivated(selected); in setSelected() 108 itemView.setSelected(selected); in setSelected() 112 setEnabledRecursive(itemView, enabled); in setEnabled() 179 static void setEnabledRecursive(View itemView, boolean enabled) { in setEnabledRecursive() argument 180 if (itemView == null || itemView.isEnabled() == enabled) { in setEnabledRecursive() 183 itemView.setEnabled(enabled); in setEnabledRecursive() 185 if (itemView instanceof ViewGroup) { in setEnabledRecursive() 186 final ViewGroup vg = (ViewGroup) itemView; in setEnabledRecursive() 209 ? itemView.getResources().getString(R.string.preview_cross_profile_file, in getPreviewIconContentDescription() [all …]
|
D | ListDocumentHolder.java | 86 mIconLayout = itemView.findViewById(R.id.icon); in ListDocumentHolder() 87 mIconMime = (ImageView) itemView.findViewById(R.id.icon_mime); in ListDocumentHolder() 88 mIconThumb = (ImageView) itemView.findViewById(R.id.icon_thumb); in ListDocumentHolder() 89 mIconCheck = (ImageView) itemView.findViewById(R.id.icon_check); in ListDocumentHolder() 90 mIconBadge = (ImageView) itemView.findViewById(R.id.icon_profile_badge); in ListDocumentHolder() 91 mTitle = (TextView) itemView.findViewById(android.R.id.title); in ListDocumentHolder() 92 mSize = (TextView) itemView.findViewById(R.id.size); in ListDocumentHolder() 93 mDate = (TextView) itemView.findViewById(R.id.date); in ListDocumentHolder() 94 mType = (TextView) itemView.findViewById(R.id.file_type); in ListDocumentHolder() 95 mMetadataView = (TextView) itemView.findViewById(R.id.metadata); in ListDocumentHolder() [all …]
|
D | HeaderMessageDocumentHolder.java | 52 mRoot = itemView.findViewById(R.id.item_root); in HeaderMessageDocumentHolder() 53 mIcon = (ImageView) itemView.findViewById(R.id.message_icon); in HeaderMessageDocumentHolder() 54 mTitle = itemView.findViewById(R.id.message_title); in HeaderMessageDocumentHolder() 55 mSubtitle = itemView.findViewById(R.id.message_subtitle); in HeaderMessageDocumentHolder() 56 mTextView = (TextView) itemView.findViewById(R.id.message_textview); in HeaderMessageDocumentHolder() 57 mActionView = (View) itemView.findViewById(R.id.action_view); in HeaderMessageDocumentHolder() 58 mActionButton = (Button) itemView.findViewById(R.id.action_button); in HeaderMessageDocumentHolder() 59 mDismissButton = (Button) itemView.findViewById(R.id.dismiss_button); in HeaderMessageDocumentHolder() 75 int padding = itemView.getResources().getDimensionPixelSize(mode == MODE_GRID in setPadding()
|
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/view/ |
D | DockItemViewHolder.kt | 46 itemView: View, 49 ) : RecyclerView.ViewHolder(itemView) { 66 private val staticIconStrokeWidth = itemView.resources 68 private val defaultIconColor = itemView.resources.getColor( 72 private val appIcon: ShapeableImageView = itemView.requireViewById(R.id.dock_app_icon) 83 itemView.resources.getValue( 92 dynamicIconStrokeWidth = itemView.resources 94 excitedIconStrokeWidth = itemView.resources 96 staticIconStrokeColor = itemView.resources.getColor( 100 excitedIconStrokeColor = itemView.resources.getColor( [all …]
|
/packages/apps/Settings/src/com/android/settings/notification/history/ |
D | NotificationSbnViewHolder.java | 54 NotificationSbnViewHolder(View itemView) { in NotificationSbnViewHolder() argument 55 super(itemView); in NotificationSbnViewHolder() 56 mPkgName = itemView.findViewById(R.id.pkgname); in NotificationSbnViewHolder() 57 mIcon = itemView.findViewById(R.id.icon); in NotificationSbnViewHolder() 58 mTime = itemView.findViewById(R.id.timestamp); in NotificationSbnViewHolder() 59 mTitle = itemView.findViewById(R.id.title); in NotificationSbnViewHolder() 60 mSummary = itemView.findViewById(R.id.text); in NotificationSbnViewHolder() 61 mProfileBadge = itemView.findViewById(R.id.profile_badge); in NotificationSbnViewHolder() 62 mDivider = itemView.findViewById(R.id.divider); in NotificationSbnViewHolder() 102 Intent appIntent = itemView.getContext().getPackageManager() in addOnClick() [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/category/ui/view/viewholder/ |
D | TileViewHolder.kt | 32 class TileViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { 39 title = itemView.requireViewById(R.id.tile_title) 40 categorySubtitle = itemView.requireViewById(R.id.category_title) 41 wallpaperCategoryImage = itemView.requireViewById(R.id.image) 58 tileSize = SizeCalculator.getCategoryTileSize(itemView.context, windowWidth) in bind() 60 tileSize = SizeCalculator.getFeaturedCategoryTileSize(itemView.context, windowWidth) in bind() 62 tileSize = SizeCalculator.getFeaturedCategoryTileSize(itemView.context, windowWidth) in bind() 74 itemView.context.getResources().getColor(R.color.myphoto_background_color) in bind() 77 Glide.with(itemView.context).asDrawable().load(nullObj).into(wallpaperCategoryImage) in bind()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/notification/app/ |
D | ImportancePreferenceTest.java | 80 assertThat(holder.itemView.findViewById(R.id.silence).isEnabled()).isFalse(); in onBindViewHolder_nonConfigurable() 81 assertThat(holder.itemView.findViewById(R.id.alert).isEnabled()).isFalse(); in onBindViewHolder_nonConfigurable() 83 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(selected); in onBindViewHolder_nonConfigurable() 84 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()) in onBindViewHolder_nonConfigurable() 93 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(unselected); in onBindViewHolder_nonConfigurable() 94 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()).isEqualTo(selected); in onBindViewHolder_nonConfigurable() 113 assertThat(holder.itemView.findViewById(R.id.alert).getBackground()).isEqualTo(selected); in onBindViewHolder_selectButtonAndText() 114 assertThat(holder.itemView.findViewById(R.id.silence).getBackground()) in onBindViewHolder_selectButtonAndText() 116 assertThat(((TextView) holder.itemView.findViewById(R.id.alert_summary)).getText()) in onBindViewHolder_selectButtonAndText() 135 View silenceButton = holder.itemView.findViewById(R.id.silence); in onClick_changesUICallsListener() [all …]
|
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/recents/view/ |
D | TaskViewHolder.java | 41 public TaskViewHolder(@NonNull View itemView) { in TaskViewHolder() argument 42 super(itemView); in TaskViewHolder() 43 mThumbnailImageView = itemView.findViewById(R.id.task_thumbnail); in TaskViewHolder() 44 mIconImageView = itemView.findViewById(R.id.task_icon); in TaskViewHolder() 45 mDismissButton = itemView.findViewById(R.id.task_dismiss_button); in TaskViewHolder() 46 mDisabledStateAlpha = itemView.getResources().getFloat( in TaskViewHolder() 72 setDismissButtonVisibility(itemView.isInTouchMode()); in attachedToWindow() 74 itemView.getViewTreeObserver().addOnTouchModeChangeListener(mOnTouchModeChangeListener); in attachedToWindow() 81 itemView.getViewTreeObserver().removeOnTouchModeChangeListener(mOnTouchModeChangeListener); in detachedFromWindow()
|
/packages/apps/Contacts/src/com/android/contacts/list/ |
D | HeaderEntryContactListAdapter.java | 60 final ContactListItemView itemView; in getView() local 63 itemView = newView(getContext(), 0, getCursor(0), 0, parent); in getView() 65 itemView = (ContactListItemView) convertView; in getView() 67 itemView.setDrawableResource(R.drawable.quantum_ic_person_add_vd_theme_24); in getView() 68 itemView.setDisplayName(getContext().getResources().getString( in getView() 70 return itemView; in getView() 92 protected void bindView(View itemView, int partition, Cursor cursor, int position) { in bindView() argument 93 super.bindView(itemView, partition, cursor, position + getHeaderEntryCount()); in bindView()
|
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/ui/adapter/ |
D | SlotTabAdapter.kt | 56 holder.itemView.isSelected = item.isSelected in onBindViewHolder() 58 holder.itemView.setOnClickListener( in onBindViewHolder() 69 ?.asString(holder.itemView.context) in onBindViewHolder() 70 holder.itemView.stateDescription = in onBindViewHolder() 72 ?: holder.itemView.resources.getString(R.string.keyguard_affordance_none) in onBindViewHolder() 75 class ViewHolder(itemView: View) : RecyclerView.ViewHolder(itemView) { 76 val textView: TextView = itemView.requireViewById(R.id.text)
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/ |
D | HighlightablePreferenceGroupAdapterTest.java | 193 assertThat(mViewHolder.itemView.getTag(R.id.preference_highlighted)).isNull(); in updateBackground_notHighlightedRow_shouldNotSetHighlightedTag() 199 ReflectionHelpers.setField(mViewHolder, "itemView", spy(mViewHolder.itemView)); in updateBackground_itemViewIsInvisible_shouldNotSetHighlightedTag() 200 when(mViewHolder.itemView.isShown()).thenReturn(false); in updateBackground_itemViewIsInvisible_shouldNotSetHighlightedTag() 204 assertThat(mViewHolder.itemView.getTag(R.id.preference_highlighted)).isNull(); in updateBackground_itemViewIsInvisible_shouldNotSetHighlightedTag() 225 ReflectionHelpers.setField(mViewHolder, "itemView", spy(mViewHolder.itemView)); in updateBackground_highlight_shouldAnimateBackgroundAndSetHighlightedTag() 226 when(mViewHolder.itemView.isShown()).thenReturn(true); in updateBackground_highlight_shouldAnimateBackgroundAndSetHighlightedTag() 232 assertThat(mViewHolder.itemView.getBackground()).isInstanceOf(ColorDrawable.class); in updateBackground_highlight_shouldAnimateBackgroundAndSetHighlightedTag() 233 assertThat(mViewHolder.itemView.getTag(R.id.preference_highlighted)).isEqualTo(true); in updateBackground_highlight_shouldAnimateBackgroundAndSetHighlightedTag() 240 ReflectionHelpers.setField(mViewHolder, "itemView", spy(mViewHolder.itemView)); in updateBackground_highlight_itemViewIsInvisible_shouldNotAnimate() 241 when(mViewHolder.itemView.isShown()).thenReturn(false); in updateBackground_highlight_itemViewIsInvisible_shouldNotAnimate() [all …]
|
/packages/apps/TV/src/com/android/tv/guide/ |
D | TimeListAdapter.java | 84 View itemView = holder.itemView; in onBindViewHolder() local 92 ((TextView) itemView.findViewById(R.id.time)).setText(timeString); in onBindViewHolder() 94 RecyclerView.LayoutParams lp = (RecyclerView.LayoutParams) itemView.getLayoutParams(); in onBindViewHolder() 102 itemView.setLayoutParams(lp); in onBindViewHolder() 107 View itemView = LayoutInflater.from(parent.getContext()).inflate(viewType, parent, false); in onCreateViewHolder() local 108 return new TimeViewHolder(itemView); in onCreateViewHolder() 112 TimeViewHolder(View itemView) { in TimeViewHolder() argument 113 super(itemView); in TimeViewHolder()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/dataadapter/ |
D | ExpandedAlarmViewHolder.kt | 56 class ExpandedAlarmViewHolder private constructor(itemView: View, private val mHasVibrator: Boolean) in <lambda>() 57 : AlarmItemViewHolder(itemView) { in <lambda>() 58 val repeat: CheckBox = itemView.findViewById(R.id.repeat_onoff) as CheckBox in <lambda>() 59 private val editLabel: TextView = itemView.findViewById(R.id.edit_label) as TextView in <lambda>() 60 val repeatDays: LinearLayout = itemView.findViewById(R.id.repeat_days) as LinearLayout in <lambda>() 62 val vibrate: CheckBox = itemView.findViewById(R.id.vibrate_onoff) as CheckBox in <lambda>() 63 val ringtone: TextView = itemView.findViewById(R.id.choose_ringtone) as TextView in <lambda>() 64 val delete: TextView = itemView.findViewById(R.id.delete) as TextView in <lambda>() 65 private val hairLine: View = itemView.findViewById(R.id.hairline) in <lambda>() 68 val context: Context = itemView.getContext() in <lambda>() [all …]
|
/packages/apps/TvSystemUI/src/com/android/systemui/tv/media/ |
D | TvMediaOutputAdapter.java | 158 DeviceViewHolder(View itemView) { in DeviceViewHolder() argument 159 super(itemView); in DeviceViewHolder() 160 mIcon = itemView.requireViewById(R.id.media_output_item_icon); in DeviceViewHolder() 161 mTitle = itemView.requireViewById(R.id.media_dialog_item_title); in DeviceViewHolder() 162 mSubtitle = itemView.requireViewById(R.id.media_dialog_item_subtitle); in DeviceViewHolder() 163 mRadioButton = itemView.requireViewById(R.id.media_dialog_radio_button); in DeviceViewHolder() 194 itemView.setOnFocusChangeListener((view, focused) -> { in onBind() 201 itemView.setOnClickListener(v -> transferOutput(mediaDevice)); in onBind() 205 if (itemView.hasFocus()) { in setRadioButtonColor() 220 summary = mediaDevice.getSummaryForTv(itemView.hasFocus() in setSummary() [all …]
|