Searched refs:icon (Results 1 - 25 of 449) sorted by relevance

1234567891011>>

/frameworks/base/core/java/com/android/internal/util/
H A DMimeIconUtils.java38 int icon;
41 icon = R.drawable.ic_doc_apk;
42 add("application/vnd.android.package-archive", icon);
45 icon = R.drawable.ic_doc_audio;
46 add("application/ogg", icon);
47 add("application/x-flac", icon);
50 icon = R.drawable.ic_doc_certificate;
51 add("application/pgp-keys", icon);
52 add("application/pgp-signature", icon);
53 add("application/x-pkcs12", icon);
[all...]
H A DUserIcons.java47 public static Bitmap convertToBitmap(Drawable icon) { argument
48 if (icon == null) {
51 final int width = icon.getIntrinsicWidth();
52 final int height = icon.getIntrinsicHeight();
55 icon.setBounds(0, 0, width, height);
56 icon.draw(canvas);
61 * Returns a default user icon for the given user.
65 * @param resources resources object to fetch user icon / color.
66 * @param userId the user id or {@code UserHandle.USER_NULL} for a non-user specific icon
67 * @param light whether we want a light icon (suitabl
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DCommandParams.java27 // Variable to track if an optional icon load has failed.
38 boolean setIcon(Bitmap icon) { return true; } argument
55 boolean setIcon(Bitmap icon) { argument
56 if (icon != null && mTextMsg != null) {
57 mTextMsg.icon = icon;
83 boolean setIcon(Bitmap icon) { argument
84 if (icon != null && mConfirmMsg != null) {
85 mConfirmMsg.icon = icon;
117 setIcon(Bitmap icon) argument
138 setIcon(Bitmap icon) argument
173 setIcon(Bitmap icon) argument
201 setIcon(Bitmap icon) argument
228 setIcon(Bitmap icon) argument
[all...]
H A DItem.java34 public Bitmap icon; field in class:Item
40 public Item(int id, String text, Bitmap icon) { argument
43 this.icon = icon;
49 icon = in.readParcelable(null);
61 dest.writeParcelable(icon, flags);
H A DTextMessage.java26 public Bitmap icon = null; field in class:TextMessage
39 icon = in.readParcelable(null);
56 dest.writeParcelable(icon, 0);
78 return "title=" + title + " text=" + text + " icon=" + icon +
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
H A DIconCache.java27 * Icon cache to avoid multiple loads on the same icon.
38 public Drawable getIcon(Icon icon) { argument
39 if (icon == null) {
42 Drawable drawable = mMap.get(icon);
44 drawable = icon.loadDrawable(mContext);
45 updateIcon(icon, drawable);
50 public void updateIcon(Icon icon, Drawable drawable) { argument
51 mMap.put(icon, drawable);
/frameworks/base/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DVectorPathChecking.java20 icon = new int[]{
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
H A DIconMixin.java31 * A {@link Mixin} for setting an icon on the template layout.
49 final @DrawableRes int icon = a.getResourceId(R.styleable.SuwIconMixin_android_icon, 0);
50 if (icon != 0) {
51 setIcon(icon);
58 * Sets the icon on this layout. The icon can also be set in XML using {@code android:icon}.
60 * @param icon A drawable icon.
62 public void setIcon(Drawable icon) { argument
75 setIcon(@rawableRes int icon) argument
[all...]
/frameworks/base/core/java/com/android/internal/statusbar/
H A DStatusBarIcon.java28 public Icon icon; field in class:StatusBarIcon
34 public StatusBarIcon(UserHandle user, String resPackage, Icon icon, int iconLevel, int number, argument
36 if (icon.getType() == Icon.TYPE_RESOURCE
37 && TextUtils.isEmpty(icon.getResPackage())) {
38 // This is an odd situation where someone's managed to hand us an icon without a
41 icon = Icon.createWithResource(resPackage, icon.getResId());
45 this.icon = icon;
60 return "StatusBarIcon(icon
[all...]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
H A DUidDetail.java26 public Drawable icon; field in class:UidDetail
/frameworks/base/core/java/android/content/pm/
H A DLabeledIntent.java25 * A special subclass of Intent that can have a custom label/icon
36 * and icon resources for it.
39 * @param sourcePackage The package in which the label and icon live.
41 * @param icon Resource containing the icon, or 0 if none.
44 int labelRes, int icon) {
49 mIcon = icon;
54 * label and icon resource for it.
57 * @param sourcePackage The package in which the label and icon live.
59 * @param icon Resourc
43 LabeledIntent(Intent origIntent, String sourcePackage, int labelRes, int icon) argument
61 LabeledIntent(Intent origIntent, String sourcePackage, CharSequence nonLocalizedLabel, int icon) argument
78 LabeledIntent(String sourcePackage, int labelRes, int icon) argument
93 LabeledIntent(String sourcePackage, CharSequence nonLocalizedLabel, int icon) argument
[all...]
/frameworks/base/core/java/android/util/
H A DIconDrawableFactory.java65 Drawable icon = mPm.loadUnbadgedItemIcon(itemInfo, appInfo);
67 return icon;
70 icon = getShadowedIcon(icon);
74 icon = mLauncherIcons.getBadgedDrawable(icon,
79 icon = mLauncherIcons.getBadgedDrawable(icon,
83 return icon;
87 * Add shadow to the icon i
89 getShadowedIcon(Drawable icon) argument
[all...]
/frameworks/base/core/java/com/android/internal/globalactions/
H A DSinglePressAction.java42 protected SinglePressAction(int iconResId, Drawable icon, CharSequence message) { argument
46 mIcon = icon;
75 ImageView icon = v.findViewById(R.id.icon);
87 if (icon != null) {
89 icon.setImageDrawable(mIcon);
90 icon.setScaleType(ImageView.ScaleType.CENTER_CROP);
92 icon.setImageDrawable(context.getDrawable(mIconResId));
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DNetworkController.java59 default void setEthernetIndicators(IconState icon) {} argument
61 default void setIsAirplaneMode(IconState icon) {} argument
72 public final int icon; field in class:NetworkController.IconState
75 public IconState(boolean visible, int icon, String contentDescription) { argument
77 this.icon = icon;
81 public IconState(boolean visible, int icon, int contentDescription, argument
83 this(visible, icon, context.getString(contentDescription));
/frameworks/layoutlib/bridge/
H A Dupdate_nav_icons.sh36 for icon in $ICONS
42 cp -v "$FB/packages/SystemUI/res/drawable-$density/$icon" "$destination"
49 cp -v "$FB/packages/SystemUI/res/drawable-ldrtl-$density/$icon" "$destination"
/frameworks/support/compat/src/main/java/androidx/core/graphics/drawable/
H A DIconCompat.java98 // Ratio of expected size to actual icon size
170 * Create an Icon pointing to a bitmap in memory that follows the icon design guideline defined
238 * Gets the type of the icon provided.
252 * Gets the package used to create this icon.
270 * Gets the resource id used to create this icon.
288 * Gets the uri used to create this icon.
341 Icon icon;
344 // When type is unknown we are just wrapping an icon.
347 icon = Icon.createWithBitmap((Bitmap) mObj1);
351 icon
664 createFromIcon(@onNull Icon icon) argument
679 getType(@onNull Icon icon) argument
707 getResPackage(@onNull Icon icon) argument
735 getResId(@onNull Icon icon) argument
763 getUri(@onNull Icon icon) argument
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DCachingIconView.java53 public void setImageIcon(@Nullable Icon icon) { argument
54 if (!testAndSetCache(icon)) {
57 super.setImageIcon(icon);
63 public Runnable setImageIconAsync(@Nullable Icon icon) { argument
65 return super.setImageIconAsync(icon);
121 * @return true if the currently set image is the same as {@param icon}
123 private synchronized boolean testAndSetCache(Icon icon) { argument
124 if (icon != null && icon.getType() == Icon.TYPE_RESOURCE) {
125 String iconPackage = normalizeIconPackage(icon);
161 normalizeIconPackage(Icon icon) argument
[all...]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
H A DIconLoader.java83 * Returns the cached task icon if the task key is not expired, updating the cache if it is.
87 // Return the cached activity icon if it exists
88 Drawable icon = mIconCache.getAndInvalidateIfModified(taskKey);
89 if (icon != null) {
90 return icon;
94 icon = createNewIconForTask(taskKey, td, false /* returnDefault */);
95 if (icon != null) {
96 mIconCache.put(taskKey, icon);
97 return icon;
101 // We couldn't load any icon
146 createDrawableFromBitmap(Bitmap icon, int userId, ActivityManager.TaskDescription desc) argument
152 createBadgedDrawable(Drawable icon, int userId, ActivityManager.TaskDescription desc) argument
183 createBadgedDrawable(Drawable icon, int userId, ActivityManager.TaskDescription desc) argument
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DAppIconDragShadowBuilder.java26 /** Creates a scaled-up version of an app icon for dragging. */
32 public AppIconDragShadowBuilder(ImageView icon) { argument
33 mDrawable = icon.getDrawable();
37 mIconSize = icon.getHeight() * ICON_SCALE;
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DSelectablePreference.java36 public void setIcon(Drawable icon) { argument
37 super.setIcon(new ScalingDrawableWrapper(icon,
38 mSize / (float) icon.getIntrinsicWidth()));
/frameworks/base/core/java/android/printservice/
H A DCustomPrinterIconCallback.java37 * Create a callback class to be used once a icon is loaded
39 * @param printerId The printer the icon should be loaded for
48 * Provide a new icon for a printer. Can be called more than once to update the icon.
50 * @param icon The new icon for the printer or null to unset the current icon
51 * @return true iff the icon could be updated
53 public boolean onCustomPrinterIconLoaded(@Nullable Icon icon) { argument
55 mObserver.onCustomPrinterIconLoaded(mPrinterId, icon);
[all...]
/frameworks/base/core/java/android/view/
H A DSubMenu.java54 * Sets the submenu header's icon to the icon given in <var>iconRes</var>
57 * @param iconRes The resource identifier used for the icon.
63 * Sets the submenu header's icon to the icon given in <var>icon</var>
66 * @param icon The {@link Drawable} used for the icon.
69 public SubMenu setHeaderIcon(Drawable icon); argument
73 * <var>view</var>. This replaces the header title and icon (an
102 setIcon(Drawable icon) argument
[all...]
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/widget/
H A DCustomErrorEditText.java40 public void setError(CharSequence error, Drawable icon) { argument
41 setCompoundDrawables(null, null, icon, null);
/frameworks/base/services/core/java/com/android/server/policy/
H A DIconUtilities.java71 public Bitmap createIconBitmap(Drawable icon) { argument
75 if (icon instanceof PaintDrawable) {
76 PaintDrawable painter = (PaintDrawable) icon;
79 } else if (icon instanceof BitmapDrawable) {
81 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon;
87 int sourceWidth = icon.getIntrinsicWidth();
88 int sourceHeight = icon.getIntrinsicHeight();
119 mOldBounds.set(icon.getBounds());
120 icon.setBounds(left, top, left+width, top+height);
121 icon
[all...]
/frameworks/layoutlib/bridge/src/android/view/
H A DPointerIcon_Delegate.java27 /*package*/ static void loadResource(PointerIcon icon, Context context, Resources resources, argument
31 // icon.

Completed in 557 milliseconds

1234567891011>>