Home
last modified time | relevance | path

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

1234567

/aosp12/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
H A 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()
/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/qc/
H A DPairedBluetoothDevices.java98 .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 DBrightnessSliderWithIcon.java44 builder.setIcon(Icon.createWithResource(getContext(), R.drawable.ic_qc_brightness)); in getBrightnessRowBuilder()
/aosp12/frameworks/base/core/tests/coretests/src/android/app/activity/
H A 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()
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/controller/
H A DShortcutController.kt81 .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 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()
/aosp12/frameworks/base/libs/WindowManager/Shell/tests/flicker/test-apps/flickerapp/src/com/android/wm/shell/flicker/testapp/
H A DLaunchBubbleActivity.java60 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 DCallServiceNotifier.java138 .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 DSelfManagedConnection.java126 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 DStatusBarIcon.java41 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 DStatusBarIconHolder.java61 Icon.createWithResource( context, resId), 0, 0, contentDescription); in fromResId()
93 Icon.createWithResource(context, resId), 0, 0, contentDescription); in fromCallIndicatorState()
H A DStatusBarIconControllerImpl.java182 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 DControlViewHolderTest.kt85 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 DStatusBarNotifier.java868 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 DWifiCallingSliceHelper.java173 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 DNekoControlsService.kt116 return Icon.createWithResource(resources, Cat.chooseP(rng, P_TOY_ICONS, 4))
147 .setCustomIcon(Icon.createWithResource(resources,
162 .setCustomIcon(Icon.createWithResource(resources,
H A DFood.java44 return Icon.createWithResource(context, sIcons[mType]); in getIcon()
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
H A 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()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/slices/
H A DSliceBuilderUtilsTest.java361 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 DWifiSlice.java129 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 DQCItemTestCase.java39 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 DNotificationFragment.java276 .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 DIcon.java554 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 DConnectedDevicesSliceProvider.java332 .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 DMicQcPanel.java67 mMicOnIcon = Icon.createWithResource(context, R.drawable.ic_mic_light); in MicQcPanel()
69 mMicOffIcon = Icon.createWithResource(context, R.drawable.ic_mic_off_light); in MicQcPanel()

1234567