From 1bade5d62974544639f2b1656a7e2785b0338a6f Mon Sep 17 00:00:00 2001 From: Christine Franks Date: Tue, 10 Oct 2017 15:41:50 -0700 Subject: Add DISALLOW_CONFIG_LOCALE user restriction Bug: 67586452 Test: make cts && cts-tradefed run cts-dev -m DevicePolicyManager \ -t com.android.cts.devicepolicy.UserRestrictionsTest Change-Id: Icaf78dec5527c57c00e2b9854ba17ec1982bfac4 --- core/java/android/os/UserManager.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'core/java/android/os/UserManager.java') diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index c54b72d40387..706c2f7a3160 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -139,6 +139,18 @@ public class UserManager { */ public static final String DISALLOW_CONFIG_WIFI = "no_config_wifi"; + /** + * Specifies if a user is disallowed from changing the device + * language. The default value is false. + * + *

Key for user restrictions. + *

Type: Boolean + * @see DevicePolicyManager#addUserRestriction(ComponentName, String) + * @see DevicePolicyManager#clearUserRestriction(ComponentName, String) + * @see #getUserRestrictions() + */ + public static final String DISALLOW_CONFIG_LOCALE = "no_config_locale"; + /** * Specifies if a user is disallowed from installing applications. * The default value is false. -- cgit v1.2.3