Searched refs:icon (Results 126 - 150 of 274) sorted by relevance

1234567891011

/frameworks/base/core/java/android/view/
H A DMenuItem.java60 * it also has an icon specified.
200 * Change the icon associated with this item. This icon will not always be
204 * @param icon The new icon (as a Drawable) to be displayed.
207 public MenuItem setIcon(Drawable icon); argument
210 * Change the icon associated with this item. This icon will not always be
214 * This method will set the resource ID of the icon which will be used to
217 * @param iconRes The new icon (a
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
H A DCellularTile.java105 state.icon = ResourceIcon.get(iconId);
177 mInfo.mobileSignalIconId = qsIcon.icon;
205 public void setIsAirplaneMode(IconState icon) { argument
206 mInfo.airplaneModeEnabled = icon.visible;
H A DCastTile.java113 state.icon = ResourceIcon.get(state.value ? R.drawable.ic_qs_cast_on
214 item.icon = R.drawable.ic_qs_cast_on;
234 item.icon = R.drawable.ic_qs_cast_off;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
H A DNotificationOverflowIconsView.java62 v.set(notification.icon.getStatusBarIcon());
H A DNotificationData.java49 public StatusBarIconView icon; field in class:NotificationData.Entry
60 this.icon = ic;
324 pw.println(" [" + i + "] key=" + e.key + " icon=" + e.icon);
/frameworks/base/telecomm/java/android/telecom/
H A DPhoneAccount.java139 * Indicating no icon tint is set.
241 * Sets the icon. See {@link PhoneAccount#getIcon}.
243 * @param icon The icon to set.
245 public Builder setIcon(Icon icon) { argument
246 mIcon = icon;
344 Icon icon,
354 mIcon = icon;
458 * The icon to represent this {@code PhoneAccount}.
460 * @return The icon
339 PhoneAccount( PhoneAccountHandle account, Uri address, Uri subscriptionAddress, int capabilities, Icon icon, int highlightColor, CharSequence label, CharSequence shortDescription, List<String> supportedUriSchemes, boolean isEnabled) argument
[all...]
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DListActivity.java117 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),
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
H A DFrameworkActionBarWrapper.java108 public void setIcon(String icon) { argument
285 public void setIcon(String icon) { argument
286 // Set the icon only if the action bar doesn't specify an icon.
287 if (!mActionBar.hasIcon() && icon != null) {
288 Drawable iconDrawable = getDrawable(icon, false);
/frameworks/support/tests/java/android/support/v4/app/
H A DNotificationCompatWearableExtenderTest.java200 assertEquals(n1.icon, n2.icon);
215 assertEquals(real.icon, compat.icon);
/frameworks/support/v4/ics/android/support/v4/app/
H A DNotificationCompatIceCreamSandwich.java37 .setSmallIcon(n.icon, n.iconLevel)
/frameworks/base/core/java/android/widget/
H A DTabHost.java456 * 2) set a label and an icon
483 * Specify a label and icon as the tab indicator.
485 public TabSpec setIndicator(CharSequence label, Drawable icon) { argument
486 mIndicatorStrategy = new LabelAndIconIndicatorStrategy(label, icon);
591 * How we create a tab indicator that has a label and an icon
598 private LabelAndIconIndicatorStrategy(CharSequence label, Drawable icon) { argument
600 mIcon = icon;
612 final ImageView iconView = (ImageView) tabIndicator.findViewById(R.id.icon);
614 // when icon is gone by default, we're in exclusive mode
/frameworks/base/core/java/com/android/internal/view/menu/
H A DMenuItemImpl.java55 /** The icon's drawable which is only created as needed */
58 * The icon's resource ID which is used to get the Drawable when it is
87 /** Used for the icon resource ID if this item does not have an icon */
388 Drawable icon = mMenu.getContext().getDrawable(mIconResId);
390 mIconDrawable = icon;
391 return icon;
397 public MenuItem setIcon(Drawable icon) { argument
399 mIconDrawable = icon;
/frameworks/support/v7/appcompat/src/android/support/v7/internal/view/menu/
H A DMenuItemImpl.java59 /** The icon's drawable which is only created as needed */
63 * The icon's resource ID which is used to get the Drawable when it is
92 /** Used for the icon resource ID if this item does not have an icon */
422 Drawable icon = TintManager.getDrawable(mMenu.getContext(), mIconResId);
424 mIconDrawable = icon;
425 return icon;
432 public MenuItem setIcon(Drawable icon) { argument
434 mIconDrawable = icon;
/frameworks/base/core/java/android/app/
H A DSearchDialog.java432 Drawable icon;
435 icon = pm.getApplicationIcon(info.applicationInfo);
437 Log.d(LOG_TAG, "Using app-specific icon");
439 icon = pm.getDefaultActivityIcon();
440 Log.w(LOG_TAG, mLaunchComponent + " not found, using generic app icon");
442 mAppIcon.setImageDrawable(icon);
453 Drawable icon = null;
458 icon = mActivityContext.getDrawable(mSearchable.getIconId());
460 if (DBG) Log.d(LOG_TAG, "Using badge icon: " + mSearchable.getIconId());
467 mBadgeLabel.setCompoundDrawablesWithIntrinsicBounds(icon, nul
[all...]
H A DAlertDialog.java393 * Set resId to 0 if you don't want an icon.
394 * @param resId the resourceId of the drawable to use as the icon or 0
395 * if you don't want an icon.
401 public void setIcon(Drawable icon) { argument
402 mAlert.setIcon(icon);
406 * Set an icon as supplied by a theme attribute. e.g. android.R.attr.alertDialogIcon
523 * needs more customization. Using this will replace the title and icon
581 public Builder setIcon(Drawable icon) { argument
582 P.mIcon = icon;
587 * Set an icon a
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
H A DKeyguardAffordanceHelper.java213 private boolean isOnIcon(View icon, float x, float y) { argument
214 float iconX = icon.getX() + icon.getWidth() / 2.0f;
215 float iconY = icon.getY() + icon.getHeight() / 2.0f;
464 private float getScale(float alpha, KeyguardAffordanceView icon) { argument
465 float scale = alpha / icon.getRestingAlpha() * 0.2f +
H A DStatusBarIconController.java164 public void addSystemIcon(String slot, int index, int viewIndex, StatusBarIcon icon) { argument
167 view.set(icon);
171 view.set(icon);
178 StatusBarIcon old, StatusBarIcon icon) {
180 view.set(icon);
182 view.set(icon);
210 toShow.add(ent.icon);
273 pw.println(" [" + i + "] icon=" + ic);
177 updateSystemIcon(String slot, int index, int viewIndex, StatusBarIcon old, StatusBarIcon icon) argument
/frameworks/base/core/java/com/android/internal/app/
H A DResolverActivity.java272 // Try to initialize the title icon if we have a view for it and a title to match
290 final ImageView iconView = (ImageView) findViewById(R.id.icon);
406 final ImageView icon = (ImageView) mProfileView.findViewById(R.id.icon);
409 new LoadIconIntoViewTask(dri, icon).execute();
411 icon.setImageDrawable(dri.getDisplayIcon());
482 if (ri.resolvePackageName != null && ri.icon != 0) {
483 dr = getIcon(mPm.getResourcesForApplication(ri.resolvePackageName), ri.icon);
972 if (mResolveInfo.activityInfo.icon == 0 || mResolveInfo.activityInfo.icon
1003 setDisplayIcon(Drawable icon) argument
1666 public ImageView icon; field in class:ResolverActivity.ViewHolder
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/misc/
H A DSystemServicesProxy.java145 // Create a dummy icon
477 * Returns the activity icon for the ActivityInfo for a user, badging if
488 Drawable icon = info.loadIcon(mPm);
489 return getBadgedIcon(icon, userId);
493 * Returns the given icon for a user, badging if necessary.
495 public Drawable getBadgedIcon(Drawable icon, int userId) { argument
497 icon = mPm.getUserBadgedIcon(icon, new UserHandle(userId));
499 return icon;
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DGuidedActionsStylist.java168 * Returns the icon view within this view holder's view.
527 Drawable icon = null;
530 icon = action.getIcon();
531 if (icon != null) {
533 iconView.setImageLevel(icon.getLevel());
534 iconView.setImageDrawable(icon);
540 return icon != null;
H A DSearchOrbView.java37 * <p>A widget that draws a search affordance, represented by a round background and an icon.</p>
39 * The background color and icon can be customized.
87 * @param iconColor A color used to tint the search orb icon.
108 * A color used to tint the search orb icon.
169 mIcon = (ImageView) mRootView.findViewById(R.id.icon);
256 * Sets the orb icon.
257 * @param icon the drawable to be used as the icon
259 public void setOrbIcon(Drawable icon) { argument
260 mIconDrawable = icon;
[all...]
/frameworks/support/v7/preference/src/android/support/v7/preference/
H A DPreference.java496 final ImageView imageView = (ImageView) holder.findViewById(android.R.id.icon);
604 * Sets the icon for this Preference with a Drawable.
605 * This icon will be placed into the ID
606 * {@link android.R.id#icon} within the View created by
609 * @param icon The optional icon for this Preference.
611 public void setIcon(Drawable icon) { argument
612 if ((icon == null && mIcon != null) || (icon != null && mIcon != icon)) {
[all...]

Completed in 504 milliseconds

1234567891011