sm8350-common: overlay: Add support for doze auto brightness

Based on observing it's values, xiaomi.sensor.aod reports
the following events:

4.0: Bright environment
5.0: Dark environment

Change-Id: Ie589066bd860a7fed3989092c21aee73686ecea4
Signed-off-by: Arian <arian.kulmer@web.de>
This commit is contained in:
TheScarastic 2020-01-14 12:44:16 +00:00 committed by Arian
parent 5a9786b385
commit 3427df5cfe

View File

@ -25,4 +25,33 @@
<!-- Doze: does this device support STATE_DOZE_SUSPEND? --> <!-- Doze: does this device support STATE_DOZE_SUSPEND? -->
<bool name="doze_suspend_display_state_supported">false</bool> <bool name="doze_suspend_display_state_supported">false</bool>
<!-- Type of a sensor that provides a low-power estimate of the desired display
brightness, suitable to listen to while the device is asleep (e.g. during
always-on display) -->
<string name="doze_brightness_sensor_type" translatable="false">xiaomi.sensor.aod</string>
<!-- Doze: Table that translates sensor values from the doze_brightness_sensor_type sensor
to brightness values; -1 means keeping the current brightness. -->
<integer-array name="config_doze_brightness_sensor_to_brightness">
<item>-1</item> <!-- 0.0: Never used -->
<item>-1</item> <!-- 1.0: Never used -->
<item>-1</item> <!-- 2.0: Never used -->
<item>-1</item> <!-- 3.0: Never used -->
<item>24</item> <!-- 4.0: Bright environment -->
<item>4</item> <!-- 5.0: Dark environment -->
</integer-array>
<!-- Doze: Table that translates sensor values from the doze_brightness_sensor_type sensor
to an opacity value for a black scrim that is overlayed in AOD1.
Valid range is from 0 (transparent) to 255 (opaque).
-1 means keeping the current opacity. -->
<integer-array name="config_doze_brightness_sensor_to_scrim_opacity">
<item>-1</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
<item>0</item>
</integer-array>
</resources> </resources>