Home
last modified time | relevance | path

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

123

/frameworks/support/slices/view/src/androidTest/java/androidx/slice/render/
DSliceCreator.java151 IconCompat.createWithResource(getContext(), R.drawable.weather_1), SMALL_IMAGE, in createWeather()
157 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_1), in createWeather()
162 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_2), in createWeather()
167 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_3), in createWeather()
172 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_4), in createWeather()
177 .addImage(IconCompat.createWithResource(getContext(), R.drawable.weather_1), in createWeather()
190 .addImage(IconCompat.createWithResource(getContext(), R.drawable.slices_1), in createGallery()
193 .addImage(IconCompat.createWithResource(getContext(), R.drawable.slices_2), in createGallery()
196 .addImage(IconCompat.createWithResource(getContext(), R.drawable.slices_3), in createGallery()
199 .addImage(IconCompat.createWithResource(getContext(), R.drawable.slices_4), in createGallery()
[all …]
/frameworks/support/samples/SupportSliceDemos/src/main/java/com/example/androidx/slice/demos/
DSampleSliceProvider.java170 IconCompat.createWithResource(getContext(), R.drawable.weather_1), SMALL_IMAGE, in createWeather()
176 .addImage(IconCompat.createWithResource(getContext(), in createWeather()
182 .addImage(IconCompat.createWithResource(getContext(), in createWeather()
188 .addImage(IconCompat.createWithResource(getContext(), in createWeather()
194 .addImage(IconCompat.createWithResource(getContext(), in createWeather()
200 .addImage(IconCompat.createWithResource(getContext(), in createWeather()
211 IconCompat.createWithResource(getContext(), R.drawable.slices_1), in createGallery()
223 IconCompat.createWithResource(getContext(), R.drawable.ic_cast), in createGallery()
227 IconCompat.createWithResource(getContext(), R.drawable.ic_share), in createGallery()
235 IconCompat ic = IconCompat.createWithResource(getContext(), in createGallery()
[all …]
/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/support/slices/core/src/androidTest/java/androidx/slice/
DSliceTestProvider.java53 IconCompat.createWithResource(getContext(), R.drawable.size_48x48), in onBindSlice()
69 .addIcon(IconCompat.createWithResource(getContext(), R.drawable.size_48x48), in onBindSlice()
/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/support/compat/src/androidTest/java/androidx/core/graphics/drawable/
DIconCompatTest.java126 IconCompat.createWithResource(context, R.drawable.test_drawable_green) in testAddResourceToShortcutIntent_badged()
133 IconCompat.createWithResource(context, R.drawable.test_drawable_blue) in testAddResourceToShortcutIntent_badged()
207 IconCompat compat = IconCompat.createWithResource(context, R.drawable.test_drawable_red); in testCreateWithResource()
255 verifyIconCompatValidity(IconCompat.createWithResource(mContext, R.drawable.bmp_test)); in testResourceIconCompat()
295 IconCompat icon = IconCompat.createWithResource(mContext, R.drawable.bmp_test); in testResourceIconCompat_getType()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DStatusBarIconViewTest.java90 Icon.createWithResource(mContext, R.drawable.ic_android), 0, 0, ""); in setUp()
103 mStatusBarIcon.icon = Icon.createWithResource("mockPackage", R.drawable.ic_android); in testSettingOomingIconDoesNotThrowOom()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java142 Icon icon = Icon.createWithResource(getContext(), R.drawable.ic_access_alarms_big); in addPrimaryAction()
155 Icon alarmIcon = Icon.createWithResource(getContext(), R.drawable.ic_access_alarms_big); in addNextAlarm()
173 .addEndItem(Icon.createWithResource(getContext(), R.drawable.stat_sys_dnd)); in addZenMode()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DFood.java43 return Icon.createWithResource(context, sIcons[mType]); in getIcon()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java502 return createWithResource(packageName, resId); in createFromStream()
549 public static Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource() method in Icon
563 public static Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource() method in Icon
578 public static Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource() method in Icon
/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/statusbar/phone/
DStatusBarIconHolder.java53 Icon.createWithResource( context, resId), 0, 0, contentDescription); in fromResId()
DStatusBarIconControllerImpl.java157 Icon.createWithResource( in setIcon()
162 holder.getIcon().icon = Icon.createWithResource(mContext, resourceId); in setIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DNavBarTuner.java183 Drawable d = Icon.createWithResource(pkg, id) in updateSummary()
224 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()
296 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoParcel_resId()
343 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoClone()
450 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoClone_resId()
608 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoCopyNonNullFieldsFrom()
634 .setIcon(Icon.createWithResource(mClientContext, 456)).build()); in testShortcutInfoCopyNonNullFieldsFrom()
732 .setIcon(Icon.createWithResource(mClientContext, 123)) in testShortcutInfoCopyNonNullFieldsFrom_resId()
755 .setIcon(Icon.createWithResource(mClientContext, 456)).build()); in testShortcutInfoCopyNonNullFieldsFrom_resId()
1007 final Icon res32x32 = Icon.createWithResource(mClientContext, R.drawable.black_32x32);
1147 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/support/compat/src/androidTest/java/androidx/core/content/pm/
DShortcutInfoCompatTest.java64 .setIcon(IconCompat.createWithResource(mContext, R.drawable.test_drawable_red)); in setup()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java169 Icon.createWithResource(mContext, R.drawable.stat_notify_cancelling), in createCancelAction()
228 Icon.createWithResource(mContext, R.drawable.ic_restart), in createFailedNotification()
/frameworks/base/core/java/android/app/
DRecoverableSecurityException.java94 Icon.createWithResource("android", in RecoverableSecurityException()
/frameworks/base/core/java/android/app/slice/
DSliceProvider.java480 .addIcon(Icon.createWithResource(context, in createPermissionSlice()
492 .addIcon(Icon.createWithResource(context, in createPermissionSlice()
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java164 final Icon im1 = Icon.createWithResource(getContext(), R.drawable.landscape); in testWithBitmapResource()
274 final Icon res1 = Icon.createWithResource(getContext(), R.drawable.landscape); in testParcel()
/frameworks/support/slices/view/src/androidTest/java/androidx/slice/
DSliceXmlTest.java133 .addIcon(IconCompat.createWithResource(mContext, R.drawable.abc_slice_see_more_bg), in testSerialization()
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
DIconCompat.java145 public static IconCompat createWithResource(Context context, @DrawableRes int resId) { in createWithResource() method in IconCompat
358 icon = Icon.createWithResource((String) mObj1, mInt1); in toIcon()
/frameworks/base/core/java/com/android/internal/widget/
DMessagingLayout.java297 Icon avatarIcon = Icon.createWithResource(getContext(), in createAvatarSymbol()
360 Icon userIcon = Icon.createWithResource(getContext(), in setUser()

123