Loading api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -28590,6 +28590,7 @@ package android.os { field public static final java.lang.String DISALLOW_OUTGOING_CALLS = "no_outgoing_calls"; field public static final java.lang.String DISALLOW_REMOVE_USER = "no_remove_user"; field public static final java.lang.String DISALLOW_SAFE_BOOT = "no_safe_boot"; field public static final java.lang.String DISALLOW_SET_USER_ICON = "no_set_user_icon"; field public static final java.lang.String DISALLOW_SHARE_LOCATION = "no_share_location"; field public static final java.lang.String DISALLOW_SMS = "no_sms"; field public static final java.lang.String DISALLOW_UNINSTALL_APPS = "no_uninstall_apps"; api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -30642,6 +30642,7 @@ package android.os { field public static final java.lang.String DISALLOW_OUTGOING_CALLS = "no_outgoing_calls"; field public static final java.lang.String DISALLOW_REMOVE_USER = "no_remove_user"; field public static final java.lang.String DISALLOW_SAFE_BOOT = "no_safe_boot"; field public static final java.lang.String DISALLOW_SET_USER_ICON = "no_set_user_icon"; field public static final java.lang.String DISALLOW_SHARE_LOCATION = "no_share_location"; field public static final java.lang.String DISALLOW_SMS = "no_sms"; field public static final java.lang.String DISALLOW_UNINSTALL_APPS = "no_uninstall_apps"; api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -28599,6 +28599,7 @@ package android.os { field public static final java.lang.String DISALLOW_OUTGOING_CALLS = "no_outgoing_calls"; field public static final java.lang.String DISALLOW_REMOVE_USER = "no_remove_user"; field public static final java.lang.String DISALLOW_SAFE_BOOT = "no_safe_boot"; field public static final java.lang.String DISALLOW_SET_USER_ICON = "no_set_user_icon"; field public static final java.lang.String DISALLOW_SHARE_LOCATION = "no_share_location"; field public static final java.lang.String DISALLOW_SMS = "no_sms"; field public static final java.lang.String DISALLOW_UNINSTALL_APPS = "no_uninstall_apps"; core/java/android/os/UserManager.java +15 −0 Original line number Diff line number Diff line Loading @@ -528,6 +528,21 @@ public class UserManager { */ public static final String DISALLOW_DATA_ROAMING = "no_data_roaming"; /** * Specifies if a user is not allowed to change their icon. Device owner and profile owner * can set this restriction. When it is set by device owner, only the target user will be * affected. The default value is <code>false</code>. * * <p>Key for user restrictions. * * <p>Type: Boolean * * @see DevicePolicyManager#addUserRestriction(ComponentName, String) * @see DevicePolicyManager#clearUserRestriction(ComponentName, String) * @see #getUserRestrictions() */ public static final String DISALLOW_SET_USER_ICON = "no_set_user_icon"; /** * Allows apps in the parent profile to handle web links from the managed profile. * Loading core/java/android/os/UserManagerInternal.java +10 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.os; import android.annotation.NonNull; import android.annotation.Nullable; import android.graphics.Bitmap; /** * @hide Only for use within the system server. Loading Loading @@ -81,4 +82,13 @@ public abstract class UserManagerInternal { * whether the user is managed by profile owner. */ public abstract void setUserManaged(int userId, boolean isManaged); /** * Called by {@link com.android.server.devicepolicy.DevicePolicyManagerService} to omit * restriction check, because DevicePolicyManager must always be able to set user icon * regardless of any restriction. * Also called by {@link com.android.server.pm.UserManagerService} because the logic of setting * the icon is in this method. */ public abstract void setUserIcon(int userId, Bitmap bitmap); } Loading
api/current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -28590,6 +28590,7 @@ package android.os { field public static final java.lang.String DISALLOW_OUTGOING_CALLS = "no_outgoing_calls"; field public static final java.lang.String DISALLOW_REMOVE_USER = "no_remove_user"; field public static final java.lang.String DISALLOW_SAFE_BOOT = "no_safe_boot"; field public static final java.lang.String DISALLOW_SET_USER_ICON = "no_set_user_icon"; field public static final java.lang.String DISALLOW_SHARE_LOCATION = "no_share_location"; field public static final java.lang.String DISALLOW_SMS = "no_sms"; field public static final java.lang.String DISALLOW_UNINSTALL_APPS = "no_uninstall_apps";
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -30642,6 +30642,7 @@ package android.os { field public static final java.lang.String DISALLOW_OUTGOING_CALLS = "no_outgoing_calls"; field public static final java.lang.String DISALLOW_REMOVE_USER = "no_remove_user"; field public static final java.lang.String DISALLOW_SAFE_BOOT = "no_safe_boot"; field public static final java.lang.String DISALLOW_SET_USER_ICON = "no_set_user_icon"; field public static final java.lang.String DISALLOW_SHARE_LOCATION = "no_share_location"; field public static final java.lang.String DISALLOW_SMS = "no_sms"; field public static final java.lang.String DISALLOW_UNINSTALL_APPS = "no_uninstall_apps";
api/test-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -28599,6 +28599,7 @@ package android.os { field public static final java.lang.String DISALLOW_OUTGOING_CALLS = "no_outgoing_calls"; field public static final java.lang.String DISALLOW_REMOVE_USER = "no_remove_user"; field public static final java.lang.String DISALLOW_SAFE_BOOT = "no_safe_boot"; field public static final java.lang.String DISALLOW_SET_USER_ICON = "no_set_user_icon"; field public static final java.lang.String DISALLOW_SHARE_LOCATION = "no_share_location"; field public static final java.lang.String DISALLOW_SMS = "no_sms"; field public static final java.lang.String DISALLOW_UNINSTALL_APPS = "no_uninstall_apps";
core/java/android/os/UserManager.java +15 −0 Original line number Diff line number Diff line Loading @@ -528,6 +528,21 @@ public class UserManager { */ public static final String DISALLOW_DATA_ROAMING = "no_data_roaming"; /** * Specifies if a user is not allowed to change their icon. Device owner and profile owner * can set this restriction. When it is set by device owner, only the target user will be * affected. The default value is <code>false</code>. * * <p>Key for user restrictions. * * <p>Type: Boolean * * @see DevicePolicyManager#addUserRestriction(ComponentName, String) * @see DevicePolicyManager#clearUserRestriction(ComponentName, String) * @see #getUserRestrictions() */ public static final String DISALLOW_SET_USER_ICON = "no_set_user_icon"; /** * Allows apps in the parent profile to handle web links from the managed profile. * Loading
core/java/android/os/UserManagerInternal.java +10 −0 Original line number Diff line number Diff line Loading @@ -17,6 +17,7 @@ package android.os; import android.annotation.NonNull; import android.annotation.Nullable; import android.graphics.Bitmap; /** * @hide Only for use within the system server. Loading Loading @@ -81,4 +82,13 @@ public abstract class UserManagerInternal { * whether the user is managed by profile owner. */ public abstract void setUserManaged(int userId, boolean isManaged); /** * Called by {@link com.android.server.devicepolicy.DevicePolicyManagerService} to omit * restriction check, because DevicePolicyManager must always be able to set user icon * regardless of any restriction. * Also called by {@link com.android.server.pm.UserManagerService} because the logic of setting * the icon is in this method. */ public abstract void setUserIcon(int userId, Bitmap bitmap); }