aboutsummaryrefslogtreecommitdiff
path: root/rro_overlays/SystemUIOverlayVeux/res/values
diff options
context:
space:
mode:
authorTheScarastic <warabhishek@gmail.com>2022-06-27 22:24:41 -0300
committersinanmohd <pcmsinan@gmail.com>2023-01-05 21:30:23 +0530
commit6234208f5f2f3ea043960089f636e1ef963e5a69 (patch)
tree6a3ffb10f430e768230504b9e13302bb069e9e75 /rro_overlays/SystemUIOverlayVeux/res/values
parenta3cdae499945c3019f6f0ba602ba9cf7f42d0e48 (diff)
veux: 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.
Diffstat (limited to 'rro_overlays/SystemUIOverlayVeux/res/values')
-rw-r--r--rro_overlays/SystemUIOverlayVeux/res/values/config.xml28
1 files changed, 28 insertions, 0 deletions
diff --git a/rro_overlays/SystemUIOverlayVeux/res/values/config.xml b/rro_overlays/SystemUIOverlayVeux/res/values/config.xml
index 221511c..339531d 100644
--- a/rro_overlays/SystemUIOverlayVeux/res/values/config.xml
+++ b/rro_overlays/SystemUIOverlayVeux/res/values/config.xml
@@ -53,5 +53,33 @@
<!-- Flag to turn on the rendering of the above path or not -->
<bool name="config_enableDisplayCutoutProtection">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>