Searched refs:icon (Results 1 - 25 of 402) 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.
64 * @param userId the user id or {@code UserHandle.USER_NULL} for a non-user specific icon
65 * @param light whether we want a light icon (suitable for a dark background)
70 // Return colored icon instea
[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
164 setIcon(Bitmap icon) argument
192 setIcon(Bitmap icon) argument
219 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/tests/VectorDrawableTest/src/com/android/test/dynamic/
H A DVectorPathChecking.java20 icon = new int[]{
/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/SystemUI/src/com/android/systemui/statusbar/phone/
H A DStatusBarIconControllerImpl.java83 StatusBarIcon icon = mIcons.get(i);
84 if (icon != null) {
87 group.onIconAdded(getViewIndex(getSlotIndex(slot)), slot, blocked, icon);
120 private void addSystemIcon(int index, StatusBarIcon icon) { argument
125 mIconGroups.forEach(l -> l.onIconAdded(viewIndex, slot, blocked, icon));
131 StatusBarIcon icon = getIcon(index);
132 if (icon == null) {
133 icon = new StatusBarIcon(UserHandle.SYSTEM, mContext.getPackageName(),
135 setIcon(slot, icon);
137 icon
152 setIcon(String slot, StatusBarIcon icon) argument
183 setIcon(int index, StatusBarIcon icon) argument
197 handleSet(int index, StatusBarIcon icon) argument
[all...]
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/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...]
H A DLauncherActivityInfo.java30 * profile associated with this user. It can be used to query the label, icon
31 * and badged icon for the activity.
95 * Returns the icon for this activity, without any badging for the profile.
96 * @param density The preferred density of the icon, zero for default density. Use
105 Drawable icon = null;
106 // Get the preferred density icon from the app's resources
111 icon = resources.getDrawableForDensity(iconRes, density);
115 // Get the default density icon
116 if (icon == null) {
117 icon
[all...]
/frameworks/base/tools/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/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
H A DNetworkController.java57 default void setEthernetIndicators(IconState icon) {} argument
59 default void setIsAirplaneMode(IconState icon) {} argument
71 public final int icon; field in class:NetworkController.IconState
82 public IconState(boolean visible, int icon, int iconOverlay, String contentDescription) { argument
84 this.icon = icon;
89 public IconState(boolean visible, int icon, String contentDescription) { argument
90 this(visible, icon, -1 /* iconOverlay */, contentDescription);
93 public IconState(boolean visible, int icon, int contentDescription, argument
95 this(visible, icon, contex
[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/core/java/android/util/
H A DIconDrawableFactory.java66 Drawable icon = mPm.loadUnbadgedItemIcon(itemInfo, appInfo);
68 return icon;
71 // Before badging, add shadow to adaptive icon if needed.
72 icon = mLauncherIcons.wrapIconDrawableWithShadow(icon);
76 icon = mLauncherIcons.getBadgedDrawable(icon,
81 icon = mLauncherIcons.getBadgedDrawable(icon,
85 return icon;
[all...]
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/template/
H A DIconMixin.java29 * A {@link Mixin} for setting an icon on the template layout.
47 final Drawable icon = a.getDrawable(R.styleable.SuwIconMixin_android_icon);
48 if (icon != null) {
49 setIcon(icon);
56 * Sets the icon on this layout. The icon can also be set in XML using {@code android:icon}.
58 * @param icon A drawable icon.
60 public void setIcon(Drawable icon) { argument
[all...]
/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/tools/layoutlib/bridge/src/android/view/
H A DPointerIcon_Delegate.java27 /*package*/ static void loadResource(PointerIcon icon, Context context, Resources resources, argument
31 // icon.
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DSubMenuWrapperICS.java66 public SubMenu setHeaderIcon(Drawable icon) { argument
67 getWrappedObject().setHeaderIcon(icon);
89 public SubMenu setIcon(Drawable icon) { argument
90 getWrappedObject().setIcon(icon);
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DCustomPrinterIconCache.java50 * Create a new icon cache.
60 * Return the file name to be used for the icon of a printer
64 * @return The file to be used for the icon of the printer
77 Log.e(LOG_TAG, "Could not compute custom printer icon file name", e);
85 * Get the {@link Icon} to be used as a custom icon for the printer. If not available request
86 * the icon to be loaded.
88 * @param printerId the printer the icon belongs to
89 * @return the {@link Icon} if already available or null if icon is not loaded yet
92 Icon icon;
97 icon
140 onCustomPrinterIconLoaded(@onNull PrinterId printerId, @Nullable Icon icon) argument
[all...]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
H A DQSIconViewImplTest.java59 // No current icon, only the static drawable should be used.
60 s.icon = mock(Icon.class);
63 verify(s.icon, never()).getDrawable(any());
64 verify(s.icon).getInvisibleDrawable(any());
66 // Has icon, should use the standard (animated) form.
67 s.icon = mock(Icon.class);
70 verify(s.icon).getDrawable(any());
71 verify(s.icon, never()).getInvisibleDrawable(any());

Completed in 2353 milliseconds

1234567891011>>