/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | LocalImageResolverTest.java | 51 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 …]
|
D | CachingIconViewTest.java | 54 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/ |
D | TileRequestDialogTest.kt | 86 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_hasCorrectViews() 101 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_hasCorrectAppName() 114 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_hasCorrectLabel() 129 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_hasIcon() 158 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_hasNoStateDescription() 174 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_tileNotClickable() 191 val icon = Icon.createWithResource(mContext, R.drawable.cloud) in setTileData_tileHasCorrectContentDescription()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
D | PackageInstalledNotificationUtils.java | 127 return Icon.createWithResource(appInfo.packageName, appInfo.icon); in getAppLargeIcon() 129 return Icon.createWithResource("android", android.R.drawable.sym_def_app_icon); in getAppLargeIcon() 144 return Icon.createWithResource(context, R.drawable.ic_file_download); in getAppNotificationIcon() 150 return Icon.createWithResource(appInfo.packageName, iconResId); in getAppNotificationIcon() 152 return Icon.createWithResource(context, R.drawable.ic_file_download); in getAppNotificationIcon()
|
D | UninstallFinish.java | 233 Icon.createWithResource(context, R.drawable.ic_settings_multiuser), in addManageUsersButton() 253 Icon.createWithResource(context, R.drawable.ic_lock), in addDeviceManagerButton()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/graphics/ |
D | ImageLoaderTest.kt | 262 Icon.createWithResource( in validResourceIcon_returnsBitmapDrawable() 275 Icon.createWithResource( in validResourceIcon_loadSize_returnsNull() 292 Icon.createWithResource("android", android.R.drawable.ic_dialog_alert) in validSystemResourceIcon_returnsBitmapDrawable() 302 Icon.createWithResource("android", android.R.drawable.ic_dialog_alert), in validSystemResourceIcon_loadSize_returnsNull() 314 Icon.createWithResource( in invalidDifferentPackageResourceIcon_returnsNull() 327 Icon.createWithResource( in invalidDifferentPackageResourceIcon_loadSize_returnsNull() 403 imageLoader.loadDrawable(Icon.createWithResource(context, R.drawable.ic_settings)) in validVectorDrawableIcon_loadDrawable_successfullyLoaded()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ActivityManagerTest.java | 126 Icon.createWithResource(mContext.getPackageName(), 21), // icon in testTaskDescriptionCopyFrom() 152 Icon.createWithResource(mContext.getPackageName(), 21), // icon in testTaskDescriptionCopyFromPreserveHiddenFields() 169 Icon.createWithResource(mContext.getPackageName(), 212), // icon in testTaskDescriptionCopyFromPreserveHiddenFields() 201 Icon.createWithResource(mContext.getPackageName(), 21), // icon in testTaskDescriptionParceling()
|
/frameworks/base/tests/FlickerTests/test-apps/flickerapp/src/com/android/server/wm/flicker/testapp/ |
D | LaunchBubbleActivity.java | 71 Icon icon = Icon.createWithResource(this, R.drawable.bg); in addInboxShortcut() 86 .setIcon(Icon.createWithResource(context, R.drawable.ic_message)) in addInboxShortcut()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
D | AdaptiveIconTest.java | 90 … doReturn(Icon.createWithResource(mContext, com.android.settingslib.R.drawable.ic_system_update)) in setBackgroundColor_externalTileWithBackgroundColorRawValue_shouldUpdateIcon() 102 … doReturn(Icon.createWithResource(mContext, com.android.settingslib.R.drawable.ic_system_update)) in setBackgroundColor_tileWithoutBackgroundColor_shouldSetDefaultBackgroundColor() 117 … doReturn(Icon.createWithResource(mContext, com.android.settingslib.R.drawable.ic_system_update)) in onBindTile_externalTileWithBackgroundColorHint_shouldUpdateIcon()
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
D | StatusBarIcon.java | 56 icon = Icon.createWithResource(resPackage, icon.getResId()); in StatusBarIcon() 70 this(user, iconPackage, Icon.createWithResource(iconPackage, iconId), in StatusBarIcon()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/media/controls/data/repository/ |
D | MediaDataRepositoryTest.kt | 86 val icon = Icon.createWithResource(context, R.drawable.ic_media_play) in setRecommendationInactive() 108 val icon = Icon.createWithResource(context, R.drawable.ic_media_play) in dismissRecommendation()
|
D | MediaFilterRepositoryTest.kt | 140 val icon = Icon.createWithResource(context, R.drawable.ic_media_play) in addActiveRecommendation_thenInactive() 251 val icon = Icon.createWithResource(context, R.drawable.ic_media_play) in fullOrderTest() 315 val icon = Icon.createWithResource(context, R.drawable.ic_media_play) in loadMediaFromRec()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
D | ControlViewHolderTest.kt | 89 Icon.createWithResource(mContext.resources, R.drawable.ic_emergency_star) in updateStatusRow_customIconWithTint_iconTintRemains() 104 Icon.createWithResource(mContext.resources, R.drawable.ic_emergency_star) in updateStatusRow_customIconWithTintList_iconTintListRemains()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/shortcut/ |
D | CreateBubbleShortcutActivity.kt | 41 val icon = Icon.createWithResource(this, R.drawable.ic_bubbles_shortcut_widget) in createShortcut()
|
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
D | Food.java | 44 return Icon.createWithResource(context, sIcons[mType]); in getIcon()
|
D | NekoControlsService.kt | 116 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()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/bar/ |
D | BubbleBarMenuViewController.java | 179 Icon.createWithResource(mContext, R.drawable.bubble_ic_stop_bubble), in createMenuActions() 205 Icon.createWithResource(resources, R.drawable.ic_remove_no_shadow), in createMenuActions()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/ |
D | IconsContentProviderTest.java | 46 final Drawable expected = Icon.createWithResource(packageName, resId).loadDrawable(context); in testLoadResource()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ui/ |
D | StatusBarIconControllerImpl.java | 230 Icon.createWithResource(mContext, resourceId), 0, 0, in setIcon() 235 holder.getIcon().icon = Icon.createWithResource(mContext, resourceId); in setIcon() 297 Icon.createWithResource(mContext, state.callStrengthResId), 0, 0, in setCallStrengthIcons() 322 Icon.createWithResource(mContext, state.noCallingResId), 0, 0, in setNoCallingIcons()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/ |
D | NoteTaskBubblesServiceTest.kt | 67 val icon = Icon.createWithResource(context, R.drawable.ic_note_task_shortcut_widget) in showOrHideAppBubble()
|
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/slice/provider/ |
D | Demo.kt | 56 IconCompat.createWithResource(context, R.drawable.notification_action_background), in createSliceAction()
|
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/tv/ |
D | TvPipSystemAction.java | 79 Icon.createWithResource(context, mIconResource), in toNotificationAction()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/notetask/ |
D | NoteTaskRoleManagerExt.kt | 67 val icon = Icon.createWithResource(context, R.drawable.ic_note_task_shortcut_widget) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | StatusBarIconHolder.kt | 154 Icon.createWithResource(context, resId), in fromCallIndicatorState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProvider.java | 274 IconCompat icon = IconCompat.createWithResource(getContext(), in addPrimaryActionLocked() 287 IconCompat alarmIcon = IconCompat.createWithResource(getContext(), in addNextAlarmLocked() 307 IconCompat.createWithResource(getContext(), R.drawable.stat_sys_dnd), in addZenModeLocked()
|