diff options
| author | Christine Franks <christyfranks@google.com> | 2017-10-10 15:41:50 -0700 |
|---|---|---|
| committer | Christine Franks <christyfranks@google.com> | 2017-10-31 20:19:29 +0000 |
| commit | 1bade5d62974544639f2b1656a7e2785b0338a6f (patch) | |
| tree | ca5c96b544b8f856b565e5c101045a6acd243f6b /core/java/android/os/UserManager.java | |
| parent | aaad26df79cecad92e343746e300ed168dafe440 (diff) | |
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
Diffstat (limited to 'core/java/android/os/UserManager.java')
| -rw-r--r-- | core/java/android/os/UserManager.java | 12 |
1 files changed, 12 insertions, 0 deletions
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 @@ -140,6 +140,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 <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_CONFIG_LOCALE = "no_config_locale"; + + /** * Specifies if a user is disallowed from installing applications. * The default value is <code>false</code>. * |
