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

Auto brightness levels #9

Open
wants to merge 1 commit into
base: ics
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
86 changes: 69 additions & 17 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -258,36 +258,88 @@
Zone N + 1: array[N] <= LUX < infinity

Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
<item>15</item>
<item>100</item>
<item>3000</item>
<item>8000</item>
</integer-array>
<integer-array name="config_autoBrightnessLevels">
<item>10</item>
<item>25</item>
<item>50</item>
<item>100</item>
<item>150</item>
<item>200</item>
<item>700</item>
<item>1300</item>
<item>2000</item>
<item>3000</item>
<item>4000</item>
<item>5000</item>
<item>6000</item>
<item>7000</item>
<item>8000</item>
<item>9000</item>
</integer-array>


<!-- Minimum screen brightness allowed by the power manager. -->
<integer name="config_screenBrightnessDim">5</integer>

<!-- Array of output values for LCD backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>24</item>
<item>48</item>
<item>108</item>
<item>206</item>
<item>246</item>
</integer-array>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>5</item>
<item>10</item>
<item>20</item>
<item>32</item>
<item>64</item>
<item>75</item>
<item>95</item>
<item>105</item>
<item>122</item>
<item>149</item>
<item>176</item>
<item>197</item>
<item>228</item>
<item>235</item>
<item>245</item>
<item>255</item>
<item>255</item>
</integer-array>

<!-- Array of output values for button backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessButtonBacklightValues">
<item>255</item>
<item>255</item>
<item>100</item>
<item>10</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>255</item>
<item>100</item>
<item>100</item>
<item>100</item>
<item>100</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>

<!-- Array of output values for keyboard backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
than the size of the config_autoBrightnessLevels array.
This must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessKeyboardBacklightValues">
<item>0</item>
<item>0</item>
</integer-array>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>

<!-- Array of output values for keyboard backlight corresponding to the LUX values
in the config_autoBrightnessLevels array. This array should have size one greater
Expand Down