StatusBarIconpublic 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 | CREATORParcelable.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.StatusBarIcon | clone()
StatusBarIcon that = new StatusBarIcon(this.iconPackage, this.user, this.iconId,
this.iconLevel, this.number, this.contentDescription);
that.visible = this.visible;
return that;
| public int | describeContents()
return 0;
| public void | readFromParcel(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.String | toString()
return "StatusBarIcon(pkg=" + this.iconPackage + "user=" + user.getIdentifier()
+ " id=0x" + Integer.toHexString(this.iconId)
+ " level=" + this.iconLevel + " visible=" + visible
+ " num=" + this.number + " )";
| public void | writeToParcel(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);
|
|