Improve service docs around user unlocking.

Also delete some @removed methods that never shipped to reduce
confusion.

Test: builds, boots
Bug: 30434803
Change-Id: I18773182f62f0f62bd4e36c9c3098372483a374f
This commit is contained in:
Jeff Sharkey
2017-02-23 17:31:39 -07:00
parent 830d4b422d
commit bb4988ad7d
5 changed files with 11 additions and 49 deletions

View File

@@ -1097,40 +1097,6 @@ public class UserManager {
}
}
/** @removed */
@Deprecated
public boolean isUserRunningAndLocked() {
return isUserRunningAndLocked(Process.myUserHandle());
}
/** @removed */
@Deprecated
public boolean isUserRunningAndLocked(UserHandle user) {
try {
return ActivityManager.getService().isUserRunning(
user.getIdentifier(), ActivityManager.FLAG_AND_LOCKED);
} catch (RemoteException re) {
throw re.rethrowFromSystemServer();
}
}
/** @removed */
@Deprecated
public boolean isUserRunningAndUnlocked() {
return isUserRunningAndUnlocked(Process.myUserHandle());
}
/** @removed */
@Deprecated
public boolean isUserRunningAndUnlocked(UserHandle user) {
try {
return ActivityManager.getService().isUserRunning(
user.getIdentifier(), ActivityManager.FLAG_AND_UNLOCKED);
} catch (RemoteException re) {
throw re.rethrowFromSystemServer();
}
}
/**
* Return whether the calling user is running in an "unlocked" state.
* <p>