diff options
| author | yuemingw <yuemingw@google.com> | 2018-01-15 10:26:19 +0000 |
|---|---|---|
| committer | yuemingw <yuemingw@google.com> | 2018-01-15 12:48:58 +0000 |
| commit | 5cda3aefd995dc873fb93aa4b829b33b0a040d48 (patch) | |
| tree | e43846a11974f0a2e8e593ab631b01ef76e85447 /core/java/android/os/UserManager.java | |
| parent | a178144906fa7e2241715779f866d22b8b92a250 (diff) | |
Add DISALLOW_CONFIG_SCREEN_TIMEOUT.
Bug: 67675734
Test: cts test will be added in b/67675743.
Change-Id: I75df384acdfe4cb9c259f68ff78214c4fad6410c
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 21974843613f..7b0c153f5234 100644 --- a/core/java/android/os/UserManager.java +++ b/core/java/android/os/UserManager.java @@ -238,6 +238,20 @@ public class UserManager { public static final String DISALLOW_AMBIENT_DISPLAY = "no_ambient_display"; /** + * Specifies if a user is disallowed from changing screen off timeout. + * + * <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_CONFIG_SCREEN_TIMEOUT = "no_config_screen_timeout"; + + /** * 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>. |
