Loading api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -17081,8 +17081,8 @@ package android.os { method public java.lang.String getUserName(); method public android.os.Bundle getUserRestrictions(); method public android.os.Bundle getUserRestrictions(android.os.UserHandle); method public boolean isLinkedUser(); method public boolean isUserAGoat(); method public boolean isUserLimited(); method public boolean isUserRunning(android.os.UserHandle); method public boolean isUserRunningOrStopping(android.os.UserHandle); method public void setUserRestriction(java.lang.String, boolean); core/java/android/os/UserManager.java +3 −3 Original line number Diff line number Diff line Loading @@ -198,11 +198,11 @@ public class UserManager { } /** * Used to check if the user making this call is a limited user. Limited users may have * Used to check if the user making this call is linked to another user. Linked users may have * a reduced number of available apps, app restrictions and account restrictions. * @return whether the user making this call is a limited user * @return whether the user making this call is a linked user */ public boolean isUserLimited() { public boolean isLinkedUser() { try { return mService.isRestricted(); } catch (RemoteException re) { Loading Loading
api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -17081,8 +17081,8 @@ package android.os { method public java.lang.String getUserName(); method public android.os.Bundle getUserRestrictions(); method public android.os.Bundle getUserRestrictions(android.os.UserHandle); method public boolean isLinkedUser(); method public boolean isUserAGoat(); method public boolean isUserLimited(); method public boolean isUserRunning(android.os.UserHandle); method public boolean isUserRunningOrStopping(android.os.UserHandle); method public void setUserRestriction(java.lang.String, boolean);
core/java/android/os/UserManager.java +3 −3 Original line number Diff line number Diff line Loading @@ -198,11 +198,11 @@ public class UserManager { } /** * Used to check if the user making this call is a limited user. Limited users may have * Used to check if the user making this call is linked to another user. Linked users may have * a reduced number of available apps, app restrictions and account restrictions. * @return whether the user making this call is a limited user * @return whether the user making this call is a linked user */ public boolean isUserLimited() { public boolean isLinkedUser() { try { return mService.isRestricted(); } catch (RemoteException re) { Loading