Home
last modified time | relevance | path

Searched refs:itemView (Results 1 – 25 of 81) sorted by relevance

1234

/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/ui/view/
DMediaViewHolder.kt37 class MediaViewHolder constructor(itemView: View) {
38 val player = itemView as TransitionLayout
41 val albumView = itemView.requireViewById<ImageView>(R.id.album_art)
42 val multiRippleView = itemView.requireViewById<MultiRippleView>(R.id.touch_ripple_view)
44 itemView.requireViewById<TurbulenceNoiseView>(R.id.turbulence_noise_view)
45 val loadingEffectView = itemView.requireViewById<LoadingEffectView>(R.id.loading_effect_view)
46 val appIcon = itemView.requireViewById<ImageView>(R.id.icon)
47 val titleText = itemView.requireViewById<TextView>(R.id.header_title)
48 val artistText = itemView.requireViewById<TextView>(R.id.header_artist)
49 val explicitIndicator = itemView.requireViewById<CachingIconView>(R.id.media_explicit_indicator)
[all …]
DRecommendationViewHolder.kt33 class RecommendationViewHolder private constructor(itemView: View) { in <lambda>()
35 val recommendations = itemView as TransitionLayout in <lambda>()
38 val cardTitle: TextView = itemView.requireViewById(R.id.media_rec_title) in <lambda>()
42 itemView.requireViewById(R.id.media_cover1_container), in <lambda>()
43 itemView.requireViewById(R.id.media_cover2_container), in <lambda>()
44 itemView.requireViewById(R.id.media_cover3_container) in <lambda>()
62 val gutsViewHolder = GutsViewHolder(itemView) in <lambda>()
86 val itemView = in <lambda>() constant
91 itemView.layoutDirection = View.LAYOUT_DIRECTION_LOCALE in <lambda>()
92 return RecommendationViewHolder(itemView) in <lambda>()
DGutsViewHolder.kt38 class GutsViewHolder constructor(itemView: View) {
39 val gutsText: TextView = itemView.requireViewById(R.id.remove_text)
40 val cancel: View = itemView.requireViewById(R.id.cancel)
41 val cancelText: TextView = itemView.requireViewById(R.id.cancel_text)
42 val dismiss: ViewGroup = itemView.requireViewById(R.id.dismiss)
43 val dismissText: TextView = itemView.requireViewById(R.id.dismiss_text)
44 val settings: ImageButton = itemView.requireViewById(R.id.settings)
/frameworks/base/core/java/com/android/internal/view/menu/
DBaseMenuPresenter.java98 final View itemView = getItemView(item, convertView, parent); in updateMenuView() local
101 itemView.setPressed(false); in updateMenuView()
102 itemView.jumpDrawablesToCurrentState(); in updateMenuView()
104 if (itemView != convertView) { in updateMenuView()
105 addItemView(itemView, childIndex); in updateMenuView()
126 protected void addItemView(View itemView, int childIndex) { in addItemView() argument
127 final ViewGroup currentParent = (ViewGroup) itemView.getParent(); in addItemView()
129 currentParent.removeView(itemView); in addItemView()
131 ((ViewGroup) mMenuView).addView(itemView, childIndex); in addItemView()
174 MenuView.ItemView itemView; in getItemView() local
[all …]
DMenuPopup.java141 View itemView = null; in measureIndividualMenuWidth() local
151 itemView = null; in measureIndividualMenuWidth()
158 itemView = adapter.getView(i, itemView, parent); in measureIndividualMenuWidth()
159 itemView.measure(widthMeasureSpec, heightMeasureSpec); in measureIndividualMenuWidth()
161 final int itemWidth = itemView.getMeasuredWidth(); in measureIndividualMenuWidth()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DAccessibilityTargetAdapter.java87 holder.itemView.setOnClickListener((v) -> target.onSelected()); in onBindViewHolder()
88 holder.itemView.setStateDescription(target.getStateDescription()); in onBindViewHolder()
89 holder.itemView.setContentDescription(target.getLabel()); in onBindViewHolder()
92 ? holder.itemView.getResources().getString( in onBindViewHolder()
95 ViewCompat.replaceAccessibilityAction(holder.itemView, in onBindViewHolder()
132 ViewHolder(View itemView) { in ViewHolder() argument
133 super(itemView); in ViewHolder()
134 mIconView = itemView.findViewById(R.id.icon_view); in ViewHolder()
148 itemView.setPaddingRelative(padding, padding, padding, 0); in updateItemPadding()
153 TopViewHolder(View itemView) { in TopViewHolder() argument
[all …]
/frameworks/opt/setupwizard/library/recyclerview/src/com/android/setupwizardlib/items/
DItemViewHolder.java29 ItemViewHolder(View itemView) { in ItemViewHolder() argument
30 super(itemView); in ItemViewHolder()
45 itemView.setClickable(isEnabled); in setEnabled()
46 itemView.setEnabled(isEnabled); in setEnabled()
47 itemView.setFocusable(isEnabled); in setEnabled()
/frameworks/base/core/java/com/android/internal/widget/
DDefaultItemAnimator.java134 View view = moves.get(0).holder.itemView; in runPendingAnimations()
158 holder.itemView.postOnAnimationDelayed(changer, getRemoveDuration()); in runPendingAnimations()
184 View view = additions.get(0).itemView; in runPendingAnimations()
200 final View view = holder.itemView; in animateRemoveImpl()
224 holder.itemView.setAlpha(0); in animateAdd()
230 final View view = holder.itemView; in animateAddImpl()
258 final View view = holder.itemView; in animateMove()
259 fromX += holder.itemView.getTranslationX(); in animateMove()
260 fromY += holder.itemView.getTranslationY(); in animateMove()
279 final View view = holder.itemView; in animateMoveImpl()
[all …]
/frameworks/base/core/java/com/android/internal/widget/helper/
DItemTouchHelper.java316 if (mPendingCleanup.remove(animation.mViewHolder.itemView)) {
502 outPosition[0] = mSelectedStartX + mDx - mSelected.itemView.getLeft(); in getSelectedDxDy()
504 outPosition[0] = mSelected.itemView.getTranslationX(); in getSelectedDxDy()
507 outPosition[1] = mSelectedStartY + mDy - mSelected.itemView.getTop(); in getSelectedDxDy()
509 outPosition[1] = mSelected.itemView.getTranslationY(); in getSelectedDxDy()
559 mOverdrawChild = selected.itemView; in select()
568 if (prevSelected.itemView.getParent() != null) { in select()
617 mPendingCleanup.add(prevSelected.itemView); in select()
626 if (mOverdrawChild == prevSelected.itemView) { in select()
627 removeChildDrawingOrderCallbackIfNecessary(prevSelected.itemView); in select()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlAdapter.kt188 private val frame: View = itemView.requireViewById(R.id.frame)
189 private val divider: View = itemView.requireViewById(R.id.divider)
201 private val zone: TextView = itemView as TextView
223 itemView.context.getString(R.string.accessibility_control_favorite)
225 itemView.context.getString(R.string.accessibility_control_not_favorite)
227 private val icon: ImageView = itemView.requireViewById(R.id.icon)
228 private val title: TextView = itemView.requireViewById(R.id.title)
229 private val subtitle: TextView = itemView.requireViewById(R.id.subtitle)
230 private val removed: TextView = itemView.requireViewById(R.id.status)
231 private val favorite: CheckBox = itemView.requireViewById<CheckBox>(R.id.favorite).apply { in <lambda>()
[all …]
DStructureAdapter.kt52 recyclerView = itemView.requireViewById<RecyclerView>(R.id.listAll) in <lambda>()
53 val elevation = itemView.context.resources.getFloat(R.dimen.control_card_elevation) in <lambda>()
63 val margin = itemView.context.resources in setUpRecyclerView()
66 val spanCount = ControlAdapter.findMaxColumns(itemView.resources) in setUpRecyclerView()
DAppAdapter.kt101 val view: View = itemView
103 private val icon: ImageView = itemView.requireViewById(com.android.internal.R.id.icon)
104 private val title: TextView = itemView.requireViewById(com.android.internal.R.id.title)
105 private val favorites: TextView = itemView.requireViewById(R.id.favorites)
/frameworks/base/core/java/com/android/internal/app/
DBilingualSuggestedLocaleAdapter.java134 private void setItemState(boolean selected, View itemView) { in setItemState() argument
135 RelativeLayout background = (RelativeLayout) itemView; in setItemState()
136 ImageView indicator = itemView.findViewById(R.id.indicator); in setItemState()
137 TextView textNative = itemView.findViewById(R.id.locale_native); in setItemState()
138 TextView textSecondary = itemView.findViewById(R.id.locale_secondary); in setItemState()
164 private void setLocaleToListItem(View itemView, LocaleStore.LocaleInfo localeInfo) { in setLocaleToListItem() argument
169 TextView textNative = (TextView) itemView.findViewById(R.id.locale_native); in setLocaleToListItem()
174 TextView textSecondary = itemView.findViewById(R.id.locale_secondary); in setLocaleToListItem()
180 itemView.setLayoutDirection(layoutDir); in setLocaleToListItem()
DSuggestedLocaleAdapter.java222 View itemView = getNewViewIfNeeded(convertView, parent, itemType, position); in getView() local
226 TextView textView = (TextView) itemView; in getView()
250 title = itemView.findViewById(R.id.language_picker_item); in getView()
252 title = itemView.findViewById(R.id.locale); in getView()
257 updateTextView(itemView, in getView()
258 itemView.findViewById(R.id.language_picker_item), position); in getView()
261 updateTextView(itemView, itemView.findViewById(R.id.locale), position); in getView()
264 return itemView; in getView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/hearingaid/
DHearingDevicesListAdapter.java110 DeviceItemViewHolder(@NonNull View itemView, Context context) { in DeviceItemViewHolder() argument
111 super(itemView); in DeviceItemViewHolder()
113 mContainer = itemView.requireViewById(R.id.bluetooth_device_row); in DeviceItemViewHolder()
114 mNameView = itemView.requireViewById(R.id.bluetooth_device_name); in DeviceItemViewHolder()
115 mSummaryView = itemView.requireViewById(R.id.bluetooth_device_summary); in DeviceItemViewHolder()
116 mIconView = itemView.requireViewById(R.id.bluetooth_device_icon); in DeviceItemViewHolder()
117 mGearView = itemView.requireViewById(R.id.gear_icon); in DeviceItemViewHolder()
/frameworks/base/packages/CompanionDeviceManager/src/com/android/companiondevicemanager/
DDeviceListAdapter.java78 holder.itemView.setSelected(mSelectedPosition == position); in onBindViewHolder()
80 holder.itemView.setOnClickListener(v -> mListener.onItemClick(position)); in onBindViewHolder()
110 ViewHolder(View itemView) { in ViewHolder() argument
111 super(itemView); in ViewHolder()
112 mTextView = itemView.findViewById(android.R.id.text1); in ViewHolder()
113 mImageView = itemView.findViewById(android.R.id.icon); in ViewHolder()
DPermissionListAdapter.java127 ViewHolder(View itemView) { in ViewHolder() argument
128 super(itemView); in ViewHolder()
129 mPermissionName = itemView.findViewById(R.id.permission_name); in ViewHolder()
130 mPermissionSummary = itemView.findViewById(R.id.permission_summary); in ViewHolder()
131 mPermissionIcon = itemView.findViewById(R.id.permission_icon); in ViewHolder()
132 mExpandButton = itemView.findViewById(R.id.permission_expand_button); in ViewHolder()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DLayoutPreferenceTest.java59 mHolder.itemView.callOnClick(); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent()
62 assertThat(mHolder.itemView.isFocusable()).isTrue(); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent()
63 assertThat(mHolder.itemView.isClickable()).isTrue(); in setOnPreferenceClickListener_layoutPreferenceShouldListenClickEvent()
71 assertThat(mHolder.itemView.isFocusable()).isFalse(); in setNonSelectable_viewShouldNotBeSelectable()
72 assertThat(mHolder.itemView.isClickable()).isFalse(); in setNonSelectable_viewShouldNotBeSelectable()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoDialog.java85 ((ImageView) holder.itemView.findViewById(R.id.icon)) in onBindViewHolder()
87 ((TextView) holder.itemView.findViewById(R.id.text)) in onBindViewHolder()
89 holder.itemView.setOnClickListener(new View.OnClickListener() { in onBindViewHolder()
105 public Holder(View itemView) { in Holder() argument
106 super(itemView); in Holder()
DNekoLand.java219 Context context = holder.itemView.getContext(); in onBindViewHolder()
223 holder.itemView.setOnClickListener(new View.OnClickListener() { in onBindViewHolder()
229 holder.itemView.setOnLongClickListener(new OnLongClickListener() { in onBindViewHolder()
331 public CatHolder(View itemView) { in CatHolder() argument
332 super(itemView); in CatHolder()
333 imageView = (ImageView) itemView.findViewById(android.R.id.icon); in CatHolder()
334 textView = (TextView) itemView.findViewById(android.R.id.title); in CatHolder()
335 contextGroup = itemView.findViewById(R.id.contextGroup); in CatHolder()
336 delete = itemView.findViewById(android.R.id.closeButton); in CatHolder()
337 share = itemView.findViewById(android.R.id.shareText); in CatHolder()
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/
DMailAdapter.java83 ViewHolder(@NonNull View itemView, NavController navController) { in ViewHolder() argument
84 super(itemView); in ViewHolder()
86 itemView.setOnClickListener(this::onClick); in ViewHolder()
87 mImageView = itemView.findViewById(R.id.mail_row_item_icon); in ViewHolder()
88 mTextView = itemView.findViewById(R.id.mail_row_item_text); in ViewHolder()
89 mDisplayMetrics = itemView.getContext().getResources().getDisplayMetrics(); in ViewHolder()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DDividerItemDecorationTest.java161 final View itemView = new View(context); in drawDecoration()
162 itemView.setMinimumWidth(20); in drawDecoration()
163 itemView.setMinimumHeight(5); in drawDecoration()
164 return ViewHolder.createInstance(itemView, allowDividerAbove, allowDividerBelow); in drawDecoration()
201 View itemView, boolean allowDividerAbove, boolean allowDividerBelow) { in createInstance() argument
202 return new ViewHolder(itemView, allowDividerAbove, allowDividerBelow); in createInstance()
205 private ViewHolder(View itemView, boolean allowDividerAbove, boolean allowDividerBelow) { in ViewHolder() argument
206 super(itemView); in ViewHolder()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/binder/
DBiometricCustomizedViewBinder.kt144 val itemView = item.toView(context, inflater) in PromptVerticalListContentView() constant
145 contentView.removeTopPaddingForFirstRow(description, itemView) in PromptVerticalListContentView()
152 currRow.addView(itemView) in PromptVerticalListContentView()
263 private fun LinearLayout.removeTopPaddingForFirstRow(description: String?, itemView: TextView) { in addSpaceViewBetweenListItem()
267 itemView.setPadding(itemView.paddingLeft, 0, itemView.paddingRight, itemView.paddingBottom) in addSpaceViewBetweenListItem()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/
DBubbleBarMenuView.java88 BubbleBarMenuItemView itemView = (BubbleBarMenuItemView) inflater.inflate( in updateActions() local
90 itemView.update(action.mIcon, action.mTitle, action.mTint); in updateActions()
91 itemView.setOnClickListener(action.mOnClick); in updateActions()
92 mActionsSectionView.addView(itemView); in updateActions()
/frameworks/base/packages/SettingsLib/LayoutPreference/src/com/android/settingslib/widget/
DLayoutPreference.java134 holder.itemView.setOnClickListener(mClickListener); in onBindViewHolder()
137 holder.itemView.setFocusable(selectable); in onBindViewHolder()
138 holder.itemView.setClickable(selectable); in onBindViewHolder()
142 FrameLayout layout = (FrameLayout) holder.itemView; in onBindViewHolder()

1234