am 2feb9c9a: am 2413aa58: am 38bd55ff: Merge changes I79ba54d7,I224fb4b6 into lmp-dev
* commit '2feb9c9a5153136d6d0f4d32859113fc1ebe6a4f': Make UsageStats API default on only for the system ActivityManager shouldn't return null for getCurrentUser
This commit is contained in:
@@ -89,6 +89,7 @@ public class UserInfo implements Parcelable {
|
||||
|
||||
/** User is only partially created. */
|
||||
public boolean partial;
|
||||
public boolean guestToRemove;
|
||||
|
||||
public UserInfo(int id, String name, int flags) {
|
||||
this(id, name, null, flags);
|
||||
@@ -147,6 +148,7 @@ public class UserInfo implements Parcelable {
|
||||
lastLoggedInTime = orig.lastLoggedInTime;
|
||||
partial = orig.partial;
|
||||
profileGroupId = orig.profileGroupId;
|
||||
guestToRemove = orig.guestToRemove;
|
||||
}
|
||||
|
||||
public UserHandle getUserHandle() {
|
||||
@@ -172,6 +174,7 @@ public class UserInfo implements Parcelable {
|
||||
dest.writeLong(lastLoggedInTime);
|
||||
dest.writeInt(partial ? 1 : 0);
|
||||
dest.writeInt(profileGroupId);
|
||||
dest.writeInt(guestToRemove ? 1 : 0);
|
||||
}
|
||||
|
||||
public static final Parcelable.Creator<UserInfo> CREATOR
|
||||
@@ -194,5 +197,6 @@ public class UserInfo implements Parcelable {
|
||||
lastLoggedInTime = source.readLong();
|
||||
partial = source.readInt() != 0;
|
||||
profileGroupId = source.readInt();
|
||||
guestToRemove = source.readInt() != 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user