diff options
| author | yuemingw <yuemingw@google.com> | 2018-01-10 18:59:43 +0000 |
|---|---|---|
| committer | yuemingw <yuemingw@google.com> | 2018-01-15 11:33:18 +0000 |
| commit | a178144906fa7e2241715779f866d22b8b92a250 (patch) | |
| tree | dab393cac78b9505fc50b8a2fb4f92242471e1ac /core/java/android/os/UserManager.java | |
| parent | 1f31d9a8ddcedc061679f32c43095439b898f269 (diff) | |
Add DISALLOW_AMBIENT_DISPLAY.
Bug: 67675787
Test: cts will be added in b/67675794
Change-Id: Ic859783e05e54ea88d98db517891d41353ad033d
Diffstat (limited to 'core/java/android/os/UserManager.java')
| -rw-r--r-- | core/java/android/os/UserManager.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java index 60818d14d1ab..21974843613f 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -224,6 +224,20 @@ public class UserManager { public static final String DISALLOW_CONFIG_BRIGHTNESS = "no_config_brightness"; /** + * Specifies if ambient display is disallowed for the user. + * + * <p>The default value is <code>false</code>. + * + * <p>This user restriction has no effect on managed profiles. + * <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_AMBIENT_DISPLAY = "no_ambient_display"; + + /** * Specifies if a user is disallowed from enabling the * "Unknown Sources" setting, that allows installation of apps from unknown sources. * The default value is <code>false</code>. |
