Loading core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -31445,6 +31445,7 @@ package android.os { method @RequiresPermission(anyOf={"android.permission.MANAGE_USERS", "android.permission.INTERACT_ACROSS_USERS"}, conditional=true) public android.os.Bundle getUserRestrictions(android.os.UserHandle); method public boolean hasUserRestriction(String); method public boolean isDemoUser(); method public static boolean isHeadlessSystemUserMode(); method public boolean isManagedProfile(); method public boolean isQuietModeEnabled(android.os.UserHandle); method public boolean isSystemUser(); core/java/android/os/UserManager.java +7 −4 Original line number Diff line number Diff line Loading @@ -1694,10 +1694,13 @@ public class UserManager { } /** * @hide * @return Whether the device is running in a headless system user mode. It means the headless * user (system user) runs system services and system UI, but is not associated with any real * person. Secondary users can be created to be associated with real person. * Checks whether the device is running in a headless system user mode. * * <p>Headless system user mode means the {@link #isSystemUser() system user} runs system * services and some system UI, but it is not associated with any real person and additional * users must be created to be associated with real persons. * * @return whether the device is running in a headless system user mode. */ public static boolean isHeadlessSystemUserMode() { return RoSystemProperties.MULTIUSER_HEADLESS_SYSTEM_USER; Loading Loading
core/api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -31445,6 +31445,7 @@ package android.os { method @RequiresPermission(anyOf={"android.permission.MANAGE_USERS", "android.permission.INTERACT_ACROSS_USERS"}, conditional=true) public android.os.Bundle getUserRestrictions(android.os.UserHandle); method public boolean hasUserRestriction(String); method public boolean isDemoUser(); method public static boolean isHeadlessSystemUserMode(); method public boolean isManagedProfile(); method public boolean isQuietModeEnabled(android.os.UserHandle); method public boolean isSystemUser();
core/java/android/os/UserManager.java +7 −4 Original line number Diff line number Diff line Loading @@ -1694,10 +1694,13 @@ public class UserManager { } /** * @hide * @return Whether the device is running in a headless system user mode. It means the headless * user (system user) runs system services and system UI, but is not associated with any real * person. Secondary users can be created to be associated with real person. * Checks whether the device is running in a headless system user mode. * * <p>Headless system user mode means the {@link #isSystemUser() system user} runs system * services and some system UI, but it is not associated with any real person and additional * users must be created to be associated with real persons. * * @return whether the device is running in a headless system user mode. */ public static boolean isHeadlessSystemUserMode() { return RoSystemProperties.MULTIUSER_HEADLESS_SYSTEM_USER; Loading