diff options
| author | 2019-01-31 06:04:11 +0000 | |
|---|---|---|
| committer | 2019-01-31 06:04:11 +0000 | |
| commit | b334bbefd489b4e91845844f27c588d5641ef52f (patch) | |
| tree | 5a5f1907dc44d989f6aed81473be8279fe35c9eb | |
| parent | 3483983223e62f41054f6e7ea1b56e6fd5c79e03 (diff) | |
| parent | 9e70a422525ba790a5d65df317705b23e8e8e8bf (diff) | |
Merge "Add UserHandle.getAppId to SystemApi"
| -rw-r--r-- | api/system-current.txt | 1 | ||||
| -rw-r--r-- | core/java/android/os/UserHandle.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/api/system-current.txt b/api/system-current.txt index 3bc22e66aa77..64a0881b41b3 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -4305,6 +4305,7 @@ package android.os { } public final class UserHandle implements android.os.Parcelable { + method public static int getAppId(int); method public int getIdentifier(); method @Deprecated public boolean isOwner(); method public boolean isSystem(); diff --git a/core/java/android/os/UserHandle.java b/core/java/android/os/UserHandle.java index 648c022d8673..de41ce2e08c5 100644 --- a/core/java/android/os/UserHandle.java +++ b/core/java/android/os/UserHandle.java @@ -226,6 +226,7 @@ public final class UserHandle implements Parcelable { * @hide */ @TestApi + @SystemApi public static @AppIdInt int getAppId(int uid) { return uid % PER_USER_RANGE; } |