/frameworks/base/core/java/android/view/ |
H A D | MenuItem.java | 60 * 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 D | CellularTile.java | 105 state.icon = ResourceIcon.get(iconId); 177 mInfo.mobileSignalIconId = qsIcon.icon; 205 public void setIsAirplaneMode(IconState icon) { argument 206 mInfo.airplaneModeEnabled = icon.visible;
|
H A D | CastTile.java | 113 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 D | NotificationOverflowIconsView.java | 62 v.set(notification.icon.getStatusBarIcon());
|
H A D | NotificationData.java | 49 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 D | PhoneAccount.java | 139 * 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 D | ListActivity.java | 117 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
|
H A D | TransparentListActivity.java | 115 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
|
H A D | ViewLayersActivity2.java | 62 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
|
H A D | ViewLayersActivity4.java | 66 v.setCompoundDrawablesWithIntrinsicBounds(r.getDrawable(R.drawable.icon),
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/ |
H A D | FrameworkActionBarWrapper.java | 108 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 D | NotificationCompatWearableExtenderTest.java | 200 assertEquals(n1.icon, n2.icon); 215 assertEquals(real.icon, compat.icon);
|
/frameworks/support/v4/ics/android/support/v4/app/ |
H A D | NotificationCompatIceCreamSandwich.java | 37 .setSmallIcon(n.icon, n.iconLevel)
|
/frameworks/base/core/java/android/widget/ |
H A D | TabHost.java | 456 * 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 D | MenuItemImpl.java | 55 /** 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 D | MenuItemImpl.java | 59 /** 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 D | SearchDialog.java | 432 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 D | AlertDialog.java | 393 * 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 D | KeyguardAffordanceHelper.java | 213 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 D | StatusBarIconController.java | 164 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 D | ResolverActivity.java | 272 // 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 D | SystemServicesProxy.java | 145 // 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 D | GuidedActionsStylist.java | 168 * 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 D | SearchOrbView.java | 37 * <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 D | Preference.java | 496 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...] |