FileDocCategorySizeDatePackage
StatusBarIcon.javaAPI DocAndroid 5.1 API3354Thu Mar 12 22:22:10 GMT 2015com.android.internal.statusbar

StatusBarIcon

public class StatusBarIcon extends Object implements android.os.Parcelable

Fields Summary
public String
iconPackage
public android.os.UserHandle
user
public int
iconId
public int
iconLevel
public boolean
visible
public int
number
public CharSequence
contentDescription
public static final Parcelable.Creator
CREATOR
Parcelable.Creator that instantiates StatusBarIcon objects
Constructors Summary
public StatusBarIcon(String iconPackage, android.os.UserHandle user, int iconId, int iconLevel, int number, CharSequence contentDescription)


              
              
        this.iconPackage = iconPackage;
        this.user = user;
        this.iconId = iconId;
        this.iconLevel = iconLevel;
        this.number = number;
        this.contentDescription = contentDescription;
    
public StatusBarIcon(android.os.Parcel in)
Unflatten the StatusBarIcon from a parcel.

        readFromParcel(in);
    
Methods Summary
public com.android.internal.statusbar.StatusBarIconclone()

        StatusBarIcon that = new StatusBarIcon(this.iconPackage, this.user, this.iconId,
                this.iconLevel, this.number, this.contentDescription);
        that.visible = this.visible;
        return that;
    
public intdescribeContents()

        return 0;
    
public voidreadFromParcel(android.os.Parcel in)

        this.iconPackage = in.readString();
        this.user = (UserHandle) in.readParcelable(null);
        this.iconId = in.readInt();
        this.iconLevel = in.readInt();
        this.visible = in.readInt() != 0;
        this.number = in.readInt();
        this.contentDescription = in.readCharSequence();
    
public java.lang.StringtoString()

        return "StatusBarIcon(pkg=" + this.iconPackage + "user=" + user.getIdentifier()
                + " id=0x" + Integer.toHexString(this.iconId)
                + " level=" + this.iconLevel + " visible=" + visible
                + " num=" + this.number + " )";
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeString(this.iconPackage);
        out.writeParcelable(this.user, 0);
        out.writeInt(this.iconId);
        out.writeInt(this.iconLevel);
        out.writeInt(this.visible ? 1 : 0);
        out.writeInt(this.number);
        out.writeCharSequence(this.contentDescription);