Merge "UserManagerService: fix comment for mRemovingUserIds" am: 030c47cbfb am: 2cf8cd28fa am: 3c0610d2e3
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2115419 Change-Id: Ica70659c19bbe0c6857843341104b5714aa63bc4 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -443,9 +443,12 @@ public class UserManagerService extends IUserManager.Stub {
|
|||||||
private final Bundle mGuestRestrictions = new Bundle();
|
private final Bundle mGuestRestrictions = new Bundle();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set of user IDs being actively removed. Removed IDs linger in this set
|
* Set of user IDs that are being removed or were removed during the current boot. User IDs in
|
||||||
* for several seconds to work around a VFS caching issue.
|
* this set aren't reused until the device is rebooted, unless MAX_USER_ID is reached. Some
|
||||||
* Use {@link #addRemovingUserIdLocked(int)} to add elements to this array
|
* services don't fully clear out in-memory user state upon user removal; this behavior is
|
||||||
|
* intended to mitigate such issues by limiting user ID reuse. This array applies to any type
|
||||||
|
* of user (including pre-created users) when they are removed. Use {@link
|
||||||
|
* #addRemovingUserIdLocked(int)} to add elements to this array.
|
||||||
*/
|
*/
|
||||||
@GuardedBy("mUsersLock")
|
@GuardedBy("mUsersLock")
|
||||||
private final SparseBooleanArray mRemovingUserIds = new SparseBooleanArray();
|
private final SparseBooleanArray mRemovingUserIds = new SparseBooleanArray();
|
||||||
|
|||||||
Reference in New Issue
Block a user