Home
last modified time | relevance | path

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

123456

/frameworks/base/graphics/java/android/graphics/drawable/
DIcon.java66 public final class Icon implements Parcelable { class
483 private Icon(int mType) { in Icon() method in Icon
493 public static Icon createFromStream(InputStream stream) throws IOException { in createFromStream()
529 public boolean sameAs(Icon otherIcon) { in sameAs()
559 public static Icon createWithResource(Context context, @DrawableRes int resId) { in createWithResource()
563 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
574 public static Icon createWithResource(Resources res, @DrawableRes int resId) { in createWithResource()
578 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
589 public static Icon createWithResource(String resPackage, @DrawableRes int resId) { in createWithResource()
593 final Icon rep = new Icon(TYPE_RESOURCE); in createWithResource()
[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()
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/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;
56 private Icon mIcon;
103 public ChooserTarget(CharSequence title, Icon icon, float score, in ChooserTarget()
119 mIcon = Icon.CREATOR.createFromParcel(in); in ChooserTarget()
144 public Icon getIcon() { in getIcon()
/frameworks/base/core/java/com/android/internal/widget/
DCachingIconView.java26 import android.graphics.drawable.Icon;
55 public void setImageIcon(@Nullable Icon icon) { in setImageIcon()
65 public Runnable setImageIconAsync(@Nullable Icon icon) { in setImageIconAsync()
125 private synchronized boolean testAndSetCache(Icon icon) { in testAndSetCache()
126 if (icon != null && icon.getType() == Icon.TYPE_RESOURCE) { in testAndSetCache()
163 private String normalizeIconPackage(Icon icon) { in normalizeIconPackage()
DMessagingLayout.java31 import android.graphics.drawable.Icon;
92 private Icon mAvatarReplacement;
136 public void setAvatarReplacement(Icon icon) { in setAvatarReplacement()
270 ArrayMap<CharSequence, Icon> cachedAvatars = new ArrayMap<>(); in updateTitleAndNamesDisplay()
281 Icon cachedIcon = group.getAvatarSymbolIfMatching(senderName, in updateTitleAndNamesDisplay()
298 Icon cachedIcon = cachedAvatars.get(senderName); in updateTitleAndNamesDisplay()
310 public Icon createAvatarSymbol(CharSequence senderName, String symbol, int layoutColor) { in createAvatarSymbol()
313 Icon avatarIcon = Icon.createWithResource(getContext(), in createAvatarSymbol()
329 return Icon.createWithBitmap(bitmap); in createAvatarSymbol()
376 Icon userIcon = Icon.createWithResource(getContext(), in setUser()
/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/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/android/service/quicksettings/
DTile.java19 import android.graphics.drawable.Icon;
64 private Icon mIcon;
120 public Icon getIcon() { in getIcon()
134 public void setIcon(Icon icon) { in setIcon()
222 mIcon = Icon.CREATOR.createFromParcel(source); in readFromParcel()
DIQSService.aidl19 import android.graphics.drawable.Icon;
28 void updateStatusIcon(in IBinder tile, in Icon icon, in updateStatusIcon()
/frameworks/base/core/java/android/app/
DPerson.java21 import android.graphics.drawable.Icon;
34 @Nullable private Icon mIcon;
43 mIcon = Icon.CREATOR.createFromParcel(in); in Person()
85 public Icon getIcon() { in getIcon()
168 @Nullable private Icon mIcon;
206 public Person.Builder setIcon(@Nullable Icon icon) { in setIcon()
DRemoteAction.java20 import android.graphics.drawable.Icon;
35 private final Icon mIcon;
43 mIcon = Icon.CREATOR.createFromParcel(in); in RemoteAction()
51 public RemoteAction(@NonNull Icon icon, @NonNull CharSequence title, in RemoteAction()
96 public @NonNull Icon getIcon() { in getIcon()
/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/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()
/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()
114 public Icon getIcon() { in getIcon()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationTest.java41 import android.graphics.drawable.Icon;
444 Icon icon = mock(Icon.class); in testActionsDifferentSame()
459 Icon icon = mock(Icon.class); in testActionsDifferentText()
474 Icon icon = mock(Icon.class); in testActionsDifferentSpannables()
493 Icon icon = mock(Icon.class); in testActionsDifferentNumber()
510 Icon icon = mock(Icon.class); in testActionsDifferentIntent()
525 Icon icon = mock(Icon.class); in testActionsIgnoresRemoteInputs()
548 Icon icon = mock(Icon.class); in testFreeformRemoteInputActionPair_noRemoteInput()
559 Icon icon = mock(Icon.class); in testFreeformRemoteInputActionPair_hasRemoteInput()
589 Icon icon = mock(Icon.class); in testFreeformRemoteInputActionPair_requestFreeform_noFreeformRemoteInput()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DImageTransformState.java19 import android.graphics.drawable.Icon;
40 private Icon mIcon;
46 mIcon = (Icon) view.getTag(ICON_TAG); in initFrom()
107 public Icon getIcon() { in getIcon()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/utils/
DIconCacheTest.java31 import android.graphics.drawable.Icon;
41 private Icon mIcon;
48 mIcon = mock(Icon.class); in setUp()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTile.java25 import com.android.systemui.plugins.qs.QSTile.Icon;
35 @DependsOn(target = Icon.class)
85 @ProvidesInterface(version = Icon.VERSION)
86 public static abstract class Icon { class
96 return Icon.class.hashCode(); in hashCode()
107 public Icon icon;
108 public Supplier<Icon> iconSupplier;
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationShellCmd.java33 import android.graphics.drawable.Icon;
264 Icon parseIcon(Resources res, String encoded) throws IllegalArgumentException { in parseIcon()
275 return Icon.createWithContentUri(asUri); in parseIcon()
280 return Icon.createWithResource(res, resid); in parseIcon()
285 return Icon.createWithData(bits, 0, bits.length); in parseIcon()
303 Icon smallIcon = null; in doNotify()
327 final Icon icon = parseIcon(res, iconSpec); in doNotify()
417 final Icon pictureAsIcon = parseIcon(res, pictureSpec); in doNotify()
/frameworks/base/core/java/android/print/
DIPrintSpoolerCallbacks.aidl19 import android.graphics.drawable.Icon;
45 void onGetCustomPrinterIconResult(in Icon icon, int sequence); in onGetCustomPrinterIconResult()
/frameworks/base/wifi/java/android/net/wifi/hotspot2/
DOsuProvider.java21 import android.graphics.drawable.Icon;
90 private final Icon mIcon;
95 Icon icon) { in OsuProvider()
199 public Icon getIcon() { in getIcon()
270 Icon icon = in.readParcelable(null);
/frameworks/base/core/java/android/printservice/
DCustomPrinterIconCallback.java21 import android.graphics.drawable.Icon;
53 public boolean onCustomPrinterIconLoaded(@Nullable Icon icon) { in onCustomPrinterIconLoaded()

123456