summaryrefslogtreecommitdiff
path: root/core/java/android/os/UserManager.java
diff options
context:
space:
mode:
authoryuemingw <yuemingw@google.com>2018-01-10 16:54:08 +0000
committeryuemingw <yuemingw@google.com>2018-01-10 17:00:35 +0000
commitc6ac29d34fcebf3d392dfb729f0085a87bceb6c9 (patch)
treeb0eec67c2c68e9e447f6dbbd9805dd618a63980b /core/java/android/os/UserManager.java
parent2f28dd71ec80031bf30305cedb3cf599dc73237d (diff)
Add DISALLOW_CONFIG_BRIGHTNESS.
Bug: 67675654 Test: cts test will be added in b/67675678. Change-Id: Iaaeb1a19aed89cdbb139c33939923d0bb675d212
Diffstat (limited to 'core/java/android/os/UserManager.java')
-rw-r--r--core/java/android/os/UserManager.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/os/UserManager.java b/core/java/android/os/UserManager.java
index 44238df108cf..4e94c321e0a5 100644
--- a/core/java/android/os/UserManager.java
+++ b/core/java/android/os/UserManager.java
@@ -209,6 +209,21 @@ public class UserManager {
public static final String DISALLOW_AIRPLANE_MODE = "no_airplane_mode";
/**
+ * Specifies if a user is disallowed from configuring brightness. When device owner sets it,
+ * it'll only be applied on the target(system) 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_CONFIG_BRIGHTNESS = "no_config_brightness";
+
+ /**
* 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>.