Searched refs:icon (Results 51 - 75 of 128) sorted by relevance

123456

/frameworks/base/policy/src/com/android/internal/policy/impl/
H A DGlobalActions.java360 ImageView icon = (ImageView) v.findViewById(R.id.icon);
365 icon.setImageDrawable(context.getResources().getDrawable(mIconResId));
373 * A toggle action knows whether it is on or off, and displays an icon
405 * @param enabledIconResId The icon for when this action is on.
406 * @param disabledIconResid The icon for when this action is off.
438 ImageView icon = (ImageView) v.findViewById(R.id.icon);
449 if (icon != null) {
450 icon
[all...]
/frameworks/base/services/input/
H A DPointerController.h174 void setPointerIcon(const SpriteIcon& icon);
199 void updateSprite(const SpriteIcon* icon, float x, float y);
/frameworks/base/core/java/android/view/
H A DMenuItem.java57 * it also has an icon specified.
197 * Change the icon associated with this item. This icon will not always be
201 * @param icon The new icon (as a Drawable) to be displayed.
204 public MenuItem setIcon(Drawable icon); argument
207 * Change the icon associated with this item. This icon will not always be
211 * This method will set the resource ID of the icon which will be used to
214 * @param iconRes The new icon (a
[all...]
/frameworks/base/tests/DumpRenderTree2/src/com/android/dumprendertree2/ui/
H A DDirListActivity.java154 * A custom adapter that sets the proper icon and label in the list view.
175 ImageView icon = (ImageView)row.findViewById(R.id.icon);
177 icon.setImageResource(R.drawable.folder);
179 icon.setImageResource(R.drawable.runtest);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DListActivity.java121 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
H A DTransparentListActivity.java115 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
H A DViewLayersActivity2.java62 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
H A DViewLayersActivity4.java66 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
H A DViewLayersActivity5.java72 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
H A DViewLayersActivity6.java82 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
/frameworks/ex/chips/src/com/android/ex/chips/
H A DSingleRecipientArrayAdapter.java56 ImageView imageView = (ImageView) view.findViewById(android.R.id.icon);
/frameworks/base/core/java/com/android/internal/view/menu/
H A DActionMenuItemView.java92 setTitle(itemData.getTitleForItemView(this)); // Title only takes effect if there is no icon
145 public void setIcon(Drawable icon) { argument
146 mImageButton.setImageDrawable(icon);
147 if (icon != null) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DStatusBar.java89 // Set up the initial icon state
93 StatusBarIcon icon = iconList.getIcon(i);
94 if (icon != null) {
95 addIcon(iconList.getSlot(i), i, viewIndex, icon);
/frameworks/base/core/java/android/widget/
H A DTabHost.java414 * 2) set a label and an icon
441 * Specify a label and icon as the tab indicator.
443 public TabSpec setIndicator(CharSequence label, Drawable icon) { argument
444 mIndicatorStrategy = new LabelAndIconIndicatorStrategy(label, icon);
549 * How we create a tab indicator that has a label and an icon
556 private LabelAndIconIndicatorStrategy(CharSequence label, Drawable icon) { argument
558 mIcon = icon;
570 final ImageView iconView = (ImageView) tabIndicator.findViewById(R.id.icon);
572 // when icon is gone by default, we're in exclusive mode
H A DAppSecurityPermissions.java156 Drawable icon = context.getResources().getDrawable(dangerous
159 description, dangerous, icon);
326 CharSequence grpName, CharSequence permList, boolean dangerous, Drawable icon) {
333 imgView.setImageDrawable(icon);
325 getPermissionItemView(Context context, LayoutInflater inflater, CharSequence grpName, CharSequence permList, boolean dangerous, Drawable icon) argument
/frameworks/base/core/java/android/app/
H A DSearchDialog.java435 Drawable icon;
438 icon = pm.getApplicationIcon(info.applicationInfo);
440 Log.d(LOG_TAG, "Using app-specific icon");
442 icon = pm.getDefaultActivityIcon();
443 Log.w(LOG_TAG, mLaunchComponent + " not found, using generic app icon");
445 mAppIcon.setImageDrawable(icon);
456 Drawable icon = null;
461 icon = mActivityContext.getResources().getDrawable(mSearchable.getIconId());
463 if (DBG) Log.d(LOG_TAG, "Using badge icon: " + mSearchable.getIconId());
470 mBadgeLabel.setCompoundDrawablesWithIntrinsicBounds(icon, nul
[all...]
H A DAlertDialog.java306 * Set resId to 0 if you don't want an icon.
307 * @param resId the resourceId of the drawable to use as the icon or 0
308 * if you don't want an icon.
314 public void setIcon(Drawable icon) { argument
315 mAlert.setIcon(icon);
319 * Set an icon as supplied by a theme attribute. e.g. android.R.attr.alertDialogIcon
415 * more customization. Using this will replace the title and icon set
462 public Builder setIcon(Drawable icon) { argument
463 P.mIcon = icon;
468 * Set an icon a
[all...]
H A DActionBar.java40 * <p>By default, the action bar shows the application icon on
61 * Standard navigation mode. Consists of either a logo or icon
82 * Use logo instead of icon if available. This flag will cause appropriate
83 * navigation modes to use a wider logo in place of the standard icon.
92 * navigation elements. This includes logo and icon.
138 * Custom navigation views appear between the application icon and
152 * <p>Custom navigation views appear between the application icon and
172 * <p>Custom navigation views appear between the application icon and
188 * Set the icon to display in the 'home' section of the action bar.
189 * The action bar will use an icon specifie
215 setIcon(Drawable icon) argument
743 setIcon(Drawable icon) argument
[all...]
/frameworks/base/services/java/com/android/server/connectivity/
H A DVpn.java193 // Load the icon and convert it into a bitmap.
194 Drawable icon = app.loadIcon(pm);
196 if (icon.getIntrinsicWidth() > 0 && icon.getIntrinsicHeight() > 0) {
201 icon.setBounds(0, 0, width, height);
204 icon.draw(c);
308 private void showNotification(VpnConfig config, String label, Bitmap icon) { argument
321 .setLargeIcon(icon)
/frameworks/base/core/java/android/preference/
H A DPreference.java521 ImageView imageView = (ImageView) view.findViewById(com.android.internal.R.id.icon);
635 * Sets the icon for this Preference with a Drawable.
636 * This icon will be placed into the ID
637 * {@link android.R.id#icon} within the View created by
640 * @param icon The optional icon for this Preference.
642 public void setIcon(Drawable icon) { argument
643 if ((icon == null && mIcon != null) || (icon != null && mIcon != icon)) {
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
H A DRecentTasksLoader.java69 // get the icon size we want -- on tablets, we use bigger icons
80 // We'll need to use a denser icon, or some sort of a mipmap
113 // Create an TaskDescription, returning null if the title or icon is null, or if it's the
133 Drawable icon = getFullResIcon(resolveInfo, pm);
135 if (title != null && title.length() > 0 && icon != null) {
143 item.setIcon(icon);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/tablet/
H A DTabletTicker.java289 final Drawable icon = StatusBarIconView.getIcon(mContext,
290 new StatusBarIcon(notification.pkg, n.icon, n.iconLevel, 0, n.tickerText));
292 iv.setImageDrawable(icon);
/frameworks/base/core/java/android/webkit/
H A DWebChromeClient.java45 * @param icon A Bitmap containing the favicon for the current page.
47 public void onReceivedIcon(WebView view, Bitmap icon) {} argument
50 * Notify the host application of the url for an apple-touch-icon.
52 * @param url The icon url.
53 * @param precomposed True if the url is for a precomposed touch icon.
/frameworks/base/packages/VpnDialogs/src/com/android/vpndialogs/
H A DConfirmDialog.java65 ((ImageView) view.findViewById(R.id.icon)).setImageDrawable(app.loadIcon(pm));
/frameworks/base/core/java/com/android/internal/app/
H A DResolverActivity.java294 ri.icon = li.getIconResource();
426 ImageView icon = (ImageView)view.findViewById(R.id.icon);
437 icon.setImageDrawable(info.displayIcon);

Completed in 925 milliseconds

123456