Home
last modified time | relevance | path

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

12345678910>>...21

/frameworks/base/core/java/android/app/smartspace/uitemplatedata/
DIcon.java36 public final class Icon implements Parcelable { class
39 private final android.graphics.drawable.Icon mIcon;
46 Icon(@NonNull Parcel in) { in Icon() method in Icon
47 mIcon = in.readTypedObject(android.graphics.drawable.Icon.CREATOR); in Icon()
52 private Icon(@NonNull android.graphics.drawable.Icon icon, in Icon() method in Icon
62 public android.graphics.drawable.Icon getIcon() { in getIcon()
81 public static final Creator<Icon> CREATOR = new Creator<Icon>() {
83 public Icon createFromParcel(Parcel in) {
84 return new Icon(in);
88 public Icon[] newArray(int size) {
[all …]
DHeadToHeadTemplateData.java46 private final Icon mHeadToHeadFirstCompetitorIcon;
48 private final Icon mHeadToHeadSecondCompetitorIcon;
61 mHeadToHeadFirstCompetitorIcon = in.readTypedObject(Icon.CREATOR); in HeadToHeadTemplateData()
62 mHeadToHeadSecondCompetitorIcon = in.readTypedObject(Icon.CREATOR); in HeadToHeadTemplateData()
76 @Nullable Icon headToHeadFirstCompetitorIcon, in HeadToHeadTemplateData()
77 @Nullable Icon headToHeadSecondCompetitorIcon, in HeadToHeadTemplateData()
100 public Icon getHeadToHeadFirstCompetitorIcon() { in getHeadToHeadFirstCompetitorIcon()
106 public Icon getHeadToHeadSecondCompetitorIcon() { in getHeadToHeadSecondCompetitorIcon()
208 private Icon mHeadToHeadFirstCompetitorIcon;
209 private Icon mHeadToHeadSecondCompetitorIcon;
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DLocalImageResolverTest.java27 import android.graphics.drawable.Icon;
51 Icon icon = Icon.createWithResource(mContext, 0x85849454); in resolveImage_invalidResource_returnsNull()
60 Icon icon = Icon.createWithContentUri(Uri.parse("bogus://uri")); in resolveImage_invalidIconUri_returnsNull()
73 Icon icon = Icon.createWithResource(mContext, R.drawable.blue); in resolveImage_nonBitmapResourceIcon_fallsBackToNonResizingLoad()
94 Icon icon = Icon.createWithBitmap( in resolveImage_largeBitmapIcon_defaultSize_resizeToDefaultSize()
110 Icon icon = Icon.createWithAdaptiveBitmap( in resolveImage_largeAdaptiveBitmapIcon_defaultSize_resizeToDefaultSize()
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()
[all …]
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationHistoryProtoHelper.java21 import android.graphics.drawable.Icon;
174 case (int) Notification.Icon.IMAGE_TYPE: in loadIcon()
175 iconType = parser.readInt(Notification.Icon.IMAGE_TYPE); in loadIcon()
177 case (int) Notification.Icon.IMAGE_DATA: in loadIcon()
178 imageByteData = parser.readBytes(Notification.Icon.IMAGE_DATA); in loadIcon()
180 case (int) Notification.Icon.IMAGE_DATA_LENGTH: in loadIcon()
181 imageByteDataLength = parser.readInt(Notification.Icon.IMAGE_DATA_LENGTH); in loadIcon()
183 case (int) Notification.Icon.IMAGE_DATA_OFFSET: in loadIcon()
184 imageByteDataOffset = parser.readInt(Notification.Icon.IMAGE_DATA_OFFSET); in loadIcon()
186 case (int) Notification.Icon.IMAGE_BITMAP_FILENAME: in loadIcon()
[all …]
/frameworks/base/core/java/android/service/quickaccesswallet/
DWalletCard.java23 import android.graphics.drawable.Icon;
66 private final Icon mCardImage;
69 private final Icon mCardIcon;
71 private final Icon mNonPaymentCardSecondaryImage;
118 private void writeIconIfNonNull(Icon icon, Parcel dest, int flags) { in writeIconIfNonNull()
130 Icon cardImage = Icon.CREATOR.createFromParcel(source); in readFromParcel()
133 Icon cardIcon = source.readByte() == 0 ? null : Icon.CREATOR.createFromParcel(source); in readFromParcel()
135 Icon nonPaymentCardSecondaryImage = in readFromParcel()
136 source.readByte() == 0 ? null : Icon.CREATOR.createFromParcel(source); in readFromParcel()
188 public Icon getCardImage() { in getCardImage()
[all …]
DGetWalletCardsError.java21 import android.graphics.drawable.Icon;
31 private final Icon mIcon;
41 public GetWalletCardsError(@Nullable Icon icon, @Nullable CharSequence message) { in GetWalletCardsError()
63 Icon icon = source.readByte() == 0 ? null : Icon.CREATOR.createFromParcel(source); in readFromParcel()
87 public Icon getIcon() { in getIcon()
/frameworks/base/packages/SystemUI/compose/features/src/com/android/systemui/common/ui/compose/
DIcon.kt19 import androidx.compose.material3.Icon
27 import com.android.systemui.common.shared.model.Icon
35 fun Icon( in Icon() method
36 icon: Icon, in Icon()
42 is Icon.Loaded -> { in Icon()
43 Icon(icon.drawable.toBitmap().asImageBitmap(), contentDescription, modifier, tint) in Icon()
45 is Icon.Resource -> Icon(painterResource(icon.res), contentDescription, modifier, tint) in Icon()
/frameworks/base/core/java/com/android/internal/widget/
DLocalImageResolver.java28 import android.graphics.drawable.Icon;
81 public static Drawable resolveImage(@Nullable Icon icon, Context context) throws IOException { in resolveImage()
96 public static Drawable resolveImage(@Nullable Icon icon, Context context, int maxWidth, in resolveImage()
103 case Icon.TYPE_URI: in resolveImage()
104 case Icon.TYPE_URI_ADAPTIVE_BITMAP: in resolveImage()
113 case Icon.TYPE_RESOURCE: in resolveImage()
125 case Icon.TYPE_BITMAP: in resolveImage()
126 case Icon.TYPE_ADAPTIVE_BITMAP: in resolveImage()
128 case Icon.TYPE_DATA: // We can't really improve on raw data images. in resolveImage()
175 private static Drawable resolveBitmapImage(Icon icon, Context context, int maxWidth, in resolveBitmapImage()
[all …]
DCallLayout.java27 import android.graphics.drawable.Icon;
56 private Icon mLargeIcon;
98 private Icon getConversationIcon() { in getConversationIcon()
101 Icon icon = null; in getConversationIcon()
144 public Runnable setLargeIconAsync(Icon largeIcon) { in setLargeIconAsync()
154 public void setLargeIcon(Icon largeIcon) { in setLargeIcon()
166 final Icon icon = getConversationIcon(); in setData()
181 final Icon conversationIcon = getConversationIcon(); in setDataAsync()
/frameworks/base/telecomm/java/android/telecom/
DStatusHints.java24 import android.graphics.drawable.Icon;
41 private Icon mIcon;
50 this(label, iconResId == 0 ? null : Icon.createWithResource(packageName.getPackageName(), in StatusHints()
54 public StatusHints(CharSequence label, Icon icon, Bundle extras) { in StatusHints()
65 public StatusHints(@Nullable Icon icon) { in StatusHints()
76 public void setIcon(@Nullable Icon icon) { in setIcon()
124 public Icon getIcon() { in getIcon()
148 public static Icon validateAccountIconUserBoundary(Icon icon, UserHandle callingUserHandle) { in validateAccountIconUserBoundary()
151 if (icon != null && (icon.getType() == Icon.TYPE_URI in validateAccountIconUserBoundary()
152 || icon.getType() == Icon.TYPE_URI_ADAPTIVE_BITMAP)) { in validateAccountIconUserBoundary()
[all …]
/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java82 public final class Icon implements Parcelable { class
675 private Icon(int mType) { in Icon() method in Icon
685 public static @Nullable Icon createFromStream(@NonNull InputStream stream) throws IOException { in createFromStream()
724 public boolean sameAs(@NonNull Icon otherIcon) { in sameAs()
757 public static @NonNull Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource()
761 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
772 public static @NonNull Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource()
776 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
787 public static @NonNull Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource()
791 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java90 final Icon im1 = Icon.createWithBitmap(bm1); in testWithBitmap()
91 final Icon im2 = Icon.createWithBitmap(bm2); in testWithBitmap()
92 final Icon im3 = Icon.createWithBitmap(bm3); in testWithBitmap()
148 final Icon ic = Icon.createWithBitmap(bm); in testScaleDownIfNecessary()
165 final Icon im1 = Icon.createWithAdaptiveBitmap(bm1); in testWithAdaptiveBitmap()
197 final Icon im1 = Icon.createWithResource(getContext(), R.drawable.landscape); in testWithBitmapResource()
246 final Icon im1 = Icon.createWithResource(getContext(), in testWithStatSysAdbResource()
279 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testWithFile()
298 final Icon im1 = Icon.createWithResourceAdaptiveDrawable(getContext().getPackageName(), in testWithAdaptiveIconResource_useMonochrome()
315 final Icon im1 = Icon.createWithResourceAdaptiveDrawable(getContext().getPackageName(), in testWithAdaptiveIconResource_dontUseMonochrome()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/satellite/ui/model/
DSatelliteIconModel.kt20 import com.android.systemui.common.shared.model.Icon
32 ): Icon.Resource? = in fromConnectionState()
38 Icon.Resource( in fromConnectionState()
54 ): Icon.Resource? = in fromSignalStrength()
59 Icon.Resource( in fromSignalStrength()
70 Icon.Resource( in fromSignalStrength()
81 Icon.Resource( in fromSignalStrength()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/icon/ui/viewmodel/
DNotificationIconsViewData.kt18 import android.graphics.drawable.Icon in <lambda>()
98 val sourceIcon: Icon,
107 fun ActiveNotificationModel.toIconInfo(sourceIcon: Icon?): NotificationIconInfo? { in ActiveNotificationModel()
123 val sourceIcon: Icon,
141 Icon.TYPE_BITMAP, in hashCode()
142 Icon.TYPE_ADAPTIVE_BITMAP -> { in hashCode()
145 Icon.TYPE_DATA -> { in hashCode()
149 Icon.TYPE_RESOURCE -> { in hashCode()
153 Icon.TYPE_URI, in hashCode()
154 Icon.TYPE_URI_ADAPTIVE_BITMAP -> { in hashCode()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/ui/
DCanUseIconPredicate.kt20 import android.graphics.drawable.Icon
22 class CanUseIconPredicate(private val currentUserId: Int) : (Icon) -> Boolean {
24 override fun invoke(icon: Icon): Boolean = in invoke()
25 if (icon.type == Icon.TYPE_URI || icon.type == Icon.TYPE_URI_ADAPTIVE_BITMAP) { in invoke()
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/shared/model/
DIcon.kt26 sealed class Icon { class
32 ) : Icon()
37 ) : Icon()
41 fun Drawable.asIcon(contentDescription: ContentDescription? = null): Icon =
42 Icon.Loaded(this, contentDescription)
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/
DBigPictureIconManager.kt23 import android.graphics.drawable.Icon in <lambda>()
120 override fun updateIcon(drawableConsumer: NotificationDrawableConsumer, icon: Icon?): Runnable { in <lambda>()
135 private fun loadImageOrPlaceHolderSync(icon: Icon?): Pair<Drawable, DrawableState>? { in <lambda>()
146 private fun loadImageSync(icon: Icon): Pair<Drawable, DrawableState>? { in <lambda>()
172 private fun loadPlaceHolderSync(icon: Icon): Pair<Drawable, DrawableState>? { in <lambda>()
186 private fun startLoadingJob(icon: Icon): Job = scope.launch { in <lambda>()
190 private suspend fun loadImage(icon: Icon) { in <lambda>()
196 private fun startFreeImageJob(icon: Icon, drawableSize: Size): Job = in <lambda>()
204 private fun createPlaceHolder(icon: Icon, size: Size): Pair<Drawable, DrawableState> { in <lambda>()
236 private fun skipLazyLoading(icon: Icon?): Boolean = in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/chipbar/
DChipbarCoordinatorTest.kt39 import com.android.systemui.common.shared.model.Icon
138 Icon.Resource(R.drawable.ic_cake, ContentDescription.Loaded("loadedCD")), in displayView_contentDescription_iconHasDescription()
153 Icon.Resource(R.drawable.ic_cake, contentDescription = null), in displayView_contentDescription_iconHasNoDescription()
167 Icon.Resource(R.drawable.ic_cake, ContentDescription.Loaded("loadedCD")), in displayView_contentDescription_endIsLoading()
183 Icon.Resource(R.drawable.ic_cake, ContentDescription.Loaded("loadedCD")), in displayView_contentDescription_endNotLoading()
201 Icon.Loaded(drawable, contentDescription = ContentDescription.Loaded("loadedCD")), in displayView_loadedIcon_correctlyRendered()
217 Icon.Resource(R.drawable.ic_cake, contentDescription), in displayView_resourceIcon_correctlyRendered()
232 Icon.Resource(R.id.check_box, null), in displayView_loadedText_correctlyRendered()
245 Icon.Resource(R.id.check_box, null), in displayView_resourceText_correctlyRendered()
259 Icon.Resource(R.id.check_box, null), in displayView_endItemNull_correctlyRendered()
[all …]
/frameworks/base/core/java/android/service/chooser/
DChooserAction.java21 import android.graphics.drawable.Icon;
35 private final Icon mIcon;
40 Icon icon, in ChooserAction()
60 public Icon getIcon() { in getIcon()
95 Icon.CREATOR.createFromParcel(source),
110 private final Icon mIcon;
123 @NonNull Icon icon, in Builder()
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java40 import android.graphics.drawable.Icon;
711 final Icon icon1 = Icon.createWithContentUri("content://media/icon1"); in visitUris()
712 final Icon icon2 = Icon.createWithContentUri("content://media/icon2"); in visitUris()
713 final Icon icon3 = Icon.createWithContentUri("content://media/icon3"); in visitUris()
714 final Icon icon4 = Icon.createWithContentUri("content://media/icon4"); in visitUris()
730 final Icon iconLight = Icon.createWithContentUri("content://light/icon"); in visitUris_themedIcons()
731 final Icon iconDark = Icon.createWithContentUri("content://dark/icon"); in visitUris_themedIcons()
746 final Icon icon1 = Icon.createWithContentUri("content://inner/icon1"); in visitUris_nestedViews()
747 final Icon icon2 = Icon.createWithContentUri("content://inner/icon2"); in visitUris_nestedViews()
748 final Icon icon3 = Icon.createWithContentUri("content://inner/icon3"); in visitUris_nestedViews()
[all …]
/frameworks/base/packages/CredentialManager/horologist/src/com/google/android/horologist/compose/material/
DIcon.kt28 import androidx.wear.compose.material.Icon
39 public fun Icon( in Icon() method
48 Icon( in Icon()
65 public fun Icon( in Icon() method
75 Icon( in Icon()
88 internal fun Icon( in Icon() method
104 Icon( in Icon()
113 Icon( in Icon()
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarIcon.java19 import android.graphics.drawable.Icon;
42 public Icon icon;
49 public StatusBarIcon(UserHandle user, String resPackage, Icon icon, int iconLevel, int number, in StatusBarIcon()
51 if (icon.getType() == Icon.TYPE_RESOURCE in StatusBarIcon()
56 icon = Icon.createWithResource(resPackage, icon.getResId()); in StatusBarIcon()
70 this(user, iconPackage, Icon.createWithResource(iconPackage, iconId), in StatusBarIcon()
102 this.icon = (Icon) in.readParcelable(null, android.graphics.drawable.Icon.class); in readFromParcel()
/frameworks/base/packages/SystemUI/src/com/android/systemui/graphics/
DImageLoader.kt34 import android.graphics.drawable.Icon in <lambda>()
224 icon: Icon, in <lambda>()
318 icon: Icon, in <lambda>()
325 Icon.TYPE_URI, in <lambda>()
326 Icon.TYPE_URI_ADAPTIVE_BITMAP -> { in <lambda>()
330 Icon.TYPE_RESOURCE -> { in <lambda>()
344 Icon.TYPE_BITMAP -> { in <lambda>()
347 Icon.TYPE_ADAPTIVE_BITMAP -> { in <lambda>()
350 Icon.TYPE_DATA -> { in <lambda>()
370 fun loadIconDrawable(icon: Icon, context: Context): Drawable? { in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/binder/
DIconViewBinder.kt20 import com.android.systemui.common.shared.model.Icon
24 icon: Icon, in bind()
29 is Icon.Loaded -> view.setImageDrawable(icon.drawable) in bind()
30 is Icon.Resource -> view.setImageResource(icon.res) in bind()
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/component/mediaoutput/ui/viewmodel/
DDeviceIconViewModel.kt20 import com.android.systemui.common.shared.model.Icon
25 val icon: Icon
30 override val icon: Icon,
36 override val icon: Icon,

12345678910>>...21