Home
last modified time | relevance | path

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

12345678910

/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/graphics/java/android/graphics/drawable/
DIcon.java71 public final class Icon implements Parcelable { class
525 private Icon(int mType) { in Icon() method in Icon
535 public static Icon createFromStream(InputStream stream) throws IOException { in createFromStream()
574 public boolean sameAs(Icon otherIcon) { in sameAs()
605 public static Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource()
609 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
620 public static Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource()
624 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
635 public static Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource()
639 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
[all …]
/frameworks/base/core/java/android/service/quickaccesswallet/
DWalletCard.java22 import android.graphics.drawable.Icon;
36 private final Icon mCardImage;
39 private final Icon mCardIcon;
73 Icon cardImage = Icon.CREATOR.createFromParcel(source); in readFromParcel()
76 Icon cardIcon = source.readByte() == 0 ? null : Icon.CREATOR.createFromParcel(source); in readFromParcel()
112 public Icon getCardImage() { in getCardImage()
143 public Icon getCardIcon() { in getCardIcon()
167 private Icon mCardImage;
170 private Icon mCardIcon;
198 @NonNull Icon cardImage, in Builder()
[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/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()
192 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testWithFile()
216 final Icon im1 = Icon.createWithFilePath(file1.toString()); in testAsync()
221 im1.loadDrawableAsync(mContext, new Icon.OnDrawableLoadedListener() { in testAsync()
268 ArrayList<Icon> imgs = new ArrayList<>(); in testParcel()
[all …]
/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); in readFromParcel()
/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()
DControlStatus.kt20 import android.graphics.drawable.Icon
32 val customIcon: Icon?
51 override val customIcon: Icon?
/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/media/
DMediaData.kt21 import android.graphics.drawable.Icon
36 val appIcon: Icon?,
48 val artwork: Icon?,
117 val icon: Icon?,
/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/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()); in Suggestion()
162 private Icon mIcon;
193 public Builder setIcon(Icon icon) { in setIcon()
/frameworks/base/core/java/android/service/chooser/
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/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DStatusBarIconViewTest.java40 import android.graphics.drawable.Icon;
91 Icon.createWithResource(mContext, R.drawable.ic_android), 0, 0, ""); in setUp()
104 mStatusBarIcon.icon = Icon.createWithResource("mockPackage", R.drawable.ic_android); in testSettingOomingIconDoesNotThrowOom()
130 Icon icon = Icon.createWithBitmap(largeBitmap); in testGiantImageNotAllowed()
139 Icon icon = Icon.createWithBitmap(bitmap); in testNullNotifInfo()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/
DPackageInstalledNotificationUtils.java31 import android.graphics.drawable.Icon;
56 private final Icon mInstallerAppSmallIcon;
61 private final Icon mInstalledAppLargeIcon;
124 private static Icon getAppLargeIcon(@NonNull ApplicationInfo appInfo) { in getAppLargeIcon()
126 return Icon.createWithResource(appInfo.packageName, appInfo.icon); in getAppLargeIcon()
128 return Icon.createWithResource("android", android.R.drawable.sym_def_app_icon); in getAppLargeIcon()
140 private static Icon getAppNotificationIcon(@NonNull Context context, in getAppNotificationIcon()
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()
/frameworks/base/services/tests/servicestests/src/com/android/server/textclassifier/
DIconsContentProviderTest.java22 import android.graphics.drawable.Icon;
46 final Drawable expected = Icon.createWithResource(packageName, resId).loadDrawable(context); in testLoadResource()
51 final Drawable actual = Icon.createWithContentUri(uri).loadDrawable(context); in testLoadResource()
66 assertThat(Icon.createWithContentUri(badUri).loadDrawable(context)).isNull(); in testLoadResource_badUri()
/frameworks/base/telecomm/java/android/telecom/
DStatusHints.java23 import android.graphics.drawable.Icon;
36 private final Icon mIcon;
45 this(label, iconResId == 0 ? null : Icon.createWithResource(packageName.getPackageName(), in StatusHints()
49 public StatusHints(CharSequence label, Icon icon, Bundle extras) { in StatusHints()
99 public Icon getIcon() { in getIcon()
/frameworks/base/core/java/com/android/internal/widget/
DLocalImageResolver.java23 import android.graphics.drawable.Icon;
51 public static Drawable resolveImage(Icon icon, Context context) throws IOException { in resolveImage()
104 public static Uri getResolvableUri(@Nullable Icon icon) { in getResolvableUri()
105 if (icon == null || (icon.getType() != Icon.TYPE_URI in getResolvableUri()
106 && icon.getType() != Icon.TYPE_URI_ADAPTIVE_BITMAP)) { in getResolvableUri()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationTest.java37 import android.graphics.drawable.Icon;
361 Icon icon = mock(Icon.class); in testActionsDifferentSame()
376 Icon icon = mock(Icon.class); in testActionsDifferentText()
391 Icon icon = mock(Icon.class); in testActionsDifferentSpannables()
410 Icon icon = mock(Icon.class); in testActionsDifferentNumber()
427 Icon icon = mock(Icon.class); in testActionsDifferentIntent()
442 Icon icon = mock(Icon.class); in testActionsIgnoresRemoteInputs()
465 Icon icon = mock(Icon.class); in testFreeformRemoteInputActionPair_noRemoteInput()
476 Icon icon = mock(Icon.class); in testFreeformRemoteInputActionPair_hasRemoteInput()
506 Icon icon = mock(Icon.class); in testFreeformRemoteInputActionPair_requestFreeform_noFreeformRemoteInput()
[all …]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DCustomPrinterIconCache.java21 import android.graphics.drawable.Icon;
91 public synchronized @Nullable Icon getIcon(@NonNull PrinterId printerId) { in getIcon()
92 Icon icon; in getIcon()
97 icon = Icon.createFromStream(is); in getIcon()
141 @Nullable Icon icon) { in onCustomPrinterIconLoaded()
/frameworks/base/core/java/android/service/quicksettings/
DTile.java19 import android.graphics.drawable.Icon;
64 private Icon mIcon;
121 public Icon getIcon() { in getIcon()
135 public void setIcon(Icon icon) { in setIcon()
243 mIcon = Icon.CREATOR.createFromParcel(source); in readFromParcel()
/frameworks/base/core/java/android/service/controls/templates/
DThumbnailTemplate.java21 import android.graphics.drawable.Icon;
39 private final @NonNull Icon mThumbnail;
51 @NonNull Icon thumbnail, in ThumbnailTemplate()
83 public Icon getThumbnail() { in getThumbnail()
/frameworks/base/core/java/android/app/people/
DConversationStatus.java22 import android.graphics.drawable.Icon;
110 private Icon mIcon;
129 mIcon = p.readParcelable(Icon.class.getClassLoader()); in ConversationStatus()
177 public @Nullable Icon getIcon() { in getIcon()
249 Icon mIcon;
291 public @NonNull Builder setIcon(@Nullable Icon icon) { in setIcon()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSIconViewImplTest.java35 import com.android.systemui.plugins.qs.QSTile.Icon;
62 s.icon = mock(Icon.class); in testNoFirstAnimation()
69 s.icon = mock(Icon.class); in testNoFirstAnimation()
94 Icon i = mock(Icon.class); in testStateSetCorrectly_toString()

12345678910