dubai: Modify automatic brightness values

The values extracted from Stock ROM are quite dim on average and the minimum brightness is low,
So let's remove the three minimum light sensor values on config_autoBrightnessLevels and the
bottom four values and then add another value near max on config_autoBrightnessDisplayValuesNits
to help increase the minimum brightness and also bump up the values for the other automatic
brightness values.

While we're at it, we shall also raise the values for DarkeningLightDebounce and
BrighteningDebounce overlays so that it takes a lot longer before our device decides to actually
lower the brightness to prevent super jarring brightness changes.

Change-Id: Iacafa69d1e27b5201d98a832305c9afc5f228dd3
This commit is contained in:
Marc Bourgoin 2022-12-30 20:25:49 -07:00
parent a664d326c3
commit 4a3a76f061

View file

@ -25,9 +25,6 @@
Must be overridden in platform specific overlays -->
<array name="config_autoBrightnessLevels">
<item>2</item>
<item>4</item>
<item>5</item>
<item>10</item>
<item>40</item>
<item>100</item>
@ -51,16 +48,13 @@
array. The brightness values must be non-negative and non-decreasing. This must be
overridden in platform specific overlays -->
<array name="config_autoBrightnessDisplayValuesNits">
<item>2</item>
<item>7</item>
<item>10</item>
<item>12</item>
<item>24</item>
<item>95</item>
<item>111</item>
<item>149</item>
<item>192</item>
<item>252</item>
<item>376</item>
<item>500</item>
</array>
@ -110,8 +104,8 @@
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">500</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">500</integer>
<integer name="config_autoBrightnessBrighteningLightDebounce">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">5000</integer>
<!-- The bounding path of the cutout region of the main built-in display.
Must either be empty if there is no cutout region, or a string that is parsable by