Home
last modified time | relevance | path

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

1234567

/packages/modules/IntentResolver/java/src/com/android/intentresolver/icon/
DComposeIcon.kt23 import android.graphics.drawable.Icon in <lambda>()
35 fun Icon.toComposeIcon(pm: PackageManager, resolver: ContentResolver): ComposeIcon? { in <lambda>() method
37 Icon.TYPE_BITMAP -> BitmapIcon(bitmap) in <lambda>()
38 Icon.TYPE_RESOURCE -> pm.resourcesForPackage(resPackage)?.let { ResourceIcon(resId, it) } in <lambda>()
39 Icon.TYPE_DATA -> in <lambda>()
41 Icon.TYPE_URI -> uriIcon(resolver) in <lambda>()
42 Icon.TYPE_ADAPTIVE_BITMAP -> AdaptiveIcon(BitmapIcon(bitmap)) in <lambda>()
43 Icon.TYPE_URI_ADAPTIVE_BITMAP -> uriIcon(resolver)?.let { AdaptiveIcon(it) } in <lambda>()
48 fun Icon.toComposeIcon(resources: Resources?, resolver: ContentResolver): ComposeIcon? { in toComposeIcon() method
50 Icon.TYPE_BITMAP -> BitmapIcon(bitmap) in toComposeIcon()
[all …]
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/wear/elements/
DIcon.kt29 import androidx.wear.compose.material.Icon
38 public fun Icon( in Icon() method
47 Icon( in Icon()
60 public fun Icon( in Icon() method
70 Icon( in Icon()
84 fun Icon( in Icon() method
97 Icon( in Icon()
105 Icon( in Icon()
113 Icon( in Icon()
/packages/apps/Dialer/java/com/android/dialer/shortcuts/
DIconFactory.java25 import android.graphics.drawable.Icon;
63 public Icon create(@NonNull DialerShortcut shortcut) { in create()
72 public Icon create(@NonNull ShortcutInfo shortcutInfo) { in create()
82 private Icon create( in create()
97 private Icon createAdaptiveIcon( in createAdaptiveIcon()
114 return Icon.createWithAdaptiveBitmap( in createAdaptiveIcon()
118 return Icon.createWithAdaptiveBitmap(bitmap); in createAdaptiveIcon()
121 private Icon createFlatIcon( in createFlatIcon()
137 return Icon.createWithBitmap( in createFlatIcon()
/packages/apps/TV/tests/common/src/com/android/tv/testing/utils/
DTestUtils.java22 import android.graphics.drawable.Icon;
88 Icon.class, in createTvInputInfoForO()
89 Icon.class, in createTvInputInfoForO()
90 Icon.class, in createTvInputInfoForO()
142 Icon.class, in createTvInputInfoForNyc()
143 Icon.class, in createTvInputInfoForNyc()
144 Icon.class, in createTvInputInfoForNyc()
/packages/apps/Car/systemlibs/car-qc-lib/src/com/android/car/qc/
DQCTile.java20 import android.graphics.drawable.Icon;
39 private Icon mIcon;
44 boolean isClickableWhileDisabled, @Nullable String subtitle, @Nullable Icon icon, in QCTile()
62 mIcon = Icon.CREATOR.createFromParcel(in); in QCTile()
121 public Icon getIcon() { in getIcon()
146 private Icon mIcon;
193 public Builder setIcon(@Nullable Icon icon) { in setIcon()
DQCActionItem.java21 import android.graphics.drawable.Icon;
35 private Icon mIcon;
42 @Nullable Icon icon, @Nullable String contentDescription, in QCActionItem()
61 mIcon = Icon.CREATOR.createFromParcel(in); in QCActionItem()
128 public Icon getIcon() { in getIcon()
159 private Icon mIcon;
215 public Builder setIcon(@Nullable Icon icon) { in setIcon()
DQCRow.java20 import android.graphics.drawable.Icon;
45 private final Icon mStartIcon;
56 @Nullable PendingIntent disabledClickAction, @Nullable Icon startIcon, in QCRow()
81 mStartIcon = Icon.CREATOR.createFromParcel(in); in QCRow()
187 public Icon getStartIcon() { in getStartIcon()
228 private Icon mStartIcon;
292 public Builder setIcon(@Nullable Icon icon) { in setIcon()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DFullScreenDialogFragment.java19 import android.graphics.drawable.Icon;
61 public DialogBuilder setIcon(Icon icon) { in setIcon()
79 public DialogBuilder setHintIcon(Icon hintIcon) { in setHintIcon()
127 final Icon icon = args.getParcelable(ARGUMENT_ICON, Icon.class); in onCreateView()
148 final Icon hintIcon = args.getParcelable(ARGUMENT_HINT_ICON, Icon.class); in onCreateView()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/common/icon/ui/viewbinder/
DIconViewBinder.kt21 import com.android.wallpaper.picker.common.icon.ui.viewmodel.Icon
27 viewModel: Icon, in bind()
30 is Icon.Resource -> view.setImageResource(viewModel.res) in bind()
31 is Icon.Loaded -> view.setImageDrawable(viewModel.drawable) in bind()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/util/
DUriFiltersTest.kt24 import android.graphics.drawable.Icon
62 val icon = Icon.createWithBitmap(it) in chooserAction_hasValidIcon_bitmap()
69 val icon = Icon.createWithContentUri("content://provider/content/12345") in chooserAction_hasValidIcon_uri()
75 val icon = Icon.createWithContentUri("content://${userId}@provider/content/12345") in chooserAction_hasValidIcon_uri_unowned()
100 private fun actionWithIcon(icon: Icon): ChooserAction { in actionWithIcon()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/util/
DUriFilters.kt22 import android.graphics.drawable.Icon
23 import android.graphics.drawable.Icon.TYPE_URI
24 import android.graphics.drawable.Icon.TYPE_URI_ADAPTIVE_BITMAP
68 fun hasValidIcon(icon: Icon) = in hasValidIcon()
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/ui/viewmodel/
DKeyguardQuickAffordancePickerViewModel.kt39 import com.android.wallpaper.picker.common.icon.ui.viewmodel.Icon in <lambda>()
155 OptionItemViewModel<Icon>( in <lambda>()
160 Icon.Loaded( in <lambda>()
205 val quickAffordances: Flow<List<OptionItemViewModel<Icon>>> = in <lambda>()
241 OptionItemViewModel<Icon>( in <lambda>()
246 payload = Icon.Loaded(drawable = affordanceIcon, contentDescription = null), in <lambda>()
313 Icon.Resource( in <lambda>()
370 Icon.Loaded( in <lambda>()
416 ): OptionItemViewModel<Icon> { in <lambda>()
417 return OptionItemViewModel<Icon>( in <lambda>()
[all …]
DKeyguardQuickAffordanceSummaryViewModel.kt20 import com.android.wallpaper.picker.common.icon.ui.viewmodel.Icon
25 val icon1: Icon?,
26 val icon2: Icon?,
/packages/apps/Car/Settings/src/com/android/car/settings/qc/
DThemeToggle.java26 import android.graphics.drawable.Icon;
113 private Icon getThemeModeIcon(int mode) { in getThemeModeIcon()
116 return Icon.createWithResource(getContext(), R.drawable.ic_qc_ui_mode_auto); in getThemeModeIcon()
118 return Icon.createWithResource(getContext(), R.drawable.ic_qc_ui_mode_day); in getThemeModeIcon()
120 return Icon.createWithResource(getContext(), R.drawable.ic_qc_ui_mode_night); in getThemeModeIcon()
DPairedBluetoothDevices.java35 import android.graphics.drawable.Icon;
105 .setIcon(Icon.createWithResource(getContext(), in getQCItem()
129 .setIcon(Icon.createWithResource(getContext(), in getQCItem()
145 .setIcon(Icon.createWithResource(getContext(), getIconRes(cachedDevice))) in getQCItem()
258 Icon.createWithResource(getContext(), R.drawable.ic_qc_bluetooth), in createBluetoothButton()
270 Icon.createWithResource(getContext(), iconRes), in createPhoneButton()
282 Icon.createWithResource(getContext(), iconRes), in createMediaButton()
289 String buttonType, Icon icon, String contentDescription, boolean available, in createBluetoothDeviceToggle()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DExpectedKeyVisual.java37 return new Icon(iconId); in newInstance()
53 private static class Icon extends ExpectedKeyVisual { class in ExpectedKeyVisual
56 Icon(final int iconId) { in Icon() method in ExpectedKeyVisual.Icon
107 return (visual instanceof Icon) && mIconId == ((Icon)visual).mIconId; in hasSameKeyVisual()
/packages/apps/ThemePicker/src/com/android/customization/picker/settings/ui/viewmodel/
DColorContrastSectionViewModel.kt23 import com.android.wallpaper.picker.common.icon.ui.viewmodel.Icon in <lambda>()
41 Icon.Resource( in <lambda>()
49 Icon.Resource( in <lambda>()
57 Icon.Resource( in <lambda>()
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/qc/
DDisplaySwitcher.java22 import android.graphics.drawable.Icon;
60 builder.setIcon(Icon.createWithBitmap(drawableToBitmap(metadata.getIcon()))); in getQCItem()
67 Icon icon = Icon.createWithBitmap(drawableToBitmap(control.getIcon())); in getQCItem()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/common/icon/ui/viewmodel/
DIcon.kt24 sealed class Icon( class
31 Icon(
39 Icon(
/packages/apps/Car/SystemUI/src/com/android/systemui/car/privacy/
DSensorQcPanel.java28 import android.graphics.drawable.Icon;
59 protected Icon mSensorOnIcon;
61 protected Icon mSensorOffIcon;
79 mSensorOnIcon = Icon.createWithResource(context, getSensorOnIconResourceId()); in SensorQcPanel()
80 mSensorOffIcon = Icon.createWithResource(context, getSensorOffIconResourceId()); in SensorQcPanel()
201 private Icon loadAppIcon(@NonNull ApplicationInfo appInfo) { in loadAppIcon()
206 return Icon.createWithBitmap(createBitmapFromDrawable(pm.getUserBadgedIcon(appIcon, user))); in loadAppIcon()
/packages/apps/Car/systemlibs/car-qc-lib/tests/unit/src/com/android/car/qc/
DQCItemTestCase.java23 import android.graphics.drawable.Icon;
39 protected Icon mDefaultIcon = Icon.createWithResource(mContext, R.drawable.btn_star);
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/profileselector/
DProfileSelector.kt29 import androidx.compose.material3.Icon
82 Icon( in ProfileSelector()
90 ?: Icon( in ProfileSelector()
138 Icon( in ProfileSelector()
152 ?: Icon( in ProfileSelector()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DDrawableUtil.java23 import android.graphics.drawable.Icon;
34 public static Icon createIconFromDrawable(Drawable drawable) { in createIconFromDrawable()
35 return Icon.createWithBitmap(createBitmapFromDrawable(drawable)); in createIconFromDrawable()
/packages/apps/ThemePicker/tests/robotests/src/com/android/customization/model/picker/settings/ui/viewmodel/
DColorContrastSectionViewModelTest.kt22 import com.android.wallpaper.picker.common.icon.ui.viewmodel.Icon
67 Icon.Resource(res = R.drawable.ic_contrast_standard, contentDescription = null) in <lambda>()
81 Icon.Resource(res = R.drawable.ic_contrast_medium, contentDescription = null) in <lambda>()
95 Icon.Resource(res = R.drawable.ic_contrast_high, contentDescription = null) in <lambda>()
/packages/apps/Contacts/src/com/android/contacts/compat/
DPhoneAccountCompat.java20 import android.graphics.drawable.Icon;
39 public static Icon getIcon(@Nullable PhoneAccount phoneAccount) { in getIcon()
80 Icon accountIcon = getIcon(phoneAccount); in createIconDrawableMarshmallow()

1234567