Searched defs:icon (Results 1 - 25 of 45) sorted by relevance

12

/frameworks/base/core/java/android/view/
H A DContextMenu.java52 * Sets the context menu header's icon to the icon given in <var>iconRes</var>
55 * @param iconRes The resource identifier used for the icon.
61 * Sets the context menu header's icon to the icon given in <var>icon</var>
64 * @param icon The {@link Drawable} used for the icon.
67 public ContextMenu setHeaderIcon(Drawable icon); argument
71 * <var>view</var>. This replaces the header title and icon (an
[all...]
H A DSubMenu.java46 * Sets the submenu header's icon to the icon given in <var>iconRes</var>
49 * @param iconRes The resource identifier used for the icon.
55 * Sets the submenu header's icon to the icon given in <var>icon</var>
58 * @param icon The {@link Drawable} used for the icon.
61 public SubMenu setHeaderIcon(Drawable icon); argument
65 * <var>view</var>. This replaces the header title and icon (an
94 setIcon(Drawable icon) argument
[all...]
H A DMenuItem.java136 * Change the icon associated with this item. This icon will not always be
140 * @param icon The new icon (as a Drawable) to be displayed.
143 public MenuItem setIcon(Drawable icon); argument
146 * Change the icon associated with this item. This icon will not always be
150 * This method will set the resource ID of the icon which will be used to
153 * @param iconRes The new icon (as a resource ID) to be displayed.
159 * Returns the icon fo
[all...]
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetProviderInfo.java94 * The icon to display for this AppWidget in the AppWidget picker. If not supplied in the
95 * xml, the application icon will be used.
97 * <p>This field corresponds to the <code>android:icon</code> attribute in
100 public int icon; field in class:AppWidgetProviderInfo
132 this.icon = in.readInt();
154 out.writeInt(this.icon);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DContextMenuBuilder.java46 public ContextMenu setHeaderIcon(Drawable icon) { argument
47 return (ContextMenu) super.setHeaderIconInt(icon);
H A DListMenuItemView.java186 public void setIcon(Drawable icon) { argument
192 if (mIconView == null && icon == null) {
200 if (icon != null) {
201 mIconView.setImageDrawable(icon);
H A DMenuView.java111 * Set the icon of this item view.
112 * @param icon The icon of this item. null to hide the icon.
114 public void setIcon(Drawable icon); argument
127 * Whether this item view shows an icon.
129 * @return Whether this item view shows an icon.
H A DSubMenuBuilder.java84 public SubMenu setIcon(Drawable icon) { argument
85 mItem.setIcon(icon);
94 public SubMenu setHeaderIcon(Drawable icon) { argument
95 return (SubMenu) super.setHeaderIconInt(icon);
H A DIconMenuItemView.java90 * Initializes with the provided title and icon
92 * @param icon The icon of this item
94 void initialize(CharSequence title, Drawable icon) { argument
103 setIcon(icon);
170 public void setIcon(Drawable icon) { argument
171 mIcon = icon;
173 if (icon != null) {
175 /* Set the bounds of the icon since setCompoundDrawables needs it. */
176 icon
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/
H A DItem.java34 public Bitmap icon; field in class:Item
39 this.icon = null;
45 icon = in.readParcelable(null);
55 dest.writeParcelable(icon, flags);
H A DInput.java30 public Bitmap icon; field in class:Input
43 icon = null;
57 icon = in.readParcelable(null);
75 dest.writeParcelable(icon, 0);
H A DTextMessage.java26 public Bitmap icon = null; field in class:TextMessage
39 icon = in.readParcelable(null);
54 dest.writeParcelable(icon, 0);
H A DCommandParams.java36 boolean setIcon(Bitmap icon) { return true; } argument
47 boolean setIcon(Bitmap icon) { argument
48 if (icon != null && textMsg != null) {
49 textMsg.icon = icon;
69 boolean setIcon(Bitmap icon) { argument
70 if (icon != null && confirmMsg != null) {
71 confirmMsg.icon = icon;
89 boolean setIcon(Bitmap icon) { argument
109 setIcon(Bitmap icon) argument
134 setIcon(Bitmap icon) argument
161 setIcon(Bitmap icon) argument
[all...]
/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 DPackageItemInfo.java33 * a label, icon, and meta-data. This class is not intended
65 * component's icon. From the "icon" attribute or, if not set, 0.
67 public int icon; field in class:PackageItemInfo
86 icon = orig.icon;
118 * Retrieve the current graphical icon associated with this item. This
119 * will call back on the given PackageManager to load the icon from
122 * @param pm A PackageManager from which the icon can be loaded; usually
125 * @return Returns a Drawable containing the item's icon
[all...]
H A DResolveInfo.java106 * match's icon. From the "icon" attribute or, if not set, 0.
108 public int icon; field in class:ResolveInfo
111 * Optional -- if non-null, the {@link #labelRes} and {@link #icon}
155 * Retrieve the current graphical icon associated with this resolution. This
156 * will call back on the given PackageManager to load the icon from
159 * @param pm A PackageManager from which the icon can be loaded; usually
162 * @return Returns a Drawable containing the resolution's icon. If the
163 * item does not have an icon, the default activity icon i
[all...]
/frameworks/policies/base/mid/com/android/internal/policy/impl/
H A DRecentApplicationsDialog.java204 final Drawable icon = activityInfo.loadIcon(pm);
206 if (title != null && title.length() > 0 && icon != null) {
208 setButtonAppearance(b, title, icon);
228 * Adjust appearance of each icon-button
230 private void setButtonAppearance(View theButton, final String theTitle, final Drawable icon) { argument
233 if (icon != null) {
234 icon.setBounds(0, 0, mIconSize, mIconSize);
236 tv.setCompoundDrawables(null, icon, null, null);
/frameworks/policies/base/phone/com/android/internal/policy/impl/
H A DIconUtilities.java108 private Bitmap createIconBitmap(Drawable icon) { argument
112 if (icon instanceof PaintDrawable) {
113 PaintDrawable painter = (PaintDrawable) icon;
116 } else if (icon instanceof BitmapDrawable) {
118 BitmapDrawable bitmapDrawable = (BitmapDrawable) icon;
124 int sourceWidth = icon.getIntrinsicWidth();
125 int sourceHeight = icon.getIntrinsicHeight();
157 // draw a big box for the icon for debugging
165 mOldBounds.set(icon.getBounds());
166 icon
[all...]
/frameworks/base/core/java/android/app/
H A DNotification.java81 * The resource id of a drawable to use as the icon in the status bar.
83 public int icon; field in class:Notification
88 * be superimposed over the icon in the status bar. If the number is 0 or negative, it
123 * If the icon in the status bar is to have more than one level, you can set this. Otherwise,
281 public Notification(Context context, int icon, CharSequence tickerText, long when, argument
285 this.icon = icon;
293 * have a status bar icon without the standard expanded view.
295 * @param icon The resource id of the icon t
301 Notification(int icon, CharSequence tickerText, long when) argument
[all...]
H A DLauncherActivity.java66 public Drawable icon; field in class:LauncherActivity.ListItem
81 icon = resizer.createIconThumbnail(resolveInfo.loadIcon(pm));
161 if (item.icon == null) {
162 item.icon = mIconResizer.createIconThumbnail(
165 text.setCompoundDrawablesWithIntrinsicBounds(item.icon, null, null, null);
241 * Utility class to resize icons to match default icon size.
267 * @param icon The icon to get a thumbnail of.
269 * @return A thumbnail for the specified icon or the icon itsel
272 createIconThumbnail(Drawable icon) argument
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebHistoryItem.java42 // The apple-touch-icon url for use when adding the site to the home screen
134 * Return the touch icon url.
165 * @param icon A Bitmap containing the favicon for this history item.
169 /*package*/ void setFavicon(Bitmap icon) { argument
170 mFavicon = icon;
174 * Set the touch icon url.
H A DWebChromeClient.java44 * @param icon A Bitmap containing the favicon for the current page.
46 public void onReceivedIcon(WebView view, Bitmap icon) {} argument
49 * Notify the host application of the url for an apple-touch-icon.
51 * @param url The icon url.
52 * @param precomposed True if the url is for a precomposed touch icon.
H A DWebIconDatabase.java31 * Functions for manipulating the icon database used by WebView.
55 // Message for dispatching icon request results
66 IconResult(String url, Bitmap icon, IconListener l) { argument
68 mIcon = icon;
173 Bitmap icon = nativeIconForPageUrl(url);
174 if (icon != null) {
176 new IconResult(url, icon, listener)));
186 * Called when the icon has been retrieved from the database and the
189 * @param icon The favicon for the given url.
191 public void onReceivedIcon(String url, Bitmap icon); argument
[all...]
/frameworks/base/services/java/com/android/server/status/
H A DStorageNotification.java275 private synchronized void setUsbStorageNotification(int titleId, int messageId, int icon, argument
296 mUsbStorageNotification.icon = icon;
317 final int notificationId = mUsbStorageNotification.icon;
337 private synchronized void setMediaStorageNotification(int titleId, int messageId, int icon, boolean visible, argument
356 final int notificationId = mMediaStorageNotification.icon;
384 mMediaStorageNotification.icon = icon;
388 final int notificationId = mMediaStorageNotification.icon;
H A DTicker.java44 Drawable icon; field in class:Ticker.Segment
119 Segment(NotificationData n, Drawable icon, CharSequence text) { argument
121 this.icon = icon;
161 void addEntry(NotificationData n, Drawable icon, CharSequence text) { argument
164 Segment newSegment = new Segment(n, icon, text);
186 mIconSwitcher.setImageDrawable(seg.icon);
217 // this makes the icon slide in for the first one for a given
219 // same icon in a row
220 mIconSwitcher.setImageDrawable(seg.icon);
[all...]

Completed in 252 milliseconds

12