-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I1e47f5a9f5d3923de3af579f1df3b8c63025bbdf
- Loading branch information
1 parent
aa27595
commit 922dfd2
Showing
1 changed file
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,142 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
Copyright (c) 2016, The Linux Foundation. All rights reserved. | ||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
* Redistributions of source code must retain the above copyright | ||
notice, this list of conditions and the following disclaimer. | ||
* Redistributions in binary form must reproduce the above | ||
copyright notice, this list of conditions and the following | ||
disclaimer in the documentation and/or other materials provided | ||
with the distribution. | ||
* Neither the name of The Linux Foundation nor the names of its | ||
contributors may be used to endorse or promote products derived | ||
from this software without specific prior written permission. | ||
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED | ||
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT | ||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS | ||
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR | ||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF | ||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | ||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, | ||
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE | ||
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN | ||
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE | ||
--> | ||
|
||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> | ||
|
||
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support. | ||
The N entries of this array define N + 1 control points as follows: | ||
(1-based arrays) | ||
Point 1: (0, value[1]): lux <= 0 | ||
Point 2: (level[1], value[2]): 0 < lux <= level[1] | ||
Point 3: (level[2], value[3]): level[2] < lux <= level[3] | ||
... | ||
Point N+1: (level[N], value[N+1]): level[N] < lux | ||
The control points must be strictly increasing. Each control point | ||
corresponds to an entry in the brightness backlight values arrays. | ||
For example, if LUX == level[1] (first element of the levels array) | ||
then the brightness will be determined by value[2] (second element | ||
of the brightness values array). | ||
Spline interpolation is used to determine the auto-brightness | ||
backlight values for LUX levels between these control points. | ||
Must be overridden in platform specific overlays --> | ||
<integer-array name="config_autoBrightnessLevels"> | ||
<item>1</item> | ||
<item>15</item> | ||
<item>30</item> | ||
<item>50</item> | ||
<item>100</item> | ||
<item>200</item> | ||
<item>300</item> | ||
<item>400</item> | ||
<item>500</item> | ||
<item>650</item> | ||
<item>800</item> | ||
<item>1000</item> | ||
<item>1500</item> | ||
<item>2000</item> | ||
<item>3000</item> | ||
<item>4000</item> | ||
<item>5000</item> | ||
<item>7000</item> | ||
<item>10000</item> | ||
<item>12500</item> | ||
<item>15000</item> | ||
<item>17500</item> | ||
<item>20000</item> | ||
<item>50000</item> | ||
</integer-array> | ||
|
||
<!-- 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. | ||
The brightness values must be between 0 and 255 and be non-decreasing. | ||
This must be overridden in platform specific overlays --> | ||
<integer-array name="config_autoBrightnessLcdBacklightValues"> | ||
<item>6</item> | ||
<item>9</item> | ||
<item>28</item> | ||
<item>42</item> | ||
<item>54</item> | ||
<item>65</item> | ||
<item>82</item> | ||
<item>94</item> | ||
<item>103</item> | ||
<item>110</item> | ||
<item>120</item> | ||
<item>130</item> | ||
<item>140</item> | ||
<item>180</item> | ||
<item>208</item> | ||
<item>230</item> | ||
<item>240</item> | ||
<item>245</item> | ||
<item>248</item> | ||
<item>252</item> | ||
<item>315</item> | ||
<item>378</item> | ||
<item>441</item> | ||
<item>504</item> | ||
<item>1259</item> | ||
</integer-array> | ||
|
||
<!-- 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> | ||
|
||
<!-- Default screen brightness setting. | ||
Must be in the range specified by minimum and maximum. --> | ||
<integer name="config_screenBrightnessSettingDefault">62</integer> | ||
|
||
<!-- Minimum screen brightness setting allowed by the power manager. | ||
The user is forbidden from setting the brightness below this level. --> | ||
<integer name="config_screenBrightnessSettingMinimum">1</integer> | ||
|
||
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used | ||
for debouncing the light sensor. Different constants are used to debounce the light sensor | ||
when adapting to brighter or darker environments. This parameter controls how quickly | ||
brightness changes occur in response to an observed change in light level that exceeds the | ||
hysteresis threshold. --> | ||
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer> | ||
<integer name="config_autoBrightnessDarkeningLightDebounce">4000</integer> | ||
|
||
<!-- Fast brightness animation ramp rate in brightness units per second--> | ||
<integer name="config_brightness_ramp_rate_fast">180</integer> | ||
|
||
<!-- Slow brightness animation ramp rate in brightness units per second--> | ||
<integer name="config_brightness_ramp_rate_slow">40</integer> | ||
|
||
<!-- The maximum range of gamma adjustment possible using the screen | ||
auto-brightness adjustment setting. --> | ||
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300%</fraction> | ||
|
||
<!-- Amount of time it takes for the light sensor to warm up in milliseconds. | ||
For this time after the screen turns on, the Power Manager | ||
will not debounce light sensor readings --> | ||
<integer name="config_lightSensorWarmupTime">200</integer> | ||
</resources> |