Methods Summary |
---|
public int | describeContents()
return 0;
|
public boolean | equals(java.lang.Object other)
if (other != null && other instanceof StatusHints) {
StatusHints otherHints = (StatusHints) other;
return Objects.equals(otherHints.getPackageName(), getPackageName()) &&
Objects.equals(otherHints.getLabel(), getLabel()) &&
otherHints.getIconResId() == getIconResId() &&
Objects.equals(otherHints.getExtras(), getExtras());
}
return false;
|
public android.os.Bundle | getExtras()
return mExtras;
|
private android.graphics.drawable.Drawable | getIcon(android.content.Context context, int resId)
Context packageContext;
try {
packageContext = context.createPackageContext(mPackageName.getPackageName(), 0);
} catch (PackageManager.NameNotFoundException e) {
Log.e(this, e, "Cannot find package %s", mPackageName.getPackageName());
return null;
}
try {
return packageContext.getDrawable(resId);
} catch (MissingResourceException e) {
Log.e(this, e, "Cannot find icon %d in package %s",
resId, mPackageName.getPackageName());
return null;
}
|
public android.graphics.drawable.Drawable | getIcon(android.content.Context context)
return getIcon(context, mIconResId);
|
public int | getIconResId()The icon resource ID for the icon to show.
return mIconResId;
|
public java.lang.CharSequence | getLabel()
return mLabel;
|
public android.content.ComponentName | getPackageName()
return mPackageName;
|
public int | hashCode()
return Objects.hashCode(mPackageName) + Objects.hashCode(mLabel) + mIconResId +
Objects.hashCode(mExtras);
|
public void | writeToParcel(android.os.Parcel out, int flags)
out.writeParcelable(mPackageName, flags);
out.writeCharSequence(mLabel);
out.writeInt(mIconResId);
out.writeParcelable(mExtras, 0);
|