diff options
author | Dianne Hackborn <hackbod@google.com> | 2012-10-09 15:36:59 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2012-10-09 17:00:31 -0700 |
commit | a8a9bd65bf5865d83ef44f54552ca39522bfbcf0 (patch) | |
tree | 2487c59160d21ab84f7890724ec9adae5ea8af53 /api | |
parent | 3b9e7f32380e179aa1e0718762e86ffa24cbab93 (diff) | |
download | frameworks_base-a8a9bd65bf5865d83ef44f54552ca39522bfbcf0.zip frameworks_base-a8a9bd65bf5865d83ef44f54552ca39522bfbcf0.tar.gz frameworks_base-a8a9bd65bf5865d83ef44f54552ca39522bfbcf0.tar.bz2 |
Fix issue #7311376: Add API to allow apps to know if they are...
...running as the foreground user
Add UserManager.isUserRunning() which is the public version of the
existing method on ActivityManager.
Also add UserManager.isUserRunningOrStopping() since that seems like
it will be useful.
And fix the internal function that returns the array of currently
running users to not include stopped users.
Change-Id: I84672fa8748fc027fd402729586b5603f640e498
Diffstat (limited to 'api')
-rw-r--r-- | api/17.txt | 2 | ||||
-rw-r--r-- | api/current.txt | 2 |
2 files changed, 4 insertions, 0 deletions
@@ -16620,6 +16620,8 @@ package android.os { method public android.os.UserHandle getUserForSerialNumber(long); method public java.lang.String getUserName(); method public boolean isUserAGoat(); + method public boolean isUserRunning(android.os.UserHandle); + method public boolean isUserRunningOrStopping(android.os.UserHandle); } public abstract class Vibrator { diff --git a/api/current.txt b/api/current.txt index f8ad4d9..bebd566 100644 --- a/api/current.txt +++ b/api/current.txt @@ -16620,6 +16620,8 @@ package android.os { method public android.os.UserHandle getUserForSerialNumber(long); method public java.lang.String getUserName(); method public boolean isUserAGoat(); + method public boolean isUserRunning(android.os.UserHandle); + method public boolean isUserRunningOrStopping(android.os.UserHandle); } public abstract class Vibrator { |