Lines Matching refs:icon

168      * The resource id of a drawable to use as the icon in the status bar.
174 public int icon;
177 * If the icon in the status bar is to have more than one level, you can set this. Otherwise,
191 * superimposed over the icon in the status bar. Starting with
527 * {@link #icon} image (stenciled in white) atop a field of this color. Alpha components are
546 * done on Android: The notification's {@link #icon} and {@link #tickerText} (if available) are
555 * Finally, a notification can be made {@link #VISIBILITY_SECRET}, which will suppress its icon
748 * {@link #extras} key: this is the resource ID of the notification's main small icon, as
751 public static final String EXTRA_SMALL_ICON = "android.icon";
754 * {@link #extras} key: this is a bitmap to be used instead of the small icon when showing the
899 * It must include an icon, a label, and a {@link PendingIntent} to be fired when the action is
912 * Small icon representing the action.
917 public int icon;
934 icon = mIcon.getResId();
949 public Action(int icon, CharSequence title, PendingIntent intent) {
950 this(Icon.createWithResource("", icon), title, intent, new Bundle(), null);
953 private Action(Icon icon, CharSequence title, PendingIntent intent, Bundle extras,
955 this.mIcon = icon;
963 * Return an icon representing the action.
966 if (mIcon == null && icon != 0) {
967 // you snuck an icon in here without using the builder; let's try to keep it
968 mIcon = Icon.createWithResource("", icon);
1000 * @param icon icon to show for this action
1005 public Builder(int icon, CharSequence title, PendingIntent intent) {
1006 this(Icon.createWithResource("", icon), title, intent, new Bundle(), null);
1011 * @param icon icon to show for this action
1015 public Builder(Icon icon, CharSequence title, PendingIntent intent) {
1016 this(icon, title, intent, new Bundle(), null);
1029 private Builder(Icon icon, CharSequence title, PendingIntent intent, Bundle extras,
1031 mIcon = icon;
1374 public Notification(Context context, int icon, CharSequence tickerText, long when,
1379 .setSmallIcon(icon)
1389 * have a status bar icon without the standard expanded view.
1391 * @param icon The resource id of the icon to put in the status bar.
1400 public Notification(int icon, CharSequence tickerText, long when)
1402 this.icon = icon;
1418 icon = mSmallIcon.getResId();
1644 if (mSmallIcon == null && icon != 0) {
1645 // you snuck an icon in here without using the builder; let's try to keep it
1646 mSmallIcon = Icon.createWithResource("", icon);
1782 * <p>Uses the {@link #icon} and {@link #when} fields to set the icon and time fields
1805 builder.setSmallIcon(this.icon);
1936 * The small icon representing this notification in the status bar and content view.
1938 * @return the small icon representing this notification.
1951 public void setSmallIcon(Icon icon) {
1952 mSmallIcon = icon;
1956 * The large icon shown in this notification's content view.
1968 // Would like to check for icon!=0 here, too, but NotificationManagerService accepts that
2245 * Set the small icon resource, which will be used to represent the notification in the
2249 * The platform template for the expanded view will draw this icon in the left, unless a
2250 * {@link #setLargeIcon(Bitmap) large icon} has also been specified, in which case the small
2251 * icon will be moved to the right-hand side.
2254 * @param icon
2256 * @see Notification#icon
2258 public Builder setSmallIcon(@DrawableRes int icon) {
2259 return setSmallIcon(icon != 0
2260 ? Icon.createWithResource(mContext, icon)
2266 * level parameter for when the icon is a {@link android.graphics.drawable.LevelListDrawable
2269 * @param icon A resource ID in the application's package of the drawable to use.
2270 * @param level The level to use for the icon.
2272 * @see Notification#icon
2275 public Builder setSmallIcon(@DrawableRes int icon, int level) {
2277 return setSmallIcon(icon);
2281 * Set the small icon, which will be used to represent the notification in the
2283 * {@link #setLargeIcon(Bitmap) large icon}).
2285 * @param icon An Icon object to use.
2286 * @see Notification#icon
2288 public Builder setSmallIcon(Icon icon) {
2289 mSmallIcon = icon;
2436 * Add a large icon to the notification content view.
2439 * in place of the {@link #setSmallIcon(Icon) small icon} (which will be placed in a small
2440 * badge atop the large icon).
2447 * Add a large icon to the notification content view.
2450 * in place of the {@link #setSmallIcon(Icon) small icon} (which will be placed in a small
2451 * badge atop the large icon).
2453 public Builder setLargeIcon(Icon icon) {
2454 mLargeIcon = icon;
2762 * Every action must have an icon (32dp square and matching the
2771 * @param icon Resource ID of a drawable that represents the action.
2778 public Builder addAction(int icon, CharSequence title, PendingIntent intent) {
2779 mActions.add(new Action(icon, safeCharSequence(title), intent));
2787 * Every action must have an icon (32dp square and matching the
2930 contentView.setViewPadding(R.id.icon, 0, 0, 0, 0);
2931 contentView.setImageViewResource(R.id.icon, 0);
2932 contentView.setInt(R.id.icon, "setBackgroundResource", 0);
2936 contentView.setImageViewResource(R.id.icon, 0);
2968 contentView.setImageViewIcon(R.id.icon, mLargeIcon);
2973 } else { // small icon at left
2974 contentView.setImageViewIcon(R.id.icon, mSmallIcon);
2975 contentView.setViewVisibility(R.id.icon, View.VISIBLE);
3217 contentView.setDrawableParameters(R.id.icon, false, -1,
3246 contentView.setInt(R.id.icon, "setBackgroundResource",
3250 R.id.icon,
3259 contentView.setViewPadding(R.id.icon, padding, padding, padding, padding);
3263 contentView.setInt(R.id.icon, "setBackgroundResource", 0);
3316 n.icon = mSmallIcon.getResId();
3951 * Override the large icon when the big notification is shown.
3958 * Override the large icon when the big notification is shown.
3960 public BigPictureStyle bigLargeIcon(Icon icon) {
3962 mBigLargeIcon = icon;
4323 * shown as icon-only pushbuttons, suitable for transport controls. The Bitmap given to
4996 * Set an icon that goes with the content of this notification.
4998 public WearableExtender setContentIcon(int icon) {
4999 mContentIcon = icon;
5004 * Get an icon that goes with the content of this notification.
5011 * Set the gravity that the content icon should have within the notification display.
5022 * Get the gravity that the content icon should have within the notification display.
5179 * Set a hint that this notification's icon should not be displayed.
5180 * @param hintHideIcon {@code true} to hide the icon, {@code false} otherwise.
5189 * Get a hint that this notification's icon should not be displayed.
5190 * @return {@code true} if this icon should not be displayed, false otherwise.
5381 * Sets the large icon of the car notification.
5383 * If no large icon is set in the extender, Android Auto will display the icon
5386 * @param largeIcon The large icon to use in the car notification.
5395 * Gets the large icon used in this car notification, or null if no icon has been set.
5397 * @return The large icon for the car notification.