Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update brightness settings #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
<item>32</item>
<item>64</item>
<item>128</item>
<item>170</item>
Expand All @@ -50,7 +51,8 @@
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>10</item> <!-- 0 -->
<item>3</item> <!-- 0 -->
<item>10</item> <!-- 32 -->
<item>32</item> <!-- 64 -->
<item>64</item> <!-- 128 -->
<item>80</item> <!-- 170 -->
Expand All @@ -67,17 +69,17 @@

<!-- Minimum screen brightness setting allowed by the power manager.
The user is forbidden from setting the brightness below this level. -->
<integer name="config_screenBrightnessSettingMinimum">10</integer>
<integer name="config_screenBrightnessSettingMinimum">2</integer>

<!-- Screen brightness used to dim the screen while dozing in a very low power state.
May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDoze">5</integer>
<integer name="config_screenBrightnessDoze">1</integer>

<!-- Screen brightness used to dim the screen when the user activity
timeout expires. May be less than the minimum allowed brightness setting
that can be set by the user. -->
<integer name="config_screenBrightnessDim">10</integer>
<integer name="config_screenBrightnessDim">2</integer>

<!-- Minimum allowable screen brightness to use in a very dark room.
This value sets the floor for the darkest possible auto-brightness
Expand All @@ -86,7 +88,7 @@
some range of adjustment to dim the screen further than usual in very
dark rooms. The contents of the screen must still be clearly visible
in darkness (although they may not be visible in a bright room). -->
<integer name="config_screenBrightnessDark">5</integer>
<integer name="config_screenBrightnessDark">2</integer>

<!-- Whether device supports double tap to wake -->
<bool name="config_supportDoubleTapWake">false</bool>
Expand Down