Home
last modified time | relevance | path

Searched refs:mIcon (Results 1 – 25 of 73) sorted by relevance

123

/packages/apps/Launcher3/src/com/android/launcher3/folder/
DPreviewItemManager.java69 private final FolderIcon mIcon; field in PreviewItemManager
96 mIcon = icon; in PreviewItemManager()
125 mIcon.getMeasuredWidth()); in recomputePreviewDrawingParams()
131 mPrevTopPadding != mIcon.getPaddingTop()) { in computePreviewDrawingParams()
134 mPrevTopPadding = mIcon.getPaddingTop(); in computePreviewDrawingParams()
136 mIcon.mBackground.setup(mIcon.getContext(), mIcon.mActivity, mIcon, mTotalWidth, in computePreviewDrawingParams() local
137 mIcon.getPaddingTop()); in computePreviewDrawingParams()
138 mIcon.mPreviewLayoutRule.init(mIcon.mBackground.previewSize, mIntrinsicIconSize, in computePreviewDrawingParams()
139 Utilities.isRtl(mIcon.getResources())); in computePreviewDrawingParams()
152 return mIcon.mPreviewLayoutRule.computePreviewItemDrawingParams(index, curNumItems, params); in computePreviewItemDrawingParams()
[all …]
/packages/apps/Camera2/src/com/android/camera/ui/
DModeSelectorItem.java46 private ModeIconView mIcon; field in ModeSelectorItem
72 mIcon = (ModeIconView) findViewById(R.id.selector_icon); in onFinishInflate()
99 mIcon.setSelected(selected); in setSelected()
156 mIcon.setIconDrawable(drawableIcon); in setImageResource()
201 if (mVisibleWidth < mMinVisibleWidth + mIcon.getLeft()) { in draw()
202 transX = mMinVisibleWidth + mIcon.getLeft() - mVisibleWidth; in draw()
216 mIcon.setHighlightColor(highlightColor); in setHighlightColor()
223 return mIcon.getHighlightColor(); in getHighlightColor()
231 return mIcon.getLeft() + mMinVisibleWidth; in getMaxVisibleWidth()
240 mIcon.getLocationInWindow(loc); in getIconCenterLocationInWindow()
[all …]
/packages/apps/Messaging/src/com/android/messaging/ui/mediapicker/
DGalleryGridItemView.java62 private ImageView mIcon; field in GalleryGridItemView
86 mIcon = (ImageView) findViewById(R.id.icon); in onFinishInflate()
155 mIcon.setImageResource(R.drawable.ic_photo_library_light); in updateImageView()
156 mIcon.clearColorFilter(); in updateImageView()
158 mIcon.setVisibility(VISIBLE); in updateImageView()
167 mIcon.setImageDrawable( in updateImageView()
172 mIcon.setColorFilter( in updateImageView()
179 mIcon.setVisibility(VISIBLE); in updateImageView()
189 mIcon.setImageResource(R.drawable.ic_video_play_light); in updateImageView()
190 mIcon.clearColorFilter(); in updateImageView()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/keyboard/
DCustomActionsPopup.java44 private final View mIcon; field in CustomActionsPopup
48 mIcon = icon; in CustomActionsPopup()
58 if (mIcon == null || !(mIcon.getTag() instanceof ItemInfo)) { in getActionList()
63 mDelegate.addSupportedActions(mIcon, info, true); in getActionList()
79 PopupMenu popup = new PopupMenu(mLauncher, mIcon); in show()
91 return mDelegate.performAction(mIcon, (ItemInfo) mIcon.getTag(), menuItem.getItemId()); in onMenuItemClick()
/packages/apps/TV/src/com/android/tv/menu/
DPlayControlsButton.java36 private final ImageView mIcon; field in PlayControlsButton
62 mIcon = (ImageView) findViewById(R.id.icon); in PlayControlsButton()
74 mIcon.setImageResource(imageResId); in setImageResId()
85 mIcon.getDrawable().setTint(tintColor); in updateTint()
106 mIcon.getDrawable().setTint((int) animator.getAnimatedValue()); in setFocusedIconColor()
126 mIcon.setVisibility(View.VISIBLE); in setLabel()
129 mIcon.setVisibility(View.GONE); in setLabel()
146 mIcon.setEnabled(enabled); in setEnabled()
147 mIcon.setAlpha(enabled ? ALPHA_ENABLED : ALPHA_DISABLED); in setEnabled()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/toolbar/
DMenuItem.java66 private Drawable mIcon; field in MenuItem
81 mIcon = builder.mIcon; in MenuItem()
286 return mIcon; in getIcon()
291 mIcon = icon; in setIcon()
319 private Drawable mIcon; field in MenuItem.Builder
343 if (mIsActivatable && (mShowIconAndTitle || mIcon == null)) { in build()
357 || !mSearchIcon.equals(mIcon) in build()
367 || !mSettingsIcon.equals(mIcon) in build()
403 mIcon = resId == 0 in setIcon()
415 mIcon = icon; in setIcon()
DSearchView.java46 private final ImageView mIcon; field in SearchView
90 mIcon = requireViewByRefId(this, R.id.car_ui_toolbar_search_icon); in SearchView()
187 mIcon.setImageResource(R.drawable.car_ui_icon_search); in setIcon()
189 mIcon.setImageDrawable(d); in setIcon()
198 mIcon.setImageResource(R.drawable.car_ui_icon_search); in setIcon()
200 mIcon.setImageResource(resId); in setIcon()
213 mIcon.setVisibility(View.GONE); in setPlainText()
217 mIcon.setVisibility(View.VISIBLE); in setPlainText()
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListFilterView.java40 private ImageView mIcon; field in ContactListFilterView
87 mIcon = (ImageView) findViewById(R.id.icon); in bindView()
123 mIcon.setVisibility(View.VISIBLE); in bindView()
125 mIcon.setImageDrawable(mFilter.icon); in bindView()
127 mIcon.setImageResource(R.drawable.unknown_source); in bindView()
141 mIcon.setVisibility(View.VISIBLE); in bindView()
142 mIcon.setImageResource(iconResource); in bindView()
144 mIcon.setVisibility(View.GONE); in bindView()
/packages/apps/TV/src/com/android/tv/parental/
DContentRatingSystem.java331 private final Drawable mIcon; field in ContentRatingSystem.Rating
348 return mIcon; in getIcon()
369 mIcon = icon; in Rating()
378 private Drawable mIcon; field in ContentRatingSystem.Rating.Builder
397 mIcon = icon; in setIcon()
435 return new Rating(mName, mTitle, mDescription, mIcon, mContentAgeHint, subRatings); in build()
444 private final Drawable mIcon; field in ContentRatingSystem.SubRating
459 return mIcon; in getIcon()
466 mIcon = icon; in SubRating()
473 private Drawable mIcon; field in ContentRatingSystem.SubRating.Builder
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DBubbleTextView.java116 private Drawable mIcon; field in BubbleTextView
327 return mIcon; in getIcon()
358 if (mIcon != null) { in onVisibilityAggregated()
359 mIcon.setVisible(isVisible, false); in onVisibilityAggregated()
542 if (mIcon != null) { in applyProgressLevel()
544 if (mIcon instanceof PreloadIconDrawable) { in applyProgressLevel()
545 preloadDrawable = (PreloadIconDrawable) mIcon; in applyProgressLevel()
559 if (mIcon instanceof FastBitmapDrawable) { in applyDotState()
601 mIcon = icon; in setIcon()
602 if (mIcon != null) { in setIcon()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/util/
DContentWriter.java40 private BitmapInfo mIcon; field in ContentWriter
83 mIcon = value; in putIcon()
98 if (mIcon != null && !LauncherAppState.getInstance(context).getIconCache() in getValues()
99 .isDefaultIcon(mIcon, mUser)) { in getValues()
100 mValues.put(LauncherSettings.Favorites.ICON, GraphicsUtils.flattenBitmap(mIcon.icon)); in getValues()
101 mIcon = null; in getValues()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/views/
DLiveTileOverlay.java47 private Drawable mIcon; field in LiveTileOverlay
70 mIcon = icon; in setIcon()
107 if (mIcon != null && mIconAnimationProgress > 0f) { in draw()
111 canvas.translate(mCurrentRect.centerX() - mIcon.getBounds().width() / 2 * scale, in draw()
112 mCurrentRect.top - mIcon.getBounds().height() / 2 * scale); in draw()
114 mIcon.draw(canvas); in draw()
/packages/apps/PermissionController/src/android/support/wearable/view/
DAcceptDenyDialog.java43 protected ImageView mIcon; field in AcceptDenyDialog
88 mIcon = (ImageView) findViewById(android.R.id.icon); in AcceptDenyDialog()
109 mIcon.setVisibility(icon == null ? View.GONE : View.VISIBLE); in setIcon()
110 mIcon.setImageDrawable(icon); in setIcon()
117 mIcon.setVisibility(resId == 0 ? View.GONE : View.VISIBLE); in setIcon()
118 mIcon.setImageResource(resId); in setIcon()
/packages/apps/Contacts/src/com/android/contacts/model/account/
DAccountDisplayInfo.java34 private final Drawable mIcon; field in AccountDisplayInfo
43 mIcon = icon; in AccountDisplayInfo()
60 return mIcon; in getIcon()
88 return new AccountDisplayInfo(mSource, name, type, mIcon, mIsDeviceAccount); in withNameAndType()
94 context.getString(typeFormat, mType), mIcon, mIsDeviceAccount); in formatted()
/packages/apps/Car/Dialer/src/com/android/car/dialer/ui/favorite/
DFavoriteContactViewHolder.java45 private final ImageView mIcon; field in FavoriteContactViewHolder
51 mIcon = v.findViewById(R.id.icon); in FavoriteContactViewHolder()
52 if (mIcon != null) { in FavoriteContactViewHolder()
53 mIcon.setOutlineProvider(ContactAvatarOutputlineProvider.get()); in FavoriteContactViewHolder()
87 TelecomUtils.setContactBitmapAsync(context, mIcon, contact); in onBind()
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/
DPermissionApps.java65 private Drawable mIcon; field in PermissionApps
171 return mIcon; in getIcon()
340 mIcon = info.loadUnbadgedIcon(mPm); in loadGroupInfo()
342 mIcon = mContext.getDrawable(R.drawable.ic_perm_device_info); in loadGroupInfo()
344 mIcon = Utils.applyTint(mContext, mIcon, android.R.attr.colorControlNormal); in loadGroupInfo()
356 private Drawable mIcon; field in PermissionApps.PermissionApp
364 mIcon = icon; in PermissionApp()
381 return mIcon; in getIcon()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/suggestions/
DSuggestionItemView.java37 private View mIcon; field in SuggestionItemView
52 mIcon = findViewById(android.R.id.icon); in onFinishInflate()
74 mIcon.setAlpha(0.3f); in onFinishInflate()
79 mIcon.setAlpha(1.0f); in onFinishInflate()
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DQuickSettingGridAdapter.java188 vh.mIcon.setImageDrawable(tile.getIcon()); in onBindViewHolder()
191 vh.mIcon.setEnabled(true); in onBindViewHolder()
195 vh.mIcon.setEnabled(false); in onBindViewHolder()
220 private final ImageView mIcon; field in QuickSettingGridAdapter.TileViewHolder
226 mIcon = view.findViewById(R.id.tile_icon); in TileViewHolder()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDragShadowBuilder.java36 private final DropBadgeView mIcon; field in DragShadowBuilder
51 mIcon = (DropBadgeView) mShadowView.findViewById(android.R.id.icon); in DragShadowBuilder()
95 mIcon.updateIcon(icon); in updateIcon()
99 mIcon.updateState(state); in onStateUpdated()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiListItemAdapter.java157 final ImageView mIcon; field in CarUiListItemAdapter.ListItemViewHolder
175 mIcon = requireViewByRefId(itemView, R.id.icon); in ListItemViewHolder()
210 mIcon.setVisibility(View.GONE); in bind()
223 mIcon.setVisibility(View.VISIBLE); in bind()
224 mIcon.setImageDrawable(icon); in bind()
312 item.getSupplementalIconOnClickListener().onClick(mIcon); in bind()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DContextualInfo.java9 private final Drawable mIcon; field in ContextualInfo
21 mIcon = icon; in ContextualInfo()
30 return mIcon; in getIcon()
/packages/apps/Settings/src/com/android/settings/security/trustagent/
DTrustAgentInfo.java25 private final Drawable mIcon; field in TrustAgentInfo
30 mIcon = icon; in TrustAgentInfo()
42 return mIcon; in getIcon()
/packages/services/Car/tests/MultiDisplaySecondaryHomeTestLauncher/src/com/android/car/multidisplay/launcher/
DAppEntry.java29 private Drawable mIcon; field in AppEntry
34 mIcon = info.loadIcon(packageManager); in AppEntry()
45 return mIcon; in getIcon()
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/playback/
DPlaybackViewModel.java672 public final int mIcon; field in PlaybackViewModel.RawCustomPlaybackAction
696 mIcon = icon; in RawCustomPlaybackAction()
709 return mIcon == that.mIcon in equals()
717 return Objects.hash(mIcon, mPackageName, mAction, mExtras); in hashCode()
732 icon = context.getDrawable(mIcon); in fetchDrawable()
745 icon = resources.getDrawable(mIcon, null); in fetchDrawable()
/packages/services/Car/tests/SecondaryHomeApp/src/com/android/car/secondaryhome/launcher/
DAppEntry.java36 private final Drawable mIcon; field in AppEntry
40 mIcon = info.loadIcon(packageManager); in AppEntry()
50 return mIcon; in getIcon()

123