Home
last modified time | relevance | path

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

1234

/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DLocalImageResolverTest.java51 Icon icon = Icon.createWithResource(mContext, 0x85849454); in resolveImage_invalidResource_returnsNull()
73 Icon icon = Icon.createWithResource(mContext, R.drawable.blue); in resolveImage_nonBitmapResourceIcon_fallsBackToNonResizingLoad()
126 Icon icon = Icon.createWithResource(mContext, R.drawable.big_a); in resolveImage_largeResourceIcon_defaultSize_resizeToDefaultSize()
140 Icon icon = Icon.createWithResource(mContext, R.drawable.big_a); in resolveImage_largeResourceIcon_passedSize_resizeToDefinedSize()
151 Icon icon = Icon.createWithResource(mContext, R.drawable.big_a); in resolveImage_largeResourceIcon_negativeWidth_dontResize()
163 Icon icon = Icon.createWithResource(mContext, R.drawable.big_a); in resolveImage_largeResourceIcon_negativeHeight_dontResize()
201 Icon icon = Icon.createWithResource(mContext.getResources(), R.drawable.test32x24); in resolveImage_smallBitmapIcon_passedSmallerSize_dontResize()
237 Icon icon = Icon.createWithResource(mContext, R.drawable.test32x24); in resolveImage_smallResourceIcon_defaultSize_untouched()
279 Icon icon = Icon.createWithResource("this_is_invalid", R.drawable.test32x24); in resolveImage_iconWithOtherPackageResource_usesPackageContextDefinition()
293 Icon icon = Icon.createWithResource(mContext, R.drawable.test32x24); in resolveResourcesForIcon_localPackageIcon_returnsPackageResources()
[all …]
DCachingIconViewTest.java54 view.setImageIcon(Icon.createWithResource(mContext, 0x85743222)); in invalidIcon_skipsLoadSuccessfully()
63 view.setImageIcon(Icon.createWithResource(mContext, R.drawable.custom_drawable)); in customDrawable_setImageIcon_skipsResizeSuccessfully()
72 view.setImageIconAsync(Icon.createWithResource(mContext, R.drawable.custom_drawable)).run(); in customDrawable_setImageIconAsync_skipsResizeSuccessfully()
121 view.setImageIcon(Icon.createWithResource(mContext, R.drawable.big_a)); in maxDrawableDimensionsSet_setImageIcon_resizesImageIcon()
130 view.setImageIcon(Icon.createWithResource(mContext, R.drawable.big_a)); in maxDrawableWithNoDimensionsSet_setImageIcon_doesNotResizeImageIcon()
139 view.setImageIconAsync(Icon.createWithResource(mContext, R.drawable.big_a)).run(); in maxDrawableDimensionsSet_setImageIconAsync_resizesImageIcon()
148 view.setImageIconAsync(Icon.createWithResource(mContext, R.drawable.big_a)).run(); in maxDrawableWithNoDimensionsSet_setImageIconAsync_doesNotResizeImageIcon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileRequestDialogTest.kt64 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_hasCorrectViews()
79 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_hasCorrectAppName()
92 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_hasCorrectLabel()
107 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_hasIcon()
136 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_hasNoStateDescription()
152 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_tileNotClickable()
169 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_tileHasCorrectContentDescription()
/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()
150 Icon.createWithResource(mContext.getPackageName(), 21), // icon in testTaskDescriptionCopyFromPreserveHiddenFields()
165 Icon.createWithResource(mContext.getPackageName(), 212), // icon in testTaskDescriptionCopyFromPreserveHiddenFields()
195 Icon.createWithResource(mContext.getPackageName(), 21), // icon in testTaskDescriptionParceling()
/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/
DLaunchBubbleActivity.java60 Icon icon = Icon.createWithResource(this, R.drawable.bg); in addInboxShortcut()
75 .setIcon(Icon.createWithResource(context, R.drawable.ic_message)) in addInboxShortcut()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DAdaptiveIconTest.java90 doReturn(Icon.createWithResource(mContext, R.drawable.ic_system_update)) in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon()
102 doReturn(Icon.createWithResource(mContext, R.drawable.ic_system_update)) in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor()
117 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/statusbar/phone/
DStatusBarIconHolder.java111 Icon.createWithResource( context, resId), 0, 0, contentDescription); in fromResId()
162 Icon.createWithResource(context, resId), 0, 0, contentDescription); in fromCallIndicatorState()
DStatusBarIconControllerImpl.java192 Icon.createWithResource( in setIcon()
197 holder.getIcon().icon = Icon.createWithResource(mContext, resourceId); in setIcon()
318 Icon.createWithResource(mContext, state.callStrengthResId), 0, 0, in setCallStrengthIcons()
343 Icon.createWithResource(mContext, state.noCallingResId), 0, 0, in setNoCallingIcons()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/
DControlViewHolderTest.kt88 Icon.createWithResource(mContext.resources, R.drawable.ic_emergency_star) in updateStatusRow_customIconWithTint_iconTintRemains()
103 Icon.createWithResource(mContext.resources, R.drawable.ic_emergency_star) in updateStatusRow_customIconWithTintList_iconTintListRemains()
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoControlsService.kt116 return Icon.createWithResource(resources, Cat.chooseP(rng, P_TOY_ICONS, 4)) in randomToyIcon()
147 .setCustomIcon(Icon.createWithResource(resources, in makeWaterBowlControl()
162 .setCustomIcon(Icon.createWithResource(resources, in makeFoodBowlControl()
DFood.java44 return Icon.createWithResource(context, sIcons[mType]); in getIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/shortcut/
DCreateNoteTaskShortcutActivity.kt67 .setIcon(IconCompat.createWithResource(this, iconResource)) in createShortcutIntent()
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
DIconsContentProviderTest.java46 final Drawable expected = Icon.createWithResource(packageName, resId).loadDrawable(context); in testLoadResource()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DStatusBarIconViewTest.java96 Icon.createWithResource(mContext, R.drawable.ic_android), 0, 0, ""); in setUp()
109 mStatusBarIcon.icon = Icon.createWithResource("mockPackage", R.drawable.ic_android); in testSettingOomingIconDoesNotThrowOom()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DKeyguardSliceProvider.java260 IconCompat icon = IconCompat.createWithResource(getContext(), in addPrimaryActionLocked()
273 IconCompat alarmIcon = IconCompat.createWithResource(getContext(), in addNextAlarmLocked()
293 IconCompat.createWithResource(getContext(), R.drawable.stat_sys_dnd), in addZenModeLocked()
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java570 return createWithResource(packageName, resId); in createFromStream()
621 public static @NonNull Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource() method in Icon
636 public static @NonNull Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource() method in Icon
651 public static @NonNull Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource() method in Icon
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/models/recommendation/
DSmartspaceMediaDataTest.kt31 private val icon: Icon = Icon.createWithResource(context, R.drawable.ic_media_play)
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
DNavBarTuner.java185 Drawable d = Icon.createWithResource(pkg, id) in updateSummary()
226 Drawable d = Icon.createWithResource(getContext().getPackageName(), ICONS[i][0]) in setupIcons()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationBigPictureTemplateViewWrapperTest.java72 Icon.createWithResource(mContext, 0)); in invalidLargeIconBig_noCrash()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/
DSaveImageInBackgroundTask.java294 Icon.createWithResource(r, R.drawable.ic_screenshot_share), in createShareAction()
344 Icon.createWithResource(r, R.drawable.ic_screenshot_edit), in createEditAction()
371 Icon.createWithResource(r, R.drawable.ic_screenshot_delete),
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/media/controls/ui/
DMediaControlPanelTest.kt486 val actionIcon = Icon.createWithResource(context, R.drawable.ic_android) in initRecommendationViewHolderMocks()
626 val albumArt = Icon.createWithResource(context, R.drawable.ic_android) in bindAlbumView_artUsesResource()
1869 val icon = Icon.createWithResource(context, R.drawable.ic_1x_mobiledata) in bindRecommendation_listHasTooFewRecs_notDisplayed()
1896 val icon = Icon.createWithResource(context, R.drawable.ic_1x_mobiledata) in bindRecommendation_listHasTooFewRecsWithIcons_notDisplayed()
1940 val icon = Icon.createWithResource(context, R.drawable.ic_1x_mobiledata) in bindRecommendation_hasTitlesAndSubtitles()
1983 .setIcon(Icon.createWithResource(context, R.drawable.ic_1x_mobiledata)) in bindRecommendation_noTitle_subtitleNotShown()
1998 val icon = Icon.createWithResource(context, R.drawable.ic_1x_mobiledata) in bindRecommendation_someHaveTitles_allTitleViewsShown()
2032 val icon = Icon.createWithResource(context, R.drawable.ic_1x_mobiledata) in bindRecommendation_someHaveSubtitles_allSubtitleViewsShown()
2071 .setIcon(Icon.createWithResource(context, R.drawable.ic_1x_mobiledata)) in bindRecommendation_noneHaveSubtitles_subtitleViewsGone()
2076 .setIcon(Icon.createWithResource(context, R.drawable.ic_alarm)) in bindRecommendation_noneHaveSubtitles_subtitleViewsGone()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/collection/
DNotificationEntryTest.java320 Icon.createWithResource(getContext(), android.R.drawable.sym_def_app_icon), in createContextualAction()
330 Icon.createWithResource(getContext(), android.R.drawable.sym_def_app_icon), in createAction()

1234