mirror of
https://github.com/Anything-at-25-00/android_device_tecno_LG8n.git
synced 2024-11-26 07:26:26 -08:00
Shirayuki39
9f285c4a05
Co-authored-by: dodyirawan85 <dev.irawans@gmail.com> Signed-off-by: Shirayuki39 <lorddemecrius83@proton.me>
165 lines
8 KiB
XML
165 lines
8 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright (C) 2024 Shirayuki39@FairDevicesFOSS
|
|
SPDX-License-Identifier: Apache-2.0
|
|
-->
|
|
<resources>
|
|
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
|
|
Software implementation will be used if config_hardware_auto_brightness_available is not set -->
|
|
<bool name="config_automatic_brightness_available">true</bool>
|
|
|
|
<!-- Array of desired screen brightness in nits corresponding to the lux values
|
|
in the config_autoBrightnessLevels array. The display brightness is defined as the measured
|
|
brightness of an all-white image.
|
|
|
|
If this is defined then:
|
|
- config_autoBrightnessLcdBacklightValues should not be defined
|
|
- config_screenBrightnessNits must be defined
|
|
- config_screenBrightnessBacklight must be defined
|
|
|
|
This array should have size one greater than the size of the config_autoBrightnessLevels
|
|
array. The brightness values must be non-negative and non-decreasing. This must be
|
|
overridden in platform specific overlays -->
|
|
<integer-array name="config_autoBrightnessLcdBacklightValues">
|
|
<item>8</item>
|
|
<item>64</item>
|
|
<item>98</item>
|
|
<item>104</item>
|
|
<item>110</item>
|
|
<item>116</item>
|
|
<item>122</item>
|
|
<item>128</item>
|
|
<item>134</item>
|
|
<item>182</item>
|
|
<item>255</item>
|
|
<item>255</item>
|
|
<item>255</item>
|
|
<item>255</item>
|
|
<item>255</item>
|
|
<item>255</item>
|
|
<item>255</item>
|
|
<item>255</item>
|
|
</integer-array>
|
|
|
|
<!-- Array of light sensor lux values to define our levels for auto backlight brightness
|
|
support.
|
|
The N entries of this array define N + 1 control points as follows:
|
|
(1-based arrays)
|
|
|
|
Point 1: (0, value[1]): lux <= 0
|
|
Point 2: (level[1], value[2]): 0 < lux <= level[1]
|
|
Point 3: (level[2], value[3]): level[2] < lux <= level[3]
|
|
...
|
|
Point N+1: (level[N], value[N+1]): level[N] < lux
|
|
|
|
The control points must be strictly increasing. Each control point
|
|
corresponds to an entry in the brightness backlight values arrays.
|
|
For example, if lux == level[1] (first element of the levels array)
|
|
then the brightness will be determined by value[2] (second element
|
|
of the brightness values array).
|
|
|
|
Spline interpolation is used to determine the auto-brightness
|
|
backlight values for lux levels between these control points.
|
|
|
|
Must be overridden in platform specific overlays -->
|
|
<integer-array name="config_autoBrightnessLevels">
|
|
<item>128</item>
|
|
<item>256</item>
|
|
<item>384</item>
|
|
<item>512</item>
|
|
<item>640</item>
|
|
<item>768</item>
|
|
<item>896</item>
|
|
<item>1024</item>
|
|
<item>2048</item>
|
|
<item>4096</item>
|
|
<item>6144</item>
|
|
<item>8192</item>
|
|
<item>10240</item>
|
|
<item>12288</item>
|
|
<item>14336</item>
|
|
<item>16384</item>
|
|
<item>18432</item>
|
|
</integer-array>
|
|
|
|
<!-- Minimum screen brightness setting allowed by power manager.
|
|
The user is forbidden from setting the brightness below this level. -->
|
|
<item type="dimen" name="config_screenBrightnessSettingMinimumFloat">0.003921569</item>
|
|
|
|
<!-- Maximum screen brightness allowed by the power manager.
|
|
The user is forbidden from setting the brightness above this level. -->
|
|
<item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">1.0</item>
|
|
|
|
<!-- Default screen brightness setting
|
|
Must be in the range specified by minimum and maximum. -->
|
|
<item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.4</item>
|
|
|
|
<!-- Stability requirements in milliseconds for accepting a new brightness level. This is used
|
|
for debouncing the light sensor. Different constants are used to debounce the light sensor
|
|
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">2000</integer>
|
|
<integer name="config_autoBrightnessDarkeningLightDebounce">3000</integer>
|
|
|
|
<!-- Light sensor event rate in milliseconds for automatic brightness control. -->
|
|
<integer name="config_autoBrightnessLightSensorRate">250</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
|
|
{@link android.util.PathParser}.
|
|
The path is assumed to be specified in display coordinates with pixel units and in
|
|
the display's native orientation, with the origin of the coordinate system at the
|
|
center top of the display. Optionally, you can append either `@left` or `@right` to the
|
|
end of the path string, in order to change the path origin to either the top left,
|
|
or top right of the display.
|
|
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
|
|
appended after the path string to interpret coordinates in dp instead of px units.
|
|
Note that a physical cutout should be configured in pixels for the best results.
|
|
Example for a 10px x 10px square top-center cutout:
|
|
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z</string>
|
|
Example for a 10dp x 10dp square top-center cutout:
|
|
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z @dp</string>
|
|
@see https://www.w3.org/TR/SVG/paths.html#PathData
|
|
-->
|
|
<string name="config_mainBuiltInDisplayCutout">M -24,0 L -24,36 L 24,36 L 24,0 Z @dp</string>
|
|
|
|
<!-- Whether the display cutout region of the main built-in display should be forced to
|
|
black in software (to avoid aliasing or emulate a cutout that is not physically existent).
|
|
-->
|
|
<bool name="config_fillMainBuiltInDisplayCutout">false</bool>
|
|
|
|
<!-- The default refresh rate for a given device. Change this value to set a higher default
|
|
refresh rate. If the hardware composer on the device supports display modes with a higher
|
|
refresh rate than the default value specified here, the framework may use those higher
|
|
refresh rate modes if an app chooses one by setting preferredDisplayModeId or calling
|
|
setFrameRate().
|
|
If a non-zero value is set for config_defaultPeakRefreshRate, then
|
|
config_defaultRefreshRate may be set to 0, in which case the value set for
|
|
config_defaultPeakRefreshRate will act as the default frame rate. -->
|
|
<integer name="config_defaultRefreshRate">0</integer>
|
|
|
|
<!-- The default peak refresh rate for a given device. Change this value if you want to prevent
|
|
the framework from using higher refresh rates, even if display modes with higher refresh
|
|
rates are available from hardware composer. Only has an effect if the value is
|
|
non-zero. -->
|
|
<integer name="config_defaultPeakRefreshRate">90</integer>
|
|
|
|
<!-- Indicates whether device has a power button fingerprint sensor. -->
|
|
<bool name="config_is_powerbutton_fps">true</bool>
|
|
|
|
<!-- An array of arrays of side fingerprint sensor properties relative to each display.
|
|
Note: this value is temporary and is expected to be queried directly
|
|
from the HAL in the future. -->
|
|
<array name="config_sfps_sensor_props" translatable="false">
|
|
<item>@array/config_sfps_sensor_props_0</item>
|
|
</array>
|
|
|
|
<array name="config_sfps_sensor_props_0" translatable="false">
|
|
<item></item> <!-- displayId -->
|
|
<item>1080</item> <!-- sensorLocationX -->
|
|
<item>1050</item> <!-- sensorLocationY -->
|
|
<item>210</item> <!-- sensorRadius -->
|
|
</array>
|
|
</resources>
|