Home
last modified time | relevance | path

Searched refs:icon (Results 1 – 25 of 524) sorted by relevance

12345678910>>...21

/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/
DBaseIconFactory.java114 public BitmapInfo createIconBitmap(Bitmap icon) { in createIconBitmap() argument
115 if (mIconBitmapSize != icon.getWidth() || mIconBitmapSize != icon.getHeight()) { in createIconBitmap()
116 icon = createIconBitmap(new BitmapDrawable(mContext.getResources(), icon), 1f); in createIconBitmap()
119 return BitmapInfo.fromBitmap(icon, mDisableColorExtractor ? null : mColorExtractor); in createIconBitmap()
122 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument
124 return createBadgedIconBitmap(icon, user, shrinkNonAdaptiveIcons, false, null); in createBadgedIconBitmap()
127 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument
129 return createBadgedIconBitmap(icon, user, iconAppTargetSdk, false); in createBadgedIconBitmap()
132 public BitmapInfo createBadgedIconBitmap(Drawable icon, UserHandle user, in createBadgedIconBitmap() argument
134 return createBadgedIconBitmap(icon, user, iconAppTargetSdk, isInstantApp, null); in createBadgedIconBitmap()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DActivityPicker.java158 Drawable icon = null; in getItems() local
165 icon = res.getDrawable(res.getIdentifier( in getItems()
171 items.add(new PickAdapter.Item(this, label, icon)); in getItems()
221 Drawable icon; field in ActivityPicker.PickAdapter.Item
229 Item(Context context, CharSequence label, Drawable icon) { in Item() argument
231 this.icon = getResizer(context).createIconThumbnail(icon); in Item()
244 icon = getResizer(context).createIconThumbnail(resolveInfo.loadIcon(pm)); in Item()
318 textView.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null); in getView()
357 public Drawable createIconThumbnail(Drawable icon) { in createIconThumbnail() argument
361 if (icon == null) { in createIconThumbnail()
[all …]
DAppWidgetPickActivity.java98 Drawable icon = null; in createItem() local
100 if (info.icon != 0) { in createItem()
123 icon = packageResources.getDrawableForDensity(info.icon, iconDensity); in createItem()
125 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon) in createItem()
128 if (icon == null) { in createItem()
129 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon) in createItem()
134 PickAdapter.Item item = new PickAdapter.Item(context, label, icon); in createItem()
/packages/apps/Settings/src/com/android/settings/
DActivityPicker.java158 Drawable icon = null; in getItems() local
165 icon = res.getDrawable(res.getIdentifier( in getItems()
171 items.add(new PickAdapter.Item(this, label, icon)); in getItems()
221 Drawable icon; field in ActivityPicker.PickAdapter.Item
229 Item(Context context, CharSequence label, Drawable icon) { in Item() argument
231 this.icon = getResizer(context).createIconThumbnail(icon); in Item()
244 icon = getResizer(context).createIconThumbnail(resolveInfo.loadIcon(pm)); in Item()
318 textView.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null); in getView()
357 public Drawable createIconThumbnail(Drawable icon) { in createIconThumbnail() argument
361 if (icon == null) { in createIconThumbnail()
[all …]
DAppWidgetPickActivity.java98 Drawable icon = null; in createItem() local
100 if (info.icon != 0) { in createItem()
123 icon = packageResources.getDrawableForDensity(info.icon, iconDensity); in createItem()
125 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon) in createItem()
128 if (icon == null) { in createItem()
129 Log.w(TAG, "Can't load icon drawable 0x" + Integer.toHexString(info.icon) in createItem()
134 PickAdapter.Item item = new PickAdapter.Item(context, label, icon); in createItem()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryEntry.java127 public Drawable icon; field in BatteryEntry
134 Drawable icon; field in BatteryEntry.UidToDetail
192 icon = Utils.getUserIcon(context, um, info); in BatteryEntry()
195 icon = null; in BatteryEntry()
218 icon = context.getDrawable(iconId); in BatteryEntry()
226 return icon; in getIcon()
249 icon = utd.icon; in getQuickNameIconForUid()
253 icon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid()
263 icon = context.getDrawable(iconId); in getQuickNameIconForUid()
309 if (ai.icon != 0) { in loadNameAndIcon()
[all …]
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryEntry.java127 public Drawable icon; field in BatteryEntry
134 Drawable icon; field in BatteryEntry.UidToDetail
192 icon = Utils.getUserIcon(context, um, info); in BatteryEntry()
195 icon = null; in BatteryEntry()
218 icon = context.getDrawable(iconId); in BatteryEntry()
226 return icon; in getIcon()
249 icon = utd.icon; in getQuickNameIconForUid()
253 icon = pm.getDefaultActivityIcon(); in getQuickNameIconForUid()
263 icon = context.getDrawable(iconId); in getQuickNameIconForUid()
309 if (ai.icon != 0) { in loadNameAndIcon()
[all …]
/packages/apps/PermissionController/src/android/support/wearable/view/
DWearableDialogHelper.java88 public WearableDialogHelper setPositiveIcon(@Nullable Drawable icon) { in setPositiveIcon() argument
89 mPositiveIcon = icon; in setPositiveIcon()
102 public WearableDialogHelper setNegativeIcon(@Nullable Drawable icon) { in setNegativeIcon() argument
103 mNegativeIcon = icon; in setNegativeIcon()
116 public WearableDialogHelper setNeutralIcon(@Nullable Drawable icon) { in setNeutralIcon() argument
117 mNeutralIcon = icon; in setNeutralIcon()
177 public DialogBuilder setPositiveIcon(@Nullable Drawable icon) { in setPositiveIcon() argument
178 mHelper.setPositiveIcon(icon); in setPositiveIcon()
187 public DialogBuilder setNegativeIcon(@Nullable Drawable icon) { in setNegativeIcon() argument
188 mHelper.setNegativeIcon(icon); in setNegativeIcon()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DIconUtils.java28 public static Drawable loadPackageIcon(Context context, String authority, int icon) { in loadPackageIcon() argument
29 if (icon != 0) { in loadPackageIcon()
34 return pm.getDrawable(info.packageName, icon, info.applicationInfo); in loadPackageIcon()
37 return context.getDrawable(icon); in loadPackageIcon()
60 final Drawable icon = context.getDrawable(drawableId); in applyTintColor() local
61 return applyTintColor(context, icon, tintColorId); in applyTintColor()
64 public static Drawable applyTintColor(Context context, Drawable icon, int tintColorId) { in applyTintColor() argument
65 icon.mutate(); in applyTintColor()
66 icon.setTintList(context.getColorStateList(tintColorId)); in applyTintColor()
67 return icon; in applyTintColor()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationInfo.java71 Icon icon = iconType == Notification.BADGE_ICON_SMALL ? null : notification.getLargeIcon(); in NotificationInfo() local
72 if (icon == null) { in NotificationInfo()
74 icon = notification.getSmallIcon(); in NotificationInfo()
75 mIconDrawable = icon == null ? null : icon.loadDrawable(context); in NotificationInfo()
80 mIconDrawable = icon.loadDrawable(context); in NotificationInfo()
86 .getDefaultIcon(statusBarNotification.getUser()).icon); in NotificationInfo()
120 Drawable icon = mIconDrawable.mutate(); in getIconForBackground() local
123 icon.setTintList(null); in getIconForBackground()
124 icon.setTint(mIconColor); in getIconForBackground()
125 return icon; in getIconForBackground()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDefaultSuggestionView.java187 NowOrLater<Drawable> icon = source.getIcon(sourceIconId); in set() local
188 if (icon.haveNow()) { in set()
190 handleNewDrawable(icon.getNow(), uniqueIconId, source); in set()
195 icon.getLater(new Consumer<Drawable>(){ in set()
197 public boolean consume(Drawable icon) { in set()
204 handleNewDrawable(icon, uniqueIconId, source); in set()
217 private void handleNewDrawable(Drawable icon, String id, Source source) { in handleNewDrawable() argument
218 if (icon == null) { in handleNewDrawable()
223 icon = getFallbackIcon(source); in handleNewDrawable()
225 setDrawable(icon, id); in handleNewDrawable()
[all …]
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DPredictionRowView.java241 BubbleTextView icon = (BubbleTextView) mLauncher.getLayoutInflater().inflate( in applyPredictionApps() local
243 icon.setOnClickListener(PREDICTION_CLICK_LISTENER); in applyPredictionApps()
244 icon.setOnLongClickListener(ItemLongClickListener.INSTANCE_ALL_APPS); in applyPredictionApps()
245 icon.setLongPressTimeoutFactor(1f); in applyPredictionApps()
246 icon.setOnFocusChangeListener(mFocusHelper); in applyPredictionApps()
248 LayoutParams lp = (LayoutParams) icon.getLayoutParams(); in applyPredictionApps()
253 addView(icon); in applyPredictionApps()
261 BubbleTextView icon = (BubbleTextView) getChildAt(i); in applyPredictionApps() local
262 icon.reset(); in applyPredictionApps()
264 icon.setVisibility(View.VISIBLE); in applyPredictionApps()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderIcon.java167 FolderIcon icon = (FolderIcon) LayoutInflater.from(group.getContext()) in fromXml() local
170 icon.setClipToPadding(false); in fromXml()
171 icon.mFolderName = icon.findViewById(R.id.folder_icon_name); in fromXml()
172 icon.mFolderName.setText(folderInfo.title); in fromXml()
173 icon.mFolderName.setCompoundDrawablePadding(0); in fromXml()
174 FrameLayout.LayoutParams lp = (FrameLayout.LayoutParams) icon.mFolderName.getLayoutParams(); in fromXml()
177 icon.setTag(folderInfo); in fromXml()
178 icon.setOnClickListener(ItemClickHandler.INSTANCE); in fromXml()
179 icon.mInfo = folderInfo; in fromXml()
180 icon.mLauncher = launcher; in fromXml()
[all …]
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/preference/
DPreferenceDialogFragment.java74 Drawable icon = mPreference.getDialogIcon(); in onCreate() local
75 if (icon == null || icon instanceof BitmapDrawable) { in onCreate()
76 mDialogIcon = (BitmapDrawable) icon; in onCreate()
78 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), in onCreate()
79 icon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in onCreate()
81 icon.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); in onCreate()
82 icon.draw(canvas); in onCreate()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java117 public void stopLoading(ImageView icon) { in stopLoading() argument
118 final ThumbnailLoader oldTask = (ThumbnailLoader) icon.getTag(); in stopLoading()
121 icon.setTag(null); in stopLoading()
139 load(doc.derivedUri, doc.mimeType, doc.flags, doc.icon, doc.lastModified, in load()
221 private void setMimeIcon(ImageView view, Drawable icon) { in setMimeIcon() argument
222 view.setImageDrawable(icon); in setMimeIcon()
232 Context context, String authority, String id, String mimeType, int icon) { in getDocumentIcon() argument
233 if (icon != 0) { in getDocumentIcon()
234 return IconUtils.loadPackageIcon(context, authority, icon); in getDocumentIcon()
245 context, doc.authority, doc.documentId, doc.mimeType, doc.icon); in getDocumentIcon()
/packages/apps/Car/libs/car-ui-lib/src/com/android/car/ui/recyclerview/
DCarUiContentListItem.java167 public void setIcon(@Nullable Drawable icon) { in setIcon() argument
168 mIcon = icon; in setIcon()
183 public void setPrimaryIconType(IconType icon) { in setPrimaryIconType() argument
184 mPrimaryIconType = icon; in setPrimaryIconType()
288 public void setSupplementalIcon(@Nullable Drawable icon) { in setSupplementalIcon() argument
289 setSupplementalIcon(icon, null); in setSupplementalIcon()
298 public void setSupplementalIcon(@Nullable Drawable icon, in setSupplementalIcon() argument
306 mSupplementalIcon = icon; in setSupplementalIcon()
/packages/apps/Dialer/java/com/android/incallui/incall/impl/
DButtonController.java157 @DrawableRes private final int icon; field in ButtonController.SimpleCheckableButtonController
165 @DrawableRes int icon) { in SimpleCheckableButtonController() argument
172 this.icon = icon; in SimpleCheckableButtonController()
181 button.setIconDrawable(icon); in setButton()
262 @DrawableRes private final int icon; field in ButtonController.SimpleNonCheckableButtonController
269 @DrawableRes int icon) { in SimpleNonCheckableButtonController() argument
272 this.icon = icon; in SimpleNonCheckableButtonController()
281 button.setIconDrawable(icon); in setButton()
314 @DrawableRes private int icon = R.drawable.quantum_ic_volume_up_vd_theme_24; field in ButtonController.SpeakerButtonController
373 button.setIconDrawable(icon); in setButton()
[all …]
/packages/apps/Stk/src/com/android/stk/
DStkMenuConfig.java68 public String icon; field in StkMenuConfig.Config
70 public Config(int mcc, int mnc, String label, String icon) { in Config() argument
74 this.icon = icon; in Config()
105 if (mConfigs[slotId].icon != null) { in getIcon()
106 int resId = mContext.getResources().getIdentifier(mConfigs[slotId].icon, in getIcon()
111 if (DBG) CatLog.d(LOG_TAG, "getIcon: " + mConfigs[slotId].icon + ", slot id: " + slotId); in getIcon()
178 String icon = parser.getAttributeValue(null, XML_ICON_ATTR); in initialize() local
180 Config config = new Config(mcc, mnc, label, icon); in initialize()
/packages/apps/Contacts/src/com/android/contacts/drawer/
DDrawerAdapter.java224 final ImageView iconView = (ImageView) result.findViewById(R.id.icon); in getPrimaryItemView()
225 iconView.setImageResource(item.icon); in getPrimaryItemView()
255 final ImageView icon = (ImageView) result.findViewById(R.id.icon); in getGroupEntryView() local
256 icon.setImageResource(R.drawable.quantum_ic_label_vd_theme_24); in getGroupEntryView()
259 updateSelectedStatus(title, icon, activated); in getGroupEntryView()
281 final ImageView icon = (ImageView) result.findViewById(R.id.icon); in getAccountItemView() local
284 icon.setScaleType(ImageView.ScaleType.FIT_CENTER); in getAccountItemView()
285 icon.setImageDrawable(displayableAccount.getIcon()); in getAccountItemView()
301 final ImageView iconView = (ImageView) result.findViewById(R.id.icon); in getDrawerItemView()
302 iconView.setImageResource(item.icon); in getDrawerItemView()
[all …]
/packages/apps/Launcher3/iconloaderlib/src/com/android/launcher3/icons/cache/
DBaseIconCache.java262 if (entry == null || entry.icon == null || entry.isLowRes()) { in addIconToDBAndMemCache()
273 if (entry.icon == null) return; in addIconToDBAndMemCache()
303 public boolean isDefaultIcon(Bitmap icon, UserHandle user) { in isDefaultIcon() argument
304 return getDefaultIcon(user).icon == icon; in isDefaultIcon()
346 if (entry.icon == null) { in cacheLocked()
378 Bitmap icon, CharSequence title) { in cachePackageInstallInfo() argument
391 if (icon != null) { in cachePackageInstallInfo()
393 li.createIconBitmap(icon).applyTo(entry); in cachePackageInstallInfo()
396 if (!TextUtils.isEmpty(title) && entry.icon != null) { in cachePackageInstallInfo()
441 entry.icon = useLowResIcon ? LOW_RES_ICON : iconInfo.icon; in getEntryForPackageLocked()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/model/
DPermissionGroups.java124 Drawable icon = null; in loadItemInfoIcon() local
125 if (itemInfo.icon > 0) { in loadItemInfoIcon()
126 icon = Utils.loadDrawable(context.getPackageManager(), in loadItemInfoIcon()
127 itemInfo.packageName, itemInfo.icon); in loadItemInfoIcon()
129 if (icon == null) { in loadItemInfoIcon()
130 icon = context.getDrawable(R.drawable.ic_perm_device_info); in loadItemInfoIcon()
132 return icon; in loadItemInfoIcon()
216 Drawable icon = loadItemInfoIcon(context, groupInfo); in getPermissionGroups() local
224 groupInfo.packageName, label, icon, permApps.getTotalCount(), in getPermissionGroups()
275 Drawable icon = loadItemInfoIcon(context, permissionInfo); in getPermissionGroups() local
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactListFilter.java68 public final Drawable icon; field in ContactListFilter
72 Drawable icon) { in ContactListFilter() argument
77 this.icon = icon; in ContactListFilter()
85 String dataSet, Drawable icon) { in createAccountFilter() argument
87 accountName, dataSet, icon); in createAccountFilter()
96 public static ContactListFilter createDeviceContactsFilter(Drawable icon) { in createDeviceContactsFilter() argument
98 /* accountType= */ null, /* accountName= */ null, /* dataSet= */ null, icon); in createDeviceContactsFilter()
101 public static ContactListFilter createDeviceContactsFilter(Drawable icon, in createDeviceContactsFilter() argument
104 account.type, account.name, account.dataSet, icon); in createDeviceContactsFilter()
366 builder.append(", icon: " + icon + "]"); in toDebugString()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardIconsSet.java116 final Drawable icon = keyboardAttrs.getDrawable(attrId); in loadIcons() local
117 setDefaultBounds(icon); in loadIcons()
119 mIcons[iconId] = icon; in loadIcons()
162 private static void setDefaultBounds(final Drawable icon) { in setDefaultBounds() argument
163 if (icon != null) { in setDefaultBounds()
164 icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight()); in setDefaultBounds()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/handheld/
DManagePermissionsFragment.java178 ImageView icon = ((ImageView) holder.findViewById(android.R.id.icon)); in onBindViewHolder() local
179 icon.setAdjustViewBounds(true); in onBindViewHolder()
182 icon.setMaxWidth(size); in onBindViewHolder()
183 icon.setMaxHeight(size); in onBindViewHolder()
184 icon.getLayoutParams().width = size; in onBindViewHolder()
185 icon.getLayoutParams().height = size; in onBindViewHolder()
186 icon.setScaleType(ImageView.ScaleType.FIT_CENTER); in onBindViewHolder()
/packages/apps/Launcher3/src/com/android/launcher3/dragndrop/
DFolderAdaptiveIcon.java90 FolderIcon icon = launcher.findFolderIcon(folderId); in createFolderAdaptiveIcon()
91 return icon == null ? null : createDrawableOnUiThread(icon, badge, dragViewSize); in createFolderAdaptiveIcon()
102 private static FolderAdaptiveIcon createDrawableOnUiThread(FolderIcon icon, in createDrawableOnUiThread() argument
105 float margin = icon.getResources().getDimension(R.dimen.blur_size_medium_outline) / 2; in createDrawableOnUiThread()
108 PreviewBackground bg = icon.getFolderBackground(); in createDrawableOnUiThread()
114 icon.drawDot(c); in createDrawableOnUiThread()
129 icon.getPreviewItemManager().draw(canvas); in createDrawableOnUiThread()

12345678910>>...21