diff options
| author | Kenny Guy <kennyguy@google.com> | 2018-04-03 16:53:50 +0100 |
|---|---|---|
| committer | Kenny Guy <kennyguy@google.com> | 2018-04-03 16:53:50 +0100 |
| commit | 8506d3da37f80637f490aa412ac0f5ebd1cb2141 (patch) | |
| tree | 629135ce39194256f79817aa7583d18d4254b03a /sailfish | |
| parent | 7b8e15e28d1f3dbd9127103f9d7841cccdf8d088 (diff) | |
Update brightness curves for marlin / sailfish
Update brightness curves using curves from
https://cs.corp.google.com/piper///depot/google3/java/com/google/android/libraries/smartbattery/brightness/model/DeviceCurves.java
Sampled at integer log values from 0 to 5000.
Bug: 74386763
Test: Manual, flash device, adb shell dumpsys display and check brightness config.
Test: try phone near window and in dark area check brightness is reasonable.
Test: Push zebedee curve, check curve is the same as built in version.
Change-Id: I8a488d8585b130dee317b3144b2b18cf6752ff0a
Diffstat (limited to 'sailfish')
| -rw-r--r-- | sailfish/overlay/frameworks/base/core/res/res/values/config.xml | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/sailfish/overlay/frameworks/base/core/res/res/values/config.xml b/sailfish/overlay/frameworks/base/core/res/res/values/config.xml index e6517080..fba05176 100644 --- a/sailfish/overlay/frameworks/base/core/res/res/values/config.xml +++ b/sailfish/overlay/frameworks/base/core/res/res/values/config.xml @@ -29,4 +29,70 @@ <!-- Default screen brightness for VR setting. Default value: 0x58 => 88. --> <integer name="config_screenBrightnessForVrSettingDefault">88</integer> + <!-- 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>2</item> + <item>3</item> + <item>4</item> + <item>8</item> + <item>12</item> + <item>20</item> + <item>33</item> + <item>55</item> + <item>90</item> + <item>148</item> + <item>245</item> + <item>403</item> + <item>665</item> + <item>1097</item> + <item>1808</item> + <item>2981</item> + <item>5000</item> + </integer-array> + + <!-- Array of desired screen brightness in nits corresponding to the lux values + in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and + config_screenBrightnessMaximumNits, the display brightness is defined as the measured + brightness of an all-white image. + + If this is defined then: + - config_autoBrightnessLcdBacklightValues should not be defined + - config_screenBrightnessNits must be defined + - config_screenBrightnessBacklight must be defined + + This array should have size one greater than the size of the config_autoBrightnessLevels + array. The brightness values must be non-negative and non-decreasing. This must be + overridden in platform specific overlays --> + <array name="config_autoBrightnessDisplayValuesNits"> + <item>12.13185</item> <!-- 0-1 --> + <item>25.56824</item> <!-- 1-2 --> + <item>30.037292</item> <!-- 2-3 --> + <item>33.05888</item> <!-- 3-4 --> + <item>35.40135</item> <!-- 4-8 --> + <item>41.798496</item> <!-- 8-12 --> + <item>46.034</item> <!-- 12-20 --> + <item>51.96499</item> <!-- 20-33 --> + <item>58.488487</item> <!-- 33-55 --> + <item>66.69877</item> <!-- 55-90 --> + <item>76.42568</item> <!-- 90-148 --> + <item>88.60913</item> <!-- 148-245 --> + <item>105.12556</item> <!-- 245-403 --> + <item>127.29556</item> <!-- 403-665 --> + <item>158.43834</item> <!-- 665-1097 --> + <item>206.0883</item> <!-- 1097-1808 --> + <item>261.9702</item> <!-- 1808-2981 --> + <item>325.19897</item> <!-- 2981-5000 --> + <item>395.4899</item> <!-- 5000+ --> + </array> + </resources> |
