Home
last modified time | relevance | path

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

12345678910>>...23

/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/
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/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/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/PermissionController/src/android/support/wearable/view/
DWearableDialogHelper.java89 public WearableDialogHelper setPositiveIcon(@Nullable Drawable icon) { in setPositiveIcon() argument
90 mPositiveIcon = icon; in setPositiveIcon()
103 public WearableDialogHelper setNegativeIcon(@Nullable Drawable icon) { in setNegativeIcon() argument
104 mNegativeIcon = icon; in setNegativeIcon()
117 public WearableDialogHelper setNeutralIcon(@Nullable Drawable icon) { in setNeutralIcon() argument
118 mNeutralIcon = icon; in setNeutralIcon()
178 public DialogBuilder setPositiveIcon(@Nullable Drawable icon) { in setPositiveIcon() argument
179 mHelper.setPositiveIcon(icon); in setPositiveIcon()
188 public DialogBuilder setNegativeIcon(@Nullable Drawable icon) { in setNegativeIcon() argument
189 mHelper.setNegativeIcon(icon); in setNegativeIcon()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/
DIconUtils.java29 int icon, boolean maybeShowBadge) { in loadPackageIcon() argument
30 if (icon != 0) { in loadPackageIcon()
36 packageIcon = pm.getDrawable(info.packageName, icon, info.applicationInfo); in loadPackageIcon()
39 packageIcon = userId.getDrawable(context, icon); in loadPackageIcon()
68 final Drawable icon = context.getDrawable(drawableId); in applyTintColor() local
69 return applyTintColor(context, icon, tintColorId); in applyTintColor()
72 public static Drawable applyTintColor(Context context, Drawable icon, int tintColorId) { in applyTintColor() argument
73 icon.mutate(); in applyTintColor()
74 icon.setTintList(context.getColorStateList(tintColorId)); in applyTintColor()
75 return icon; in applyTintColor()
/packages/apps/Launcher3/src/com/android/launcher3/notification/
DNotificationInfo.java76 Icon icon = iconType == Notification.BADGE_ICON_SMALL ? null : notification.getLargeIcon(); in NotificationInfo() local
77 if (icon == null) { in NotificationInfo()
79 icon = notification.getSmallIcon(); in NotificationInfo()
80 mIconDrawable = icon == null ? null : icon.loadDrawable(context); in NotificationInfo()
85 mIconDrawable = icon.loadDrawable(context); in NotificationInfo()
91 .getDefaultIcon(statusBarNotification.getUser()).icon); in NotificationInfo()
128 Drawable icon = mIconDrawable.mutate(); in getIconForBackground() local
131 icon.setTintList(null); in getIconForBackground()
132 icon.setTint(mIconColor); in getIconForBackground()
133 return icon; in getIconForBackground()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderIcon.java174 FolderIcon icon = inflateIcon(resId, launcher, group, folderInfo); in inflateFolderAndIcon() local
175 folder.setFolderIcon(icon); in inflateFolderAndIcon()
177 icon.setFolder(folder); in inflateFolderAndIcon()
179 icon.setOnFocusChangeListener(launcher.getFocusHandler()); in inflateFolderAndIcon()
180 return icon; in inflateFolderAndIcon()
194 FolderIcon icon = (FolderIcon) LayoutInflater.from(group.getContext()) in inflateIcon() local
197 icon.setClipToPadding(false); in inflateIcon()
198 icon.mFolderName = icon.findViewById(R.id.folder_icon_name); in inflateIcon()
199 icon.mFolderName.setText(folderInfo.title); in inflateIcon()
200 icon.mFolderName.setCompoundDrawablePadding(0); in inflateIcon()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/imewidescreen/
DCarUiImeSearchListItem.java50 public void setIcon(@Nullable Drawable icon) { in setIcon() argument
51 if (icon instanceof BitmapDrawable || icon == null) { in setIcon()
52 super.setIcon(icon); in setIcon()
65 public void setSupplementalIcon(@Nullable Drawable icon, in setSupplementalIcon() argument
67 if (icon instanceof BitmapDrawable || icon == null) { in setSupplementalIcon()
68 super.setSupplementalIcon(icon, listener); in setSupplementalIcon()
/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/hybridhotseat/
DHotseatPredictionController.java252 PredictedAppIcon icon = (PredictedAppIcon) child; in fillGapsWithPrediction() local
253 icon.applyFromWorkspaceItem(predictedItem); in fillGapsWithPrediction()
254 icon.finishBinding(mPredictionLongClickListener); in fillGapsWithPrediction()
267 PredictedAppIcon icon = PredictedAppIcon.createIcon(mHotseat, item); in bindItems() local
268 mLauncher.getWorkspace().addInScreenFromBind(icon, item); in bindItems()
269 icon.finishBinding(mPredictionLongClickListener); in bindItems()
271 animationSet.play(ObjectAnimator.ofFloat(icon, SCALE_PROPERTY, 0.2f, 1)); in bindItems()
405 PredictedAppIcon icon = (PredictedAppIcon) mHotseat.getChildAt( in pinPrediction() local
408 if (icon == null) { in pinPrediction()
415 ObjectAnimator.ofFloat(icon, SCALE_PROPERTY, 1, 0.8f, 1).start(); in pinPrediction()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/preference/
DPreferenceDialogFragment.java75 Drawable icon = mPreference.getDialogIcon(); in onCreate() local
76 if (icon == null || icon instanceof BitmapDrawable) { in onCreate()
77 mDialogIcon = (BitmapDrawable) icon; in onCreate()
79 Bitmap bitmap = Bitmap.createBitmap(icon.getIntrinsicWidth(), in onCreate()
80 icon.getIntrinsicHeight(), Bitmap.Config.ARGB_8888); in onCreate()
82 icon.setBounds(0, 0, canvas.getWidth(), canvas.getHeight()); in onCreate()
83 icon.draw(canvas); in onCreate()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DPredictionRowView.java247 BubbleTextView icon = (BubbleTextView) inflater.inflate( in applyPredictionApps() local
249 icon.setOnClickListener(PREDICTION_CLICK_LISTENER); in applyPredictionApps()
250 icon.setOnLongClickListener(ItemLongClickListener.INSTANCE_ALL_APPS); in applyPredictionApps()
251 icon.setLongPressTimeoutFactor(1f); in applyPredictionApps()
252 icon.setOnFocusChangeListener(mFocusHelper); in applyPredictionApps()
254 LayoutParams lp = (LayoutParams) icon.getLayoutParams(); in applyPredictionApps()
259 addView(icon); in applyPredictionApps()
267 BubbleTextView icon = (BubbleTextView) getChildAt(i); in applyPredictionApps() local
268 icon.reset(); in applyPredictionApps()
270 icon.setVisibility(View.VISIBLE); in applyPredictionApps()
[all …]
/packages/apps/Car/libs/car-ui-lib/car-ui-lib/src/main/java/com/android/car/ui/recyclerview/
DCarUiContentListItem.java171 public void setIcon(@Nullable Drawable icon) { in setIcon() argument
172 mIcon = icon; in setIcon()
187 public void setPrimaryIconType(IconType icon) { in setPrimaryIconType() argument
188 mPrimaryIconType = icon; in setPrimaryIconType()
292 public void setSupplementalIcon(@Nullable Drawable icon) { in setSupplementalIcon() argument
293 setSupplementalIcon(icon, null); in setSupplementalIcon()
302 public void setSupplementalIcon(@Nullable Drawable icon, in setSupplementalIcon() argument
310 mSupplementalIcon = icon; in setSupplementalIcon()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DTaskIconCache.java88 if (task.icon != null) { in updateIconInBackground()
103 task.icon = entry.icon; in updateIconInBackground()
144 Bitmap icon = TaskDescriptionCompat.getIcon(desc, key.userId); in getCacheEntry() local
145 if (icon != null) { in getCacheEntry()
146 entry.icon = new FastBitmapDrawable(getBitmapInfo( in getCacheEntry()
147 new BitmapDrawable(mContext.getResources(), icon), in getCacheEntry()
160 entry.icon = newIcon(mContext, bitmapInfo); in getCacheEntry()
162 entry.icon = getDefaultIcon(key.userId); in getCacheEntry()
218 public Drawable icon; field in TaskIconCache.TaskCacheEntry
/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/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java131 public void stopLoading(ImageView icon) { in stopLoading() argument
132 final ThumbnailLoader oldTask = (ThumbnailLoader) icon.getTag(); in stopLoading()
135 icon.setTag(null); in stopLoading()
153 load(doc.derivedUri, doc.userId, doc.mimeType, doc.flags, doc.icon, doc.lastModified, in load()
236 private void setMimeIcon(ImageView view, Drawable icon) { in setMimeIcon() argument
237 view.setImageDrawable(icon); in setMimeIcon()
247 String mimeType, int icon) { in getDocumentIcon() argument
248 if (icon != 0) { in getDocumentIcon()
249 return IconUtils.loadPackageIcon(context, userId, authority, icon, mMaybeShowBadge); in getDocumentIcon()
260 context, doc.userId, doc.authority, doc.documentId, doc.mimeType, doc.icon); in getDocumentIcon()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DIconUtilsTest.java76 final int icon = 1234; in testLoadPackageIcon() local
86 when(packageManager.getDrawable(anyString(), eq(icon), any(ApplicationInfo.class))) in testLoadPackageIcon()
89 IconUtils.loadPackageIcon(context, TestProvidersAccess.USER_ID, authority, icon, in testLoadPackageIcon()
92 verify(packageManager).getDrawable(any(), eq(icon), any()); in testLoadPackageIcon()
100 final int icon = 1234; in testLoadPackageIcon_maybeShowBadge() local
110 when(packageManager.getDrawable(any(), eq(icon), any())).thenReturn(drawable); in testLoadPackageIcon_maybeShowBadge()
112 IconUtils.loadPackageIcon(context, TestProvidersAccess.USER_ID, authority, icon, in testLoadPackageIcon_maybeShowBadge()
115 verify(packageManager).getDrawable(any(), eq(icon), any()); in testLoadPackageIcon_maybeShowBadge()
/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()
283 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/PermissionController/src/com/android/permissioncontroller/permission/model/legacy/
DPermissionGroups.java127 Drawable icon = null; in loadItemInfoIcon() local
128 if (itemInfo.icon > 0) { in loadItemInfoIcon()
129 icon = Utils.loadDrawable(context.getPackageManager(), in loadItemInfoIcon()
130 itemInfo.packageName, itemInfo.icon); in loadItemInfoIcon()
132 if (icon == null) { in loadItemInfoIcon()
133 icon = context.getDrawable(R.drawable.ic_perm_device_info); in loadItemInfoIcon()
135 return icon; in loadItemInfoIcon()
219 Drawable icon = loadItemInfoIcon(context, groupInfo); in getPermissionGroups() local
227 groupInfo.packageName, label, icon, permApps.getTotalCount(), in getPermissionGroups()
278 Drawable icon = loadItemInfoIcon(context, permissionInfo); in getPermissionGroups() local
[all …]
/packages/apps/TvSettings/TwoPanelSettingsLib/src/com/android/tv/twopanelsettings/slices/builders/
DPreferenceSliceBuilder.java270 private RowBuilder setTitleItem(@NonNull IconCompat icon) { in setTitleItem() argument
271 return setTitleItem(icon, false /* isLoading */); in setTitleItem()
286 private RowBuilder setTitleItem(@Nullable IconCompat icon, boolean isLoading) { in setTitleItem() argument
288 mTitleIcon = icon; in setTitleItem()
325 public RowBuilder setIcon(@NonNull IconCompat icon) { in setIcon() argument
326 return setTitleItem(icon); in setIcon()
334 public RowBuilder setInfoImage(@NonNull IconCompat icon) { in setInfoImage() argument
335 mInfoImage = icon; in setInfoImage()
468 private RowBuilder addEndItem(@NonNull IconCompat icon) { in addEndItem() argument
469 return addEndItem(icon, false /* isLoading */); in addEndItem()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAllAppsGridAdapter.java256 BubbleTextView icon = (BubbleTextView) mLayoutInflater.inflate( in onCreateViewHolder() local
258 icon.setOnClickListener(mOnIconClickListener); in onCreateViewHolder()
259 icon.setOnLongClickListener(mOnIconLongClickListener); in onCreateViewHolder()
260 icon.setLongPressTimeoutFactor(1f); in onCreateViewHolder()
261 icon.setOnFocusChangeListener(mIconFocusListener); in onCreateViewHolder()
264 icon.getLayoutParams().height = mLauncher.getDeviceProfile().allAppsCellHeightPx; in onCreateViewHolder()
265 return new ViewHolder(icon); in onCreateViewHolder()
288 BubbleTextView icon = (BubbleTextView) holder.itemView; in onBindViewHolder() local
289 icon.reset(); in onBindViewHolder()
290 icon.applyFromApplicationInfo(info); in onBindViewHolder()

12345678910>>...23