Home
last modified time | relevance | path

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

12345678910>>...13

/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/core/java/android/service/quickaccesswallet/
DWalletCard.java23 import android.graphics.drawable.Icon;
67 private final Icon mCardImage;
70 private final Icon mCardIcon;
72 private final Icon mNonPaymentCardSecondaryImage;
117 private void writeIconIfNonNull(Icon icon, Parcel dest, int flags) { in writeIconIfNonNull()
129 Icon cardImage = Icon.CREATOR.createFromParcel(source); in readFromParcel()
132 Icon cardIcon = source.readByte() == 0 ? null : Icon.CREATOR.createFromParcel(source); in readFromParcel()
134 Icon nonPaymentCardSecondaryImage = source.readByte() == 0 ? null : in readFromParcel()
135 Icon.CREATOR.createFromParcel(source); in readFromParcel()
183 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/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/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/graphics/java/android/graphics/drawable/
DIcon.java71 public final class Icon implements Parcelable { class
541 private Icon(int mType) { in Icon() method in Icon
551 public static @Nullable Icon createFromStream(@NonNull InputStream stream) throws IOException { in createFromStream()
590 public boolean sameAs(@NonNull Icon otherIcon) { in sameAs()
621 public static @NonNull Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource()
625 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
636 public static @NonNull Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource()
640 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
651 public static @NonNull Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource()
655 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
[all …]
/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()
171 private static Drawable resolveBitmapImage(Icon icon, Context context, int maxWidth, in resolveBitmapImage()
[all …]
/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/core/tests/coretests/src/android/graphics/drawable/
DIconTest.java58 final Icon im1 = Icon.createWithBitmap(bm1); in testWithBitmap()
59 final Icon im2 = Icon.createWithBitmap(bm2); in testWithBitmap()
60 final Icon im3 = Icon.createWithBitmap(bm3); in testWithBitmap()
116 final Icon ic = Icon.createWithBitmap(bm); in testScaleDownIfNecessary()
133 final Icon im1 = Icon.createWithAdaptiveBitmap(bm1); in testWithAdaptiveBitmap()
165 final Icon im1 = Icon.createWithResource(getContext(), R.drawable.landscape); in testWithBitmapResource()
214 final Icon im1 = Icon.createWithResource(getContext(), in testWithStatSysAdbResource()
247 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testWithFile()
271 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testAsync()
276 im1.loadDrawableAsync(mContext, new Icon.OnDrawableLoadedListener() { in testAsync()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/chipbar/
DChipbarCoordinatorTest.kt38 import com.android.systemui.common.shared.model.Icon
131 Icon.Resource(R.drawable.ic_cake, ContentDescription.Loaded("loadedCD")), in displayView_contentDescription_iconHasDescription()
146 Icon.Resource(R.drawable.ic_cake, contentDescription = null), in displayView_contentDescription_iconHasNoDescription()
160 Icon.Resource(R.drawable.ic_cake, ContentDescription.Loaded("loadedCD")), in displayView_contentDescription_endIsLoading()
176 Icon.Resource(R.drawable.ic_cake, ContentDescription.Loaded("loadedCD")), in displayView_contentDescription_endNotLoading()
194 Icon.Loaded(drawable, contentDescription = ContentDescription.Loaded("loadedCD")), in displayView_loadedIcon_correctlyRendered()
210 Icon.Resource(R.drawable.ic_cake, contentDescription), in displayView_resourceIcon_correctlyRendered()
225 Icon.Resource(R.id.check_box, null), in displayView_loadedText_correctlyRendered()
238 Icon.Resource(R.id.check_box, null), in displayView_resourceText_correctlyRendered()
252 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;
36 private final Icon mIcon;
41 Icon icon, in ChooserAction()
61 public Icon getIcon() { in getIcon()
96 Icon.CREATOR.createFromParcel(source),
111 private final Icon mIcon;
124 @NonNull Icon icon, in Builder()
DChooserTarget.java24 import android.graphics.drawable.Icon;
61 private Icon mIcon;
108 public ChooserTarget(CharSequence title, Icon icon, float score, in ChooserTarget()
124 mIcon = Icon.CREATOR.createFromParcel(in); in ChooserTarget()
149 public Icon getIcon() { in getIcon()
/frameworks/base/core/java/com/android/internal/statusbar/
DStatusBarIcon.java19 import android.graphics.drawable.Icon;
28 public Icon icon;
34 public StatusBarIcon(UserHandle user, String resPackage, Icon icon, int iconLevel, int number, in StatusBarIcon()
36 if (icon.getType() == Icon.TYPE_RESOURCE in StatusBarIcon()
41 icon = Icon.createWithResource(resPackage, icon.getResId()); in StatusBarIcon()
54 this(user, iconPackage, Icon.createWithResource(iconPackage, iconId), in StatusBarIcon()
84 this.icon = (Icon) in.readParcelable(null, android.graphics.drawable.Icon.class); in readFromParcel()
/frameworks/base/core/tests/coretests/src/android/widget/
DRemoteViewsTest.java40 import android.graphics.drawable.Icon;
707 final Icon icon1 = Icon.createWithContentUri("content://media/icon1"); in visitUris()
708 final Icon icon2 = Icon.createWithContentUri("content://media/icon2"); in visitUris()
709 final Icon icon3 = Icon.createWithContentUri("content://media/icon3"); in visitUris()
710 final Icon icon4 = Icon.createWithContentUri("content://media/icon4"); in visitUris()
726 final Icon iconLight = Icon.createWithContentUri("content://light/icon"); in visitUris_themedIcons()
727 final Icon iconDark = Icon.createWithContentUri("content://dark/icon"); in visitUris_themedIcons()
742 final Icon icon1 = Icon.createWithContentUri("content://inner/icon1"); in visitUris_nestedViews()
743 final Icon icon2 = Icon.createWithContentUri("content://inner/icon2"); in visitUris_nestedViews()
744 final Icon icon3 = Icon.createWithContentUri("content://inner/icon3"); in visitUris_nestedViews()
[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/tests/src/com/android/systemui/statusbar/
DStatusBarIconViewTest.java44 import android.graphics.drawable.Icon;
96 Icon.createWithResource(mContext, R.drawable.ic_android), 0, 0, ""); in setUp()
109 mStatusBarIcon.icon = Icon.createWithResource("mockPackage", R.drawable.ic_android); in testSettingOomingIconDoesNotThrowOom()
135 Icon icon = Icon.createWithBitmap(largeBitmap); in testGiantImageNotAllowed()
149 Icon icon = Icon.createWithBitmap(bitmap); in testNullNotifInfo()
163 Icon mockIcon = mock(Icon.class); in testNullIcon()
169 Icon icon = Icon.createWithBitmap(bitmap); in testNullIcon()
/frameworks/base/core/java/android/service/settings/suggestions/
DSuggestion.java22 import android.graphics.drawable.Icon;
61 private final Icon mIcon;
90 public Icon getIcon() { in getIcon()
123 … mIcon = in.readParcelable(Icon.class.getClassLoader(), android.graphics.drawable.Icon.class); in Suggestion()
162 private Icon mIcon;
193 public Builder setIcon(Icon icon) { in setIcon()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DIconCache.java21 import android.graphics.drawable.Icon;
33 final ArrayMap<Icon, Drawable> mMap = new ArrayMap<>();
39 public Drawable getIcon(Icon icon) { in getIcon()
51 public void updateIcon(Icon icon, Drawable drawable) { in updateIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DCustomIconCache.kt20 import android.graphics.drawable.Icon
36 private val cache: MutableMap<String, Icon> = LinkedHashMap()
44 fun store(component: ComponentName, controlId: String, icon: Icon?) { in store()
64 fun retrieve(component: ComponentName, controlId: String): Icon? { in retrieve()
/frameworks/base/core/java/android/app/
DPerson.java21 import android.graphics.drawable.Icon;
35 @Nullable private Icon mIcon;
44 mIcon = Icon.CREATOR.createFromParcel(in); in Person()
86 public Icon getIcon() { in getIcon()
133 if (mIcon != null && (mIcon.getType() == Icon.TYPE_URI in getIconUri()
134 || mIcon.getType() == Icon.TYPE_URI_ADAPTIVE_BITMAP)) { in getIconUri()
183 @Nullable private Icon mIcon;
221 public Person.Builder setIcon(@Nullable Icon icon) { in setIcon()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/management/
DControlsModel.kt20 import android.graphics.drawable.Icon
118 private fun nullIconGetter(_a: ComponentName, _b: String): Icon? = null in nullIconGetter()
126 var customIconGetter: (ComponentName, String) -> Icon? = ::nullIconGetter in nullIconGetter()
134 customIconGetter: (ComponentName, String) -> Icon? in nullIconGetter()
147 override val customIcon: Icon? in nullIconGetter()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/pipeline/mobile/ui/viewmodel/
DMobileIconViewModelTest.kt25 import com.android.systemui.common.shared.model.Icon
254 Icon.Resource( in networkType_dataEnabled_groupIsRepresented()
260 var latest: Icon? = null in networkType_dataEnabled_groupIsRepresented()
273 var latest: Icon? = null in networkType_nullWhenDisabled()
287 var latest: Icon? = null in networkType_nullWhenFailedConnection()
299 Icon.Resource( in networkType_nullWhenDataDisconnects()
305 var latest: Icon? = null in networkType_nullWhenDataDisconnects()
323 Icon.Resource( in networkType_null_changeToDisabled()
329 var latest: Icon? = null in networkType_null_changeToDisabled()
349 var latest: Icon? = null in networkType_alwaysShow_shownEvenWhenDisabled()
[all …]
/frameworks/base/core/java/android/view/
DKeyboardShortcutInfo.java23 import android.graphics.drawable.Icon;
32 private final Icon mIcon;
51 @Nullable CharSequence label, @Nullable Icon icon, int keycode, int modifiers) { in KeyboardShortcutInfo()
94 mIcon = source.readParcelable(null, android.graphics.drawable.Icon.class); in KeyboardShortcutInfo()
114 public Icon getIcon() { in getIcon()

12345678910>>...13