/aosp12/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/ |
H A D | PackageInstalledNotificationUtils.java | 126 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()
|
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/qc/ |
H A D | PairedBluetoothDevices.java | 98 .setIcon(Icon.createWithResource(getContext(), in getQCItem() 122 .setIcon(Icon.createWithResource(getContext(), in getQCItem() 137 .setIcon(Icon.createWithResource(getContext(), getIconRes(cachedDevice))) in getQCItem() 259 Icon.createWithResource(getContext(), R.drawable.ic_qc_bluetooth), true, in createBluetoothButton() 269 Icon.createWithResource(getContext(), iconRes), in createPhoneButton() 279 Icon.createWithResource(getContext(), iconRes), in createMediaButton()
|
H A D | BrightnessSliderWithIcon.java | 44 builder.setIcon(Icon.createWithResource(getContext(), R.drawable.ic_qc_brightness)); in getBrightnessRowBuilder()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | ActivityManagerTest.java | 126 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()
|
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/controller/ |
H A D | ShortcutController.kt | 81 .setIcon(Icon.createWithResource(context, R.drawable.shortcut_new_alarm)) 98 .setIcon(Icon.createWithResource(context, R.drawable.shortcut_new_timer)) 116 .setIcon(Icon.createWithResource(context, R.drawable.shortcut_stopwatch)) 146 .setIcon(Icon.createWithResource(context, R.drawable.shortcut_screensaver))
|
/aosp12/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/ |
H A D | AdaptiveIconTest.java | 90 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()
|
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/ |
H A D | LaunchBubbleActivity.java | 60 Icon icon = Icon.createWithResource(this, R.drawable.bg); in addInboxShortcut() 75 .setIcon(Icon.createWithResource(context, R.drawable.ic_message)) in addInboxShortcut()
|
/aosp12/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
H A D | CallServiceNotifier.java | 138 .setIcon(Icon.createWithResource( in registerPhoneAccount() 160 .setIcon(Icon.createWithResource( in registerPhoneAccount() 180 .setIcon(Icon.createWithResource( in registerPhoneAccount() 195 .setIcon(Icon.createWithResource( in registerPhoneAccount()
|
H A D | SelfManagedConnection.java | 126 Icon.createWithResource(mContext, R.drawable.ic_android_black_24dp), in onShowIncomingCallUi() 133 Icon.createWithResource(mContext, R.drawable.ic_android_black_24dp), in onShowIncomingCallUi()
|
/aosp12/frameworks/base/core/java/com/android/internal/statusbar/ |
H A D | StatusBarIcon.java | 41 icon = Icon.createWithResource(resPackage, icon.getResId()); in StatusBarIcon() 54 this(user, iconPackage, Icon.createWithResource(iconPackage, iconId), in StatusBarIcon()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
H A D | StatusBarIconHolder.java | 61 Icon.createWithResource( context, resId), 0, 0, contentDescription); in fromResId() 93 Icon.createWithResource(context, resId), 0, 0, contentDescription); in fromCallIndicatorState()
|
H A D | StatusBarIconControllerImpl.java | 182 Icon.createWithResource( in setIcon() 187 holder.getIcon().icon = Icon.createWithResource(mContext, resourceId); in setIcon() 263 Icon.createWithResource(mContext, state.callStrengthResId), 0, 0, in setCallStrengthIcons() 290 Icon.createWithResource(mContext, state.noCallingResId), 0, 0, in setNoCallingIcons()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/ui/ |
H A D | ControlViewHolderTest.kt | 85 Icon.createWithResource(mContext.resources, R.drawable.ic_emergency_star) 100 Icon.createWithResource(mContext.resources, R.drawable.ic_emergency_star)
|
/aosp12/packages/apps/Dialer/java/com/android/incallui/ |
H A D | StatusBarNotifier.java | 868 Icon.createWithResource(context, R.drawable.quantum_ic_call_white_24), in addAnswerAction() 911 Icon.createWithResource(context, R.drawable.quantum_ic_call_white_24), in addSpeakeasyAnswerAction() 925 Icon.createWithResource(context, R.drawable.quantum_ic_close_white_24), in addDismissAction() 940 Icon.createWithResource(context, R.drawable.quantum_ic_call_end_white_24), in addHangupAction() 967 Icon.createWithResource(context, R.drawable.quantum_ic_volume_up_vd_theme_24), in addSpeakerOnAction() 981 Icon.createWithResource(context, R.drawable.quantum_ic_phone_in_talk_vd_theme_24), in addSpeakerOffAction() 995 Icon.createWithResource(context, R.drawable.quantum_ic_videocam_vd_white_24), in addVideoCallAction() 1011 Icon.createWithResource(context, R.drawable.quantum_ic_videocam_vd_white_24), in addAcceptUpgradeRequestAction() 1026 Icon.createWithResource(context, R.drawable.quantum_ic_videocam_vd_white_24), in addDismissUpgradeRequestAction()
|
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/calling/ |
H A D | WifiCallingSliceHelper.java | 173 final IconCompat icon = IconCompat.createWithResource(mContext, R.drawable.wifi_signal); in getWifiCallingSlice() 267 final IconCompat icon = IconCompat.createWithResource(mContext, R.drawable.wifi_signal); in getWifiCallingPreferenceSlice() 316 IconCompat.createWithResource(mContext, R.drawable.radio_button_check); in wifiPreferenceRowBuilder() 469 final IconCompat icon = IconCompat.createWithResource(mContext, R.drawable.wifi_signal); in getNonActionableWifiCallingSlice()
|
/aosp12/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/ |
H A D | NekoControlsService.kt | 116 return Icon.createWithResource(resources, Cat.chooseP(rng, P_TOY_ICONS, 4)) 147 .setCustomIcon(Icon.createWithResource(resources, 162 .setCustomIcon(Icon.createWithResource(resources,
|
H A D | Food.java | 44 return Icon.createWithResource(context, sIcons[mType]); in getIcon()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
H A D | StatusBarIconViewTest.java | 91 Icon.createWithResource(mContext, R.drawable.ic_android), 0, 0, ""); in setUp() 104 mStatusBarIcon.icon = Icon.createWithResource("mockPackage", R.drawable.ic_android); in testSettingOomingIconDoesNotThrowOom()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/ |
H A D | SliceBuilderUtilsTest.java | 361 final int expectedIconResource = IconCompat.createWithResource(mContext, in buildIntentSlice_noIconPassed_returnsSliceWithIcon() 376 final int expectedIconResource = IconCompat.createWithResource(mContext, in buildDisabledDependentSlice_noIconPassed_returnsSliceWithIcon() 395 final int expectedIconResource = IconCompat.createWithResource(mContext, in buildToggleSlice_noIconPassed_returnsSliceWithIcon() 410 final int expectedIconResource = IconCompat.createWithResource(mContext, in buildSliderSlice_noIconPassed_returnsSliceWithIcon()
|
/aosp12/packages/apps/Settings/src/com/android/settings/wifi/slice/ |
H A D | WifiSlice.java | 129 final IconCompat icon = IconCompat.createWithResource(mContext, in getHeaderRow() 190 return IconCompat.createWithResource(mContext, R.drawable.ic_settings_24dp); in getEndIcon() 194 return IconCompat.createWithResource(mContext, R.drawable.ic_friction_lock_closed); in getEndIcon()
|
/aosp12/packages/apps/Car/libs/car-qc-lib/tests/unit/src/com/android/car/qc/ |
H A D | QCItemTestCase.java | 39 protected Icon mDefaultIcon = Icon.createWithResource(mContext, R.drawable.btn_star);
|
/aosp12/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/notification/ |
H A D | NotificationFragment.java | 276 .setIcon(IconCompat.createWithResource(v.getContext(), in initCustomizableMessageButton() 338 .setIcon(IconCompat.createWithResource(v.getContext(), R.drawable.avatar1)) in initMessagingStyleButtonForDiffPerson() 342 .setIcon(IconCompat.createWithResource(v.getContext(), R.drawable.android_logo)) in initMessagingStyleButtonForDiffPerson() 346 .setIcon(IconCompat.createWithResource(v.getContext(), R.drawable.avatar2)) in initMessagingStyleButtonForDiffPerson() 711 .setLargeIcon(Icon.createWithResource(mContext, R.drawable.android_logo)); in initMediaButton() 755 .setLargeIcon(Icon.createWithResource(mContext, R.drawable.avatar1)) in initCustomGroupSummaryButton()
|
/aosp12/frameworks/base/graphics/java/android/graphics/drawable/ |
H A D | Icon.java | 554 return createWithResource(packageName, resId); in createFromStream() 605 public static Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource() method in Icon 620 public static Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource() method in Icon 635 public static Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource() method in Icon
|
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
H A D | ConnectedDevicesSliceProvider.java | 332 .setIcon(IconCompat.createWithResource(context, R.drawable.ic_baseline_info_24dp)); in createBluetoothDeviceSlice() 366 .setIcon(IconCompat.createWithResource( in updateBluetoothToggle() 405 .setIcon(IconCompat.createWithResource(getContext(), in updatePairingButton() 508 pref.setIcon(IconCompat.createWithResource( in createBtDeviceSlicePreference()
|
/aosp12/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/ |
H A D | MicQcPanel.java | 67 mMicOnIcon = Icon.createWithResource(context, R.drawable.ic_mic_light); in MicQcPanel() 69 mMicOffIcon = Icon.createWithResource(context, R.drawable.ic_mic_off_light); in MicQcPanel()
|