Home
last modified time | relevance | path

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

12

/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/packages/SystemUI/src/com/android/systemui/pip/phone/
DPipMediaController.java194 mPauseAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
200 mPlayAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
206 mNextAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
212 mPrevAction = new RemoteAction(Icon.createWithResource(mContext, in createMediaActions()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveIconTest.java89 doReturn(Icon.createWithResource(mContext, R.drawable.ic_system_update)) in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon()
101 doReturn(Icon.createWithResource(mContext, R.drawable.ic_system_update)) in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor()
116 doReturn(Icon.createWithResource(mContext, R.drawable.ic_system_update)) in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
/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/src/com/android/systemui/screenrecord/
DRecordingService.java311 Icon.createWithResource(this, R.drawable.ic_android), in setNotificationActions()
318 Icon.createWithResource(this, R.drawable.ic_android), pauseString, in setNotificationActions()
323 Icon.createWithResource(this, R.drawable.ic_android), in setNotificationActions()
338 Icon.createWithResource(this, R.drawable.ic_android), in createSaveNotification()
348 Icon.createWithResource(this, R.drawable.ic_android), in createSaveNotification()
/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()
DNotificationUiAdjustmentTest.java193 Icon.createWithResource(mContext, drawableRes), title, pendingIntent); in createActionBuilder()
/frameworks/base/core/java/android/view/textclassifier/intent/
DLabeledIntent.java132 icon = Icon.createWithResource( in resolve()
139 icon = Icon.createWithResource( in resolve()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java512 return createWithResource(packageName, resId); in createFromStream()
559 public static Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource() method in Icon
574 public static Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource() method in Icon
589 public static Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource() method in Icon
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconHolder.java54 Icon.createWithResource( context, resId), 0, 0, contentDescription); in fromResId()
DStatusBarIconControllerImpl.java158 Icon.createWithResource( in setIcon()
163 holder.getIcon().icon = Icon.createWithResource(mContext, resourceId); in setIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java262 IconCompat icon = IconCompat.createWithResource(getContext(), in addPrimaryActionLocked()
275 IconCompat alarmIcon = IconCompat.createWithResource(getContext(), in addNextAlarmLocked()
295 IconCompat.createWithResource(getContext(), R.drawable.stat_sys_dnd), in addZenModeLocked()
/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/tuner/
DNavBarTuner.java184 Drawable d = Icon.createWithResource(pkg, id) in updateSummary()
225 Drawable d = Icon.createWithResource(getContext().getPackageName(), ICONS[i][0]) in setupIcons()
DShortcutParser.java113 c.icon = Icon.createWithResource(mPkg, iconResId); in parseShortcut()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DShortcutManagerTest2.java246 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoParcel()
301 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoParcel_resId()
348 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoClone()
490 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoClone_resId()
648 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoCopyNonNullFieldsFrom()
674 .setIcon(Icon.createWithResource(mClientContext, 456)).build()); in testShortcutInfoCopyNonNullFieldsFrom()
778 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoCopyNonNullFieldsFrom_resId()
801 .setIcon(Icon.createWithResource(mClientContext, 456)).build()); in testShortcutInfoCopyNonNullFieldsFrom_resId()
1066 final Icon res32x32 = Icon.createWithResource(mClientContext, R.drawable.black_32x32);
1208 final Icon res32x32 = Icon.createWithResource(mClientContext, R.drawable.black_32x32);
[all …]
DShortcutManagerTest8.java255 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in checkRequestPinShortcut()
476 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testRequestPinShortcut_dynamicExists()
591 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testRequestPinShortcut_dynamicExists_alreadyPinned()
1042 final Icon res32x32 = Icon.createWithResource(getTestContext(), R.drawable.black_32x32); in testRequestPinShortcut_dynamicExists_titleWontChange()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DInstantAppNotifier.java348 .setLargeIcon(Icon.createWithResource(pkg, appInfo.icon)) in postInstantAppNotif()
350 Icon.createWithResource( in postInstantAppNotif()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java169 Icon.createWithResource(mContext, R.drawable.ic_clear), in createCancelAction()
228 Icon.createWithResource(mContext, com.android.internal.R.drawable.ic_restart), in createFailedNotification()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAdjustmentExtractorTest.java127 Icon.createWithResource(getContext(), android.R.drawable.sym_def_app_icon), in createAction()
/frameworks/base/core/java/android/app/slice/
DSliceProvider.java488 .addIcon(Icon.createWithResource(context, in createPermissionSlice()
500 .addIcon(Icon.createWithResource(context, in createPermissionSlice()
/frameworks/base/core/java/com/android/internal/util/
DMimeIconUtils.java52 return new MimeTypeInfo(Icon.createWithResource(res, iconId), label, label); in buildTypeInfo()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java165 final Icon im1 = Icon.createWithResource(getContext(), R.drawable.landscape); in testWithBitmapResource()
275 final Icon res1 = Icon.createWithResource(getContext(), R.drawable.landscape); in testParcel()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLayout.java313 Icon avatarIcon = Icon.createWithResource(getContext(), in createAvatarSymbol()
376 Icon userIcon = Icon.createWithResource(getContext(), in setUser()

12