mirror of
https://github.com/Evolution-X-Devices/device_xiaomi_rosemary
synced 2026-01-27 13:35:09 +00:00
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>
42 lines
1.9 KiB
XML
42 lines
1.9 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!--
|
|
Copyright (C) 2023 The LineageOS Project
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
-->
|
|
|
|
<!-- These resources are around just to allow their values to be customized
|
|
for different hardware and product builds. Do not translate.
|
|
|
|
NOTE: The naming convention is "config_camelCaseValue". Some legacy
|
|
entries do not follow the convention, but all new entries should. -->
|
|
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
|
<!-- 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> |