diff options
| author | Remi NGUYEN VAN <reminv@google.com> | 2019-01-23 11:06:18 +0900 |
|---|---|---|
| committer | Remi NGUYEN VAN <reminv@google.com> | 2019-01-23 11:06:18 +0900 |
| commit | 6c7877b7bb1cc8c5425eede2d462285f1567c14c (patch) | |
| tree | 28b413a5301d9f4bba5c8ef860eee496235de13d /core/java/android/os/UserHandle.java | |
| parent | 479c0769f1a08526b3d846a77e54f78e76faf9ff (diff) | |
Add UserHandle constants to SystemApi
The affected constants are already SystemApi in internal.
Bug: 112869080
Test: m
Change-Id: Iacefdefa59346eaebd8b92743fe8710845edcc29
Merged-In: I261dfcc5cfdfc76bda5d70181785e11c2715a558
Diffstat (limited to 'core/java/android/os/UserHandle.java')
| -rw-r--r-- | core/java/android/os/UserHandle.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/os/UserHandle.java b/core/java/android/os/UserHandle.java index 4d4f31de0077..648c022d8673 100644 --- a/core/java/android/os/UserHandle.java +++ b/core/java/android/os/UserHandle.java @@ -38,12 +38,16 @@ public final class UserHandle implements Parcelable { public static final @UserIdInt int USER_ALL = -1; /** @hide A user handle to indicate all users on the device */ + @SystemApi + @TestApi public static final UserHandle ALL = new UserHandle(USER_ALL); /** @hide A user id to indicate the currently active user */ public static final @UserIdInt int USER_CURRENT = -2; /** @hide A user handle to indicate the current user of the device */ + @SystemApi + @TestApi public static final UserHandle CURRENT = new UserHandle(USER_CURRENT); /** @hide A user id to indicate that we would like to send to the current @@ -82,6 +86,7 @@ public final class UserHandle implements Parcelable { public static final int USER_SERIAL_SYSTEM = 0; /** @hide A user handle to indicate the "system" user of the device */ + @SystemApi @TestApi public static final UserHandle SYSTEM = new UserHandle(USER_SYSTEM); |
