diff options
| author | Bruno Martins <bgcngm@gmail.com> | 2017-05-22 10:49:54 +0100 |
|---|---|---|
| committer | Rahul Patel <whyorean@gmail.com> | 2017-05-26 10:26:06 +0200 |
| commit | fda601f57bb384b46ff648460f3c9ff4a2a9b02c (patch) | |
| tree | c768a308537cae44efb35bdf57164564a73f534c | |
| parent | 3666852d070806014bbfd8aa4aae8643a0f56df1 (diff) | |
gemini: Import brightness related overlays
Change-Id: I5483c96fbc40aa662db2e225f8281bfa0cf9c90d
| -rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 109 |
1 files changed, 109 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index b0848dd..79fdc59 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -17,6 +17,115 @@ <!-- These resources are around just to allow their values to be customized for different hardware and product builds. Do not translate. --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + <!-- Flag indicating whether the we should enable the automatic brightness in Settings. + Software implementation will be used if config_hardware_auto_brightness_available is not set --> + <bool name="config_automatic_brightness_available">true</bool> + + <!-- Array of light sensor LUX values to define our levels for auto backlight brightness support. + The N entries of this array define N 1 zones as follows: + + Zone 0: 0 <= LUX < array[0] + Zone 1: array[0] <= LUX < array[1] + ... + Zone N: array[N - 1] <= LUX < array[N] + Zone N + 1 array[N] <= LUX < infinity + + Must be overridden in platform specific overlays --> + <integer-array name="config_autoBrightnessLevels"> + <item>1</item> + <item>4</item> + <item>5</item> + <item>8</item> + <item>13</item> + <item>17</item> + <item>21</item> + <item>26</item> + <item>30</item> + <item>34</item> + <item>39</item> + <item>60</item> + <item>140</item> + <item>310</item> + <item>400</item> + <item>500</item> + <item>600</item> + <item>1000</item> + <item>1200</item> + <item>1500</item> + <item>3000</item> + <item>3500</item> + <item>4000</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. + This must be overridden in platform specific overlays --> + <integer-array name="config_autoBrightnessLcdBacklightValues"> + <item>2</item> + <item>3</item> + <item>3</item> + <item>15</item> + <item>15</item> + <item>15</item> + <item>15</item> + <item>31</item> + <item>39</item> + <item>43</item> + <item>43</item> + <item>44</item> + <item>45</item> + <item>48</item> + <item>55</item> + <item>60</item> + <item>63</item> + <item>67</item> + <item>84</item> + <item>93</item> + <item>105</item> + <item>200</item> + <item>240</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. + 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_autoBrightnessButtonBacklightValues"> + </integer-array> + + <bool name="config_deviceHasVariableButtonBrightness">true</bool> + + <!-- 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">1</integer> + + <!-- Default screen brightness setting. + Must be in the range specified by minimum and maximum. --> + <integer name="config_screenBrightnessSettingDefault">128</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">2000</integer> + + <!-- The maximum range of gamma adjustment possible using the screen + auto-brightness adjustment setting. --> + <fraction name="config_autoBrightnessAdjustmentMaxGamma">200%</fraction> + + <!-- Period of time in which to consider light samples in milliseconds. --> + <integer name="config_autoBrightnessAmbientLightHorizon">5000</integer> + <!-- Hardware keys present on the device, stored as a bit field. This integer should equal the sum of the corresponding value for each of the following keys present: |
