mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_stone
synced 2026-01-27 17:18:49 +00:00
sm6375-common: overlay: Add support for doze auto brightness
- Based on observing it's values, xiaomi.sensor.aod reports the following events: 3.0: Dark environment 4.0: Bright environment 5.0: Switched from bright to dark environment 3.0 does not seem to be triggered anymore after bright environment has been reported. - Enable brightness buckets in doze to disable animation between the brightness levels. Change-Id: Iab922114462152cad2143502dabd4d6dacd98db9
This commit is contained in:
committed by
Ramii Ahmed
parent
f9b534c1a3
commit
83d75caf76
@@ -31,4 +31,33 @@
|
||||
vibrator is capable of subtle vibrations -->
|
||||
<bool name="config_vibrateOnIconAnimation">true</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>
|
||||
<item>-1</item>
|
||||
<item>-1</item>
|
||||
<item>1</item>
|
||||
<item>255</item>
|
||||
<item>1</item>
|
||||
</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>
|
||||
|
||||
Reference in New Issue
Block a user