Loading api/removed.txt +0 −4 Original line number Diff line number Diff line Loading @@ -169,10 +169,6 @@ package android.os { method public android.graphics.drawable.Drawable getBadgedDrawableForUser(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int); method public android.graphics.drawable.Drawable getBadgedIconForUser(android.graphics.drawable.Drawable, android.os.UserHandle); method public java.lang.CharSequence getBadgedLabelForUser(java.lang.CharSequence, android.os.UserHandle); method public deprecated boolean isUserRunningAndLocked(); method public deprecated boolean isUserRunningAndLocked(android.os.UserHandle); method public deprecated boolean isUserRunningAndUnlocked(); method public deprecated boolean isUserRunningAndUnlocked(android.os.UserHandle); } } Loading api/system-removed.txt +0 −4 Original line number Diff line number Diff line Loading @@ -163,10 +163,6 @@ package android.os { method public android.graphics.drawable.Drawable getBadgedDrawableForUser(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int); method public android.graphics.drawable.Drawable getBadgedIconForUser(android.graphics.drawable.Drawable, android.os.UserHandle); method public java.lang.CharSequence getBadgedLabelForUser(java.lang.CharSequence, android.os.UserHandle); method public deprecated boolean isUserRunningAndLocked(); method public deprecated boolean isUserRunningAndLocked(android.os.UserHandle); method public deprecated boolean isUserRunningAndUnlocked(); method public deprecated boolean isUserRunningAndUnlocked(android.os.UserHandle); } } Loading api/test-removed.txt +0 −4 Original line number Diff line number Diff line Loading @@ -169,10 +169,6 @@ package android.os { method public android.graphics.drawable.Drawable getBadgedDrawableForUser(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int); method public android.graphics.drawable.Drawable getBadgedIconForUser(android.graphics.drawable.Drawable, android.os.UserHandle); method public java.lang.CharSequence getBadgedLabelForUser(java.lang.CharSequence, android.os.UserHandle); method public deprecated boolean isUserRunningAndLocked(); method public deprecated boolean isUserRunningAndLocked(android.os.UserHandle); method public deprecated boolean isUserRunningAndUnlocked(); method public deprecated boolean isUserRunningAndUnlocked(android.os.UserHandle); } } Loading core/java/android/os/UserManager.java +0 −34 Original line number Diff line number Diff line Loading @@ -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> Loading services/core/java/com/android/server/SystemService.java +11 −3 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package com.android.server; import android.content.Context; import android.os.IBinder; import android.os.ServiceManager; import android.os.UserManager; /** * The base class for services running in the system process. Override and implement Loading Loading @@ -133,9 +134,16 @@ public abstract class SystemService { public void onStartUser(int userHandle) {} /** * Called when an existing user is unlocked. This means the * credential-encrypted storage for that user is now available, and * encryption-aware component filtering is no longer in effect. * Called when an existing user is in the process of being unlocked. This * means the credential-encrypted storage for that user is now available, * and encryption-aware component filtering is no longer in effect. * <p> * While dispatching this event to services, the user is in the * {@code STATE_RUNNING_UNLOCKING} state, and once dispatching is finished * the user will transition into the {@code STATE_RUNNING_UNLOCKED} state. * Code written inside system services should use * {@link UserManager#isUserUnlockingOrUnlocked(int)} to handle both of * these states. * * @param userHandle The identifier of the user. */ Loading Loading
api/removed.txt +0 −4 Original line number Diff line number Diff line Loading @@ -169,10 +169,6 @@ package android.os { method public android.graphics.drawable.Drawable getBadgedDrawableForUser(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int); method public android.graphics.drawable.Drawable getBadgedIconForUser(android.graphics.drawable.Drawable, android.os.UserHandle); method public java.lang.CharSequence getBadgedLabelForUser(java.lang.CharSequence, android.os.UserHandle); method public deprecated boolean isUserRunningAndLocked(); method public deprecated boolean isUserRunningAndLocked(android.os.UserHandle); method public deprecated boolean isUserRunningAndUnlocked(); method public deprecated boolean isUserRunningAndUnlocked(android.os.UserHandle); } } Loading
api/system-removed.txt +0 −4 Original line number Diff line number Diff line Loading @@ -163,10 +163,6 @@ package android.os { method public android.graphics.drawable.Drawable getBadgedDrawableForUser(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int); method public android.graphics.drawable.Drawable getBadgedIconForUser(android.graphics.drawable.Drawable, android.os.UserHandle); method public java.lang.CharSequence getBadgedLabelForUser(java.lang.CharSequence, android.os.UserHandle); method public deprecated boolean isUserRunningAndLocked(); method public deprecated boolean isUserRunningAndLocked(android.os.UserHandle); method public deprecated boolean isUserRunningAndUnlocked(); method public deprecated boolean isUserRunningAndUnlocked(android.os.UserHandle); } } Loading
api/test-removed.txt +0 −4 Original line number Diff line number Diff line Loading @@ -169,10 +169,6 @@ package android.os { method public android.graphics.drawable.Drawable getBadgedDrawableForUser(android.graphics.drawable.Drawable, android.os.UserHandle, android.graphics.Rect, int); method public android.graphics.drawable.Drawable getBadgedIconForUser(android.graphics.drawable.Drawable, android.os.UserHandle); method public java.lang.CharSequence getBadgedLabelForUser(java.lang.CharSequence, android.os.UserHandle); method public deprecated boolean isUserRunningAndLocked(); method public deprecated boolean isUserRunningAndLocked(android.os.UserHandle); method public deprecated boolean isUserRunningAndUnlocked(); method public deprecated boolean isUserRunningAndUnlocked(android.os.UserHandle); } } Loading
core/java/android/os/UserManager.java +0 −34 Original line number Diff line number Diff line Loading @@ -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> Loading
services/core/java/com/android/server/SystemService.java +11 −3 Original line number Diff line number Diff line Loading @@ -19,6 +19,7 @@ package com.android.server; import android.content.Context; import android.os.IBinder; import android.os.ServiceManager; import android.os.UserManager; /** * The base class for services running in the system process. Override and implement Loading Loading @@ -133,9 +134,16 @@ public abstract class SystemService { public void onStartUser(int userHandle) {} /** * Called when an existing user is unlocked. This means the * credential-encrypted storage for that user is now available, and * encryption-aware component filtering is no longer in effect. * Called when an existing user is in the process of being unlocked. This * means the credential-encrypted storage for that user is now available, * and encryption-aware component filtering is no longer in effect. * <p> * While dispatching this event to services, the user is in the * {@code STATE_RUNNING_UNLOCKING} state, and once dispatching is finished * the user will transition into the {@code STATE_RUNNING_UNLOCKED} state. * Code written inside system services should use * {@link UserManager#isUserUnlockingOrUnlocked(int)} to handle both of * these states. * * @param userHandle The identifier of the user. */ Loading