summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Fiona Campbell <flc@google.com> 2020-02-21 11:49:20 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-02-21 11:49:20 +0000
commit3a24f700aaeaf09defd07be1525ce4a4bd37b68f (patch)
tree234d840943b4b21c10f79e2d0a186f5dd91e2c1d
parentd4bf524ade73ff4c2cd4ddce9f2caecff09fa7c7 (diff)
parent39ff0382e2daf1ac3466b6e765dc3d8bc261b94d (diff)
Merge "Set default float brightness constraint to invalid"
-rw-r--r--core/res/res/values/config.xml25
1 files changed, 13 insertions, 12 deletions
diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml
index 70d8a0208ad5..482a41647d59 100644
--- a/core/res/res/values/config.xml
+++ b/core/res/res/values/config.xml
@@ -1278,20 +1278,21 @@
<integer name="config_screenBrightnessSettingDefault">102</integer>
<!-- Minimum screen brightness setting allowed by power manager.
- The user is forbidden from setting the brightness below this level.
- Equivalent to 10/255. -->
- <item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.035433073</item>
+ -2 is invalid so setting will resort to int value specified above.
+ Set this to 0.0 to allow screen to go to minimal brightness.
+ The user is forbidden from setting the brightness below this level. -->
+ <item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">-2</item>
<!-- Maximum screen brightness allowed by the power manager.
- The user is forbidden from setting the brightness above this level.
- This value is a fraction between 3.5% and 100%. -->
- <item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">1.0</item>
-
- <!-- Default screen brightness setting.
- Must be in the range specified by minimum and maximum.
- This value is a fraction between 3.5% and 100%.
- Equivalent to 102/255 (default for this device) -->
- <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.397637795276</item>
+ -2 is invalid so setting will resort to int value specified above.
+ Set this to 1.0 for maximum brightness range.
+ The user is forbidden from setting the brightness above this level. -->
+ <item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">-2</item>
+
+ <!-- Default screen brightness setting set.
+ -2 is invalid so setting will resort to int value specified above.
+ Must be in the range specified by minimum and maximum. -->
+ <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">-2</item>
<!-- Note: This setting is deprecated, please use
config_screenBrightnessSettingForVrDefaultFloat instead -->