2022-02-18 18:54:07 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
|
<!--
|
2025-03-03 09:18:20 -05:00
|
|
|
SPDX-FileCopyrightText: The LineageOS Project
|
2022-02-18 18:54:07 -05:00
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
-->
|
|
|
|
|
<resources>
|
2025-02-26 02:09:27 -05:00
|
|
|
<!-- Vibrator pattern for feedback about a long screen/key press -->
|
|
|
|
|
<integer-array name="config_longPressVibePattern">
|
|
|
|
|
<item>0</item>
|
2025-02-22 16:44:06 -05:00
|
|
|
<item>60</item>
|
2025-02-26 02:09:27 -05:00
|
|
|
</integer-array>
|
|
|
|
|
|
|
|
|
|
<!-- Vibrator pattern for feedback about touching a virtual key -->
|
|
|
|
|
<integer-array name="config_virtualKeyVibePattern">
|
|
|
|
|
<item>0</item>
|
2025-05-13 13:46:37 -04:00
|
|
|
<item>30</item>
|
2025-02-26 02:09:27 -05:00
|
|
|
</integer-array>
|
|
|
|
|
|
2025-02-22 16:44:06 -05:00
|
|
|
<!-- Vibrator pattern for feedback when selecting an hour/minute tick of a Clock -->
|
|
|
|
|
<integer-array name="config_clockTickVibePattern">
|
2025-05-13 13:46:37 -04:00
|
|
|
<item>125</item>
|
|
|
|
|
<item>30</item>
|
2025-02-26 02:09:27 -05:00
|
|
|
</integer-array>
|
|
|
|
|
|
2025-02-22 16:44:06 -05:00
|
|
|
<!-- Minimum screen brightness setting allowed by power manager.
|
|
|
|
|
-2 is invalid so setting will resort to int value specified above.
|
|
|
|
|
Set this to 0.0 to allow screen to go to minimal brightness.
|
|
|
|
|
The user is forbidden from setting the brightness below this level. -->
|
|
|
|
|
<item name="config_screenBrightnessSettingMinimumFloat" type="dimen">0.03418803</item>
|
|
|
|
|
|
|
|
|
|
<!-- Default screen brightness setting set.
|
|
|
|
|
-2 is invalid so setting will resort to int value specified above.
|
|
|
|
|
Must be in the range specified by minimum and maximum. -->
|
|
|
|
|
<item name="config_screenBrightnessSettingDefaultFloat" type="dimen">0.42911446</item>
|
2025-02-26 02:09:27 -05:00
|
|
|
|
|
|
|
|
<!-- 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">500</integer>
|
|
|
|
|
<integer name="config_autoBrightnessDarkeningLightDebounce">500</integer>
|
|
|
|
|
|
|
|
|
|
<!-- Screen brightness used to dim the screen when the user activity
|
|
|
|
|
timeout expires. May be less than the minimum allowed brightness setting
|
|
|
|
|
that can be set by the user. -->
|
2025-02-22 16:44:06 -05:00
|
|
|
<item name="config_screenBrightnessDimFloat" type="dimen">0.03418803</item>
|
2025-02-26 02:09:27 -05:00
|
|
|
|
|
|
|
|
<!-- Array of light sensor lux values to define our levels for auto backlight brightness support.
|
2022-02-18 18:54:07 -05:00
|
|
|
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.
|
2025-02-26 02:09:27 -05:00
|
|
|
For example, if lux == level[1] (first element of the levels array)
|
2022-02-18 18:54:07 -05:00
|
|
|
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
|
2025-02-26 02:09:27 -05:00
|
|
|
backlight values for lux levels between these control points.
|
2022-02-18 18:54:07 -05:00
|
|
|
|
|
|
|
|
Must be overridden in platform specific overlays -->
|
2025-02-26 02:09:27 -05:00
|
|
|
<integer-array name="config_autoBrightnessLevels">
|
2023-04-01 10:08:59 -04:00
|
|
|
<item>2</item>
|
|
|
|
|
<item>4</item>
|
|
|
|
|
<item>5</item>
|
2022-02-18 18:54:07 -05:00
|
|
|
<item>10</item>
|
|
|
|
|
<item>40</item>
|
|
|
|
|
<item>100</item>
|
|
|
|
|
<item>325</item>
|
|
|
|
|
<item>1250</item>
|
|
|
|
|
<item>3500</item>
|
|
|
|
|
<item>5500</item>
|
2025-02-26 02:09:27 -05:00
|
|
|
</integer-array>
|
2022-02-18 18:54:07 -05:00
|
|
|
|
|
|
|
|
<!-- Array of desired screen brightness in nits corresponding to the lux values
|
2025-02-26 02:09:27 -05:00
|
|
|
in the config_autoBrightnessLevels array. The display brightness is defined as the measured
|
2022-02-18 18:54:07 -05:00
|
|
|
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 -->
|
2025-02-26 02:09:27 -05:00
|
|
|
<integer-array name="config_autoBrightnessDisplayValuesNits">
|
2025-05-13 13:46:37 -04:00
|
|
|
<item>2</item>
|
2023-04-01 10:08:59 -04:00
|
|
|
<item>7</item>
|
|
|
|
|
<item>10</item>
|
|
|
|
|
<item>12</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
<item>24</item>
|
|
|
|
|
<item>95</item>
|
|
|
|
|
<item>111</item>
|
|
|
|
|
<item>149</item>
|
|
|
|
|
<item>192</item>
|
2025-05-13 13:46:37 -04:00
|
|
|
<item>252</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
<item>500</item>
|
2025-02-26 02:09:27 -05:00
|
|
|
</integer-array>
|
2022-02-18 18:54:07 -05:00
|
|
|
|
|
|
|
|
<!-- An array describing the screen's backlight values corresponding to the brightness
|
|
|
|
|
values in the config_screenBrightnessNits array.
|
|
|
|
|
|
|
|
|
|
This array should be equal in size to config_screenBrightnessBacklight. -->
|
2025-02-26 02:09:27 -05:00
|
|
|
<integer-array name="config_screenBrightnessBacklight">
|
2025-05-13 13:46:37 -04:00
|
|
|
<item>0</item>
|
|
|
|
|
<item>1</item>
|
|
|
|
|
<item>4</item>
|
|
|
|
|
<item>5</item>
|
|
|
|
|
<item>6</item>
|
|
|
|
|
<item>12</item>
|
|
|
|
|
<item>48</item>
|
|
|
|
|
<item>57</item>
|
|
|
|
|
<item>76</item>
|
|
|
|
|
<item>98</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
<item>129</item>
|
2022-02-18 18:54:07 -05:00
|
|
|
<item>255</item>
|
2025-02-26 02:09:27 -05:00
|
|
|
</integer-array>
|
2022-02-18 18:54:07 -05:00
|
|
|
|
|
|
|
|
<!-- An array of floats describing the screen brightness in nits corresponding to the backlight
|
|
|
|
|
values in the config_screenBrightnessBacklight array. On OLED displays these values
|
|
|
|
|
should be measured with an all white image while the display is in the fully on state.
|
|
|
|
|
Note that this value should *not* reflect the maximum brightness value for any high
|
|
|
|
|
brightness modes but only the maximum brightness value obtainable in a sustainable manner.
|
|
|
|
|
|
|
|
|
|
This array should be equal in size to config_screenBrightnessBacklight -->
|
2025-02-26 02:09:27 -05:00
|
|
|
<integer-array name="config_screenBrightnessNits">
|
2025-05-13 13:46:37 -04:00
|
|
|
<item>0</item>
|
|
|
|
|
<item>2</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
<item>7</item>
|
2022-08-03 23:26:21 -04:00
|
|
|
<item>10</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
<item>12</item>
|
|
|
|
|
<item>24</item>
|
|
|
|
|
<item>95</item>
|
|
|
|
|
<item>111</item>
|
|
|
|
|
<item>149</item>
|
|
|
|
|
<item>192</item>
|
2025-05-13 13:46:37 -04:00
|
|
|
<item>252</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
<item>500</item>
|
2025-02-26 02:09:27 -05:00
|
|
|
</integer-array>
|
2022-02-18 18:54:07 -05:00
|
|
|
|
2025-02-26 02:09:27 -05:00
|
|
|
<!-- MMS user agent string -->
|
2025-05-10 05:48:08 -04:00
|
|
|
<string name="config_mms_user_agent" translatable="false">motog825g</string>
|
2025-02-26 02:09:27 -05:00
|
|
|
|
|
|
|
|
<!-- MMS user agent prolfile url -->
|
|
|
|
|
<string name="config_mms_user_agent_profile_url" translatable="false">http://uaprof.motorola.com/phoneconfig/motov1/Profile/motov1.rdf</string>
|
|
|
|
|
|
|
|
|
|
<!-- Type of the double tap sensor. Empty if double tap is not supported. -->
|
|
|
|
|
<string name="config_dozeDoubleTapSensorType" translatable="false">org.lineageos.sensor.double_tap</string>
|
|
|
|
|
|
|
|
|
|
<!-- Control whether the always on display mode is available. This should only be enabled on
|
|
|
|
|
devices where the display has been tuned to be power efficient in DOZE and/or DOZE_SUSPEND
|
|
|
|
|
states. -->
|
|
|
|
|
<bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
|
|
|
|
|
|
|
|
|
|
<!-- Control whether the always on display mode is enabled by default. This value will be used
|
|
|
|
|
during initialization when the setting is still null. -->
|
|
|
|
|
<bool name="config_dozeAlwaysOnEnabled">false</bool>
|
|
|
|
|
|
2022-02-18 18:54:07 -05:00
|
|
|
<!-- 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.
|
|
|
|
|
|
2025-02-26 02:09:27 -05:00
|
|
|
If the display supports multiple resolutions, please define the path config based on the
|
|
|
|
|
highest resolution so that it can be scaled correctly in each resolution.
|
|
|
|
|
|
2022-02-18 18:54:07 -05:00
|
|
|
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
|
|
|
|
|
-->
|
2024-11-08 12:39:39 -05:00
|
|
|
<string name="config_mainBuiltInDisplayCutout" translatable="false">
|
2025-05-13 13:46:37 -04:00
|
|
|
M -34,0
|
|
|
|
|
L -34,100
|
|
|
|
|
L 34,100
|
|
|
|
|
L 34,0
|
2024-11-08 12:39:39 -05:00
|
|
|
Z
|
|
|
|
|
</string>
|
|
|
|
|
|
2025-05-13 13:46:37 -04:00
|
|
|
<!-- List of biometric sensors on the device, in decreasing strength. Consumed by AuthService
|
|
|
|
|
when registering authenticators with BiometricService. Format must be ID:Modality:Strength,
|
|
|
|
|
where: IDs are unique per device, Modality as defined in BiometricAuthenticator.java,
|
|
|
|
|
and Strength as defined in Authenticators.java -->
|
|
|
|
|
<string-array name="config_biometric_sensors" translatable="false">
|
|
|
|
|
<item>0:2:15</item> <!-- ID0:Fingerprint:Strong -->
|
|
|
|
|
</string-array>
|
2024-11-08 12:39:39 -05:00
|
|
|
|
2025-05-13 13:46:37 -04:00
|
|
|
<!-- 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>local:4630947043778501761</item> <!--item>displayId</item-->
|
|
|
|
|
<item>1080</item> <!--item>sensorLocationX</item-->
|
|
|
|
|
<item>815</item> <!--item>sensorLocationY</item-->
|
|
|
|
|
<item>200</item> <!--item>sensorRadius</item-->
|
|
|
|
|
</array>
|
|
|
|
|
|
|
|
|
|
<!-- Indicates whether device has a power button fingerprint sensor. -->
|
|
|
|
|
<bool name="config_is_powerbutton_fps" translatable="false">true</bool>
|
2022-02-21 11:42:23 -05:00
|
|
|
|
2025-02-22 16:44:06 -05:00
|
|
|
<!-- 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">120</integer>
|
|
|
|
|
|
|
|
|
|
<!-- Low zone brightness thresholds in the range [0, 255] -->
|
|
|
|
|
<integer-array name="config_brightnessThresholdsOfPeakRefreshRate" translatable="false">
|
2025-05-13 13:46:37 -04:00
|
|
|
<item>72</item>
|
2025-02-22 16:44:06 -05:00
|
|
|
</integer-array>
|
|
|
|
|
|
|
|
|
|
<!-- Low zone lux thresholds -->
|
|
|
|
|
<integer-array name="config_ambientThresholdsOfPeakRefreshRate" translatable="false">
|
|
|
|
|
<item>-1</item>
|
|
|
|
|
</integer-array>
|
|
|
|
|
|
|
|
|
|
<!-- Default refresh rate in the zone defined by brightness and ambient thresholds.
|
|
|
|
|
If non-positive, then the refresh rate is unchanged even if thresholds are configured. -->
|
2025-05-13 13:46:37 -04:00
|
|
|
<integer name="config_defaultRefreshRateInZone">120</integer>
|
2022-02-18 18:54:07 -05:00
|
|
|
</resources>
|