List of usage examples for android.os UserHandle readFromParcel
public static UserHandle readFromParcel(Parcel in)
From source file:com.oasisfeng.android.service.notification.StatusBarNotificationCompat.java
private static UserHandle toUserHandle(final int user) { final Parcel parcel = Parcel.obtain(); try {/*from ww w.j a va 2s.c o m*/ parcel.writeInt(user); parcel.setDataPosition(0); return UserHandle.readFromParcel(parcel); } finally { parcel.recycle(); } }
From source file:com.oasisfeng.nevo.StatusBarNotificationEvo.java
private StatusBarNotificationEvo(final Parcel in) { super(in.readString(), null, in.readInt(), in.readInt() != 0 ? in.readString() : null, in.readInt(), 0, 0, NULL_NOTIFICATION, UserHandle.readFromParcel(in), in.readLong()); holder = INotification.Stub.asInterface(in.readStrongBinder()); }