Home
last modified time | relevance | path

Searched refs:createWithResource (Results 1 – 25 of 77) sorted by relevance

1234

/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstalledNotificationUtils.java126 return Icon.createWithResource(appInfo.packageName, appInfo.icon); in getAppLargeIcon()
128 return Icon.createWithResource("android", android.R.drawable.sym_def_app_icon); in getAppLargeIcon()
143 return Icon.createWithResource(context, R.drawable.ic_file_download); in getAppNotificationIcon()
149 return Icon.createWithResource(appInfo.packageName, iconResId); in getAppNotificationIcon()
151 return Icon.createWithResource(context, R.drawable.ic_file_download); in getAppNotificationIcon()
DUninstallFinish.java240 Icon.createWithResource(context, R.drawable.ic_settings_multiuser), in addManageUsersButton()
260 Icon.createWithResource(context, R.drawable.ic_lock), in addDeviceManagerButton()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DActivityManagerTest.java126 Icon.createWithResource(mContext.getPackageName(), 21), // icon in testTaskDescriptionCopyFrom()
149 Icon.createWithResource(mContext.getPackageName(), 21), // icon in testTaskDescriptionCopyFromPreserveHiddenFields()
163 Icon.createWithResource(mContext.getPackageName(), 212), // icon in testTaskDescriptionCopyFromPreserveHiddenFields()
192 Icon.createWithResource(mContext.getPackageName(), 21), // icon in testTaskDescriptionParceling()
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMediaController.java196 mPauseAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
202 mPlayAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
208 mNextAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
214 mPrevAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarIcon.java41 icon = Icon.createWithResource(resPackage, icon.getResId()); in StatusBarIcon()
54 this(user, iconPackage, Icon.createWithResource(iconPackage, iconId), in StatusBarIcon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DStatusBarIconViewTest.java91 Icon.createWithResource(mContext, R.drawable.ic_android), 0, 0, ""); in setUp()
104 mStatusBarIcon.icon = Icon.createWithResource("mockPackage", R.drawable.ic_android); in testSettingOomingIconDoesNotThrowOom()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoControlsService.kt115 return Icon.createWithResource(resources, Cat.chooseP(rng, P_TOY_ICONS, 4)) in randomToyIcon()
146 .setCustomIcon(Icon.createWithResource(resources, in makeWaterBowlControl()
161 .setCustomIcon(Icon.createWithResource(resources, in makeFoodBowlControl()
DFood.java44 return Icon.createWithResource(context, sIcons[mType]); in getIcon()
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
DIconsContentProviderTest.java46 final Drawable expected = Icon.createWithResource(packageName, resId).loadDrawable(context); in testLoadResource()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DSoftApNotifier.java78 .setSmallIcon(Icon.createWithResource(mContext.getWifiOverlayApkPkgName(), in buildSoftApShutDownTimeoutExpiredNotification()
DWakeupNotificationFactory.java70 .setSmallIcon(Icon.createWithResource(mContext.getWifiOverlayApkPkgName(), in createOnboardingNotification()
DSimRequiredNotifier.java86 .setSmallIcon(Icon.createWithResource(mContext.getWifiOverlayApkPkgName(), in buildSimRequiredNotification()
DConnectionFailureNotificationBuilder.java83 .setSmallIcon(Icon.createWithResource(mContext.getWifiOverlayApkPkgName(), in buildNoMacRandomizationSupportNotification()
DWrongPasswordNotifier.java113 .setSmallIcon(Icon.createWithResource(mContext.getWifiOverlayApkPkgName(), in showNotification()
DEapFailureNotifier.java106 .setSmallIcon(Icon.createWithResource(mContext.getWifiOverlayApkPkgName(), in showNotification()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java535 return createWithResource(packageName, resId); in createFromStream()
586 public static Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource() method in Icon
601 public static Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource() method in Icon
616 public static Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource() method in Icon
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryTest.java234 Icon.createWithResource(getContext(), android.R.drawable.sym_def_app_icon), in createContextualAction()
243 Icon.createWithResource(getContext(), android.R.drawable.sym_def_app_icon), in createAction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconHolder.java54 Icon.createWithResource( context, resId), 0, 0, contentDescription); in fromResId()
DStatusBarIconControllerImpl.java156 Icon.createWithResource( in setIcon()
161 holder.getIcon().icon = Icon.createWithResource(mContext, resourceId); in setIcon()
/frameworks/base/telecomm/java/android/telecom/
DStatusHints.java45 this(label, iconResId == 0 ? null : Icon.createWithResource(packageName.getPackageName(), in StatusHints()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java253 IconCompat icon = IconCompat.createWithResource(getContext(), in addPrimaryActionLocked()
266 IconCompat alarmIcon = IconCompat.createWithResource(getContext(), in addNextAlarmLocked()
286 IconCompat.createWithResource(getContext(), R.drawable.stat_sys_dnd), in addZenModeLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DSaveImageInBackgroundTask.java302 Icon.createWithResource(r, R.drawable.ic_screenshot_share), in createShareAction()
347 Icon.createWithResource(r, R.drawable.ic_screenshot_edit), in createEditAction()
369 Icon.createWithResource(r, R.drawable.ic_screenshot_delete), in createDeleteAction()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DNavBarTuner.java184 Drawable d = Icon.createWithResource(pkg, id) in updateSummary()
225 Drawable d = Icon.createWithResource(getContext().getPackageName(), ICONS[i][0]) in setupIcons()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java246 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoParcel()
303 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoParcel_resId()
352 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoClone()
500 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoClone_resId()
663 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoCopyNonNullFieldsFrom()
690 .setIcon(Icon.createWithResource(mClientContext, 456)).build()); in testShortcutInfoCopyNonNullFieldsFrom()
795 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoCopyNonNullFieldsFrom_resId()
819 .setIcon(Icon.createWithResource(mClientContext, 456)).build()); in testShortcutInfoCopyNonNullFieldsFrom_resId()
1087 final Icon res32x32 = Icon.createWithResource(mClientContext, R.drawable.black_32x32);
1319 final Icon res32x32 = Icon.createWithResource(mClientContext, R.drawable.black_32x32);
[all …]
/frameworks/base/services/core/java/com/android/server/textclassifier/
DIconsContentProvider.java58 final Drawable drawable = Icon.createWithResource(res.packageName, res.id)

1234