2022-02-18 18:54:07 -05:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<!--
|
|
|
|
Copyright (C) 2022 The LineageOS Project
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
-->
|
|
|
|
<resources>
|
|
|
|
<!-- 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 -->
|
2022-09-04 09:31:06 -04:00
|
|
|
<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>
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>10000</item>
|
|
|
|
<item>50000</item>
|
|
|
|
<item>120000</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
</array>
|
2022-02-18 18:54:07 -05:00
|
|
|
|
|
|
|
<!-- Array of desired screen brightness in nits corresponding to the lux values
|
|
|
|
in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and
|
|
|
|
config_screenBrightnessMaximumNits, 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 -->
|
|
|
|
<array name="config_autoBrightnessDisplayValuesNits">
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>3</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>
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>325</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
<item>500</item>
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>700</item>
|
|
|
|
<item>800</item>
|
|
|
|
<item>1000</item>
|
2022-02-18 18:54:07 -05:00
|
|
|
</array>
|
|
|
|
|
|
|
|
<!-- 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. -->
|
2022-09-04 09:31:06 -04:00
|
|
|
<array name="config_screenBrightnessBacklight">
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>9</item>
|
|
|
|
<item>27</item>
|
|
|
|
<item>35</item>
|
|
|
|
<item>38</item>
|
|
|
|
<item>55</item>
|
|
|
|
<item>106</item>
|
|
|
|
<item>113</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
<item>129</item>
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>147</item>
|
|
|
|
<item>183</item>
|
|
|
|
<item>228</item>
|
|
|
|
<item>239</item>
|
|
|
|
<item>244</item>
|
2022-02-18 18:54:07 -05:00
|
|
|
<item>255</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
</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 -->
|
|
|
|
<array name="config_screenBrightnessNits">
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>3</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>
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>325</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
<item>500</item>
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>700</item>
|
|
|
|
<item>800</item>
|
|
|
|
<item>1000</item>
|
2022-02-18 18:54:07 -05:00
|
|
|
</array>
|
|
|
|
|
2022-02-21 11:42:23 -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. -->
|
2023-04-01 10:08:59 -04:00
|
|
|
<integer name="config_autoBrightnessBrighteningLightDebounce">500</integer>
|
|
|
|
<integer name="config_autoBrightnessDarkeningLightDebounce">500</integer>
|
2022-02-21 11:42:23 -05:00
|
|
|
|
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.
|
|
|
|
|
|
|
|
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
|
|
|
|
-->
|
2022-02-21 11:42:23 -05:00
|
|
|
<string translatable="false" name="config_mainBuiltInDisplayCutout">
|
2024-07-03 03:26:42 -04:00
|
|
|
M -38,0
|
|
|
|
L 38,0
|
|
|
|
L 38,106
|
|
|
|
L -38,106
|
|
|
|
Z
|
2022-02-21 11:42:23 -05:00
|
|
|
</string>
|
|
|
|
|
|
|
|
<!-- Indicate whether to allow the device to suspend when the screen is off
|
2022-02-18 18:54:07 -05:00
|
|
|
due to the proximity sensor. This resource should only be set to true
|
|
|
|
if the sensor HAL correctly handles the proximity sensor as a wake-up source.
|
|
|
|
Otherwise, the device may fail to wake out of suspend reliably.
|
|
|
|
The default is false. -->
|
|
|
|
<bool name="config_suspendWhenScreenOffDueToProximity">true</bool>
|
|
|
|
|
|
|
|
<!-- Power Management: Specifies whether to decouple the auto-suspend state of the
|
|
|
|
device from the display on/off state.
|
|
|
|
|
|
|
|
When false, autosuspend_disable() will be called before the display is turned on
|
|
|
|
and autosuspend_enable() will be called after the display is turned off.
|
|
|
|
This mode provides best compatibility for devices using legacy power management
|
|
|
|
features such as early suspend / late resume.
|
|
|
|
|
|
|
|
When true, autosuspend_display() and autosuspend_enable() will be called
|
|
|
|
independently of whether the display is being turned on or off. This mode
|
|
|
|
enables the power manager to suspend the application processor while the
|
|
|
|
display is on.
|
|
|
|
|
|
|
|
This resource should be set to "true" when a doze component has been specified
|
|
|
|
to maximize power savings but not all devices support it.
|
|
|
|
|
|
|
|
Refer to autosuspend.h for details.
|
|
|
|
-->
|
|
|
|
<bool name="config_powerDecoupleAutoSuspendModeFromDisplay">true</bool>
|
|
|
|
|
2022-09-15 13:34:13 -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 -->
|
|
|
|
<array name="config_biometric_sensors" translatable="false" >
|
|
|
|
<item>0:2:15</item> <!-- ID0:Fingerprint:Strong -->
|
|
|
|
</array>
|
|
|
|
|
2022-02-18 18:54:07 -05:00
|
|
|
<!-- Power Management: Specifies whether to decouple the interactive state of the
|
|
|
|
device from the display on/off state.
|
|
|
|
|
|
|
|
When false, setInteractive(..., true) will be called before the display is turned on
|
|
|
|
and setInteractive(..., false) will be called after the display is turned off.
|
|
|
|
This mode provides best compatibility for devices that expect the interactive
|
|
|
|
state to be tied to the display state.
|
|
|
|
|
|
|
|
When true, setInteractive(...) will be called independently of whether the display
|
|
|
|
is being turned on or off. This mode enables the power manager to reduce
|
|
|
|
clocks and disable the touch controller while the display is on.
|
|
|
|
|
|
|
|
This resource should be set to "true" when a doze component has been specified
|
|
|
|
to maximize power savings but not all devices support it.
|
|
|
|
|
|
|
|
Refer to power.h for details.
|
|
|
|
-->
|
|
|
|
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
|
|
|
|
|
2022-08-25 23:28:46 -04:00
|
|
|
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
|
|
|
|
<integer-array name="config_udfps_sensor_props" translatable="false" >
|
|
|
|
<item>540</item> <!-- sensorLocationX -->
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>2168</item> <!-- sensorLocationY -->
|
2022-08-25 23:28:46 -04:00
|
|
|
<item>91</item> <!-- sensorRadius -->
|
|
|
|
</integer-array>
|
|
|
|
|
2022-02-18 18:54:07 -05:00
|
|
|
<!-- 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. -->
|
2024-08-06 14:13:30 -04:00
|
|
|
<item name="config_screenBrightnessDimFloat" format="float" type="dimen">0.03418803</item>
|
2022-02-18 18:54:07 -05:00
|
|
|
|
|
|
|
<!-- Minimum screen brightness setting allowed by the power manager.
|
|
|
|
The user is forbidden from setting the brightness below this level. -->
|
2024-08-06 14:13:30 -04:00
|
|
|
<item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.03418803</item>
|
|
|
|
|
|
|
|
<!-- 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. -->
|
|
|
|
<integer name="config_defaultRefreshRateInZone">90</integer>
|
|
|
|
|
|
|
|
<!-- 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" format="float" type="dimen">0.42911446</item>
|
2022-02-18 18:54:07 -05:00
|
|
|
|
|
|
|
<!-- Vibrator pattern for feedback about a long screen/key press -->
|
2022-09-04 09:31:06 -04:00
|
|
|
<array name="config_longPressVibePattern">
|
2022-02-18 18:54:07 -05:00
|
|
|
<item>0</item>
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>60</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
</array>
|
2022-02-18 18:54:07 -05:00
|
|
|
|
|
|
|
<!-- Vibrator pattern for feedback about touching a virtual key -->
|
2022-09-04 09:31:06 -04:00
|
|
|
<array name="config_virtualKeyVibePattern">
|
2022-02-18 18:54:07 -05:00
|
|
|
<item>0</item>
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>50</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
</array>
|
2022-02-18 18:54:07 -05:00
|
|
|
|
|
|
|
<!-- Vibrator pattern for feedback about booting with safe mode enabled -->
|
2024-07-03 03:26:42 -04:00
|
|
|
<array name="config_clockTickVibePattern">
|
2022-02-18 18:54:07 -05:00
|
|
|
<item>0</item>
|
2024-07-03 03:26:42 -04:00
|
|
|
<item>40</item>
|
2022-09-04 09:31:06 -04:00
|
|
|
</array>
|
2022-02-18 18:54:07 -05:00
|
|
|
|
2022-02-20 12:22:08 -05:00
|
|
|
<!-- ComponentName of a dream to show whenever the system would otherwise have
|
|
|
|
gone to sleep. When the PowerManager is asked to go to sleep, it will instead
|
|
|
|
try to start this dream if possible. The dream should typically call startDozing()
|
|
|
|
to put the display into a low power state and allow the application processor
|
|
|
|
to be suspended. When the dream ends, the system will go to sleep as usual.
|
|
|
|
Specify the component name or an empty string if none.
|
|
|
|
Note that doze dreams are not subject to the same start conditions as ordinary dreams.
|
|
|
|
Doze dreams will run whenever the power manager is in a dozing state. -->
|
|
|
|
<string name="config_dozeComponent">com.android.systemui/com.android.systemui.doze.DozeService</string>
|
|
|
|
|
|
|
|
<!-- If true, the doze component is not started until after the screen has been
|
|
|
|
turned off and the screen off animation has been performed. -->
|
|
|
|
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
|
|
|
|
|
|
|
|
<!-- 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-20 13:29:56 -05:00
|
|
|
|
2022-02-21 11:44:05 -05:00
|
|
|
<!-- MMS user agent string -->
|
2024-07-03 03:26:42 -04:00
|
|
|
<string name="config_mms_user_agent" translatable="false">motog845g</string>
|
2022-02-21 11:44:05 -05:00
|
|
|
<!-- MMS user agent profile url -->
|
|
|
|
<string name="config_mms_user_agent_profile_url" translatable="false">http://uaprof.motorola.com/phoneconfig/motov1/Profile/motov1.rdf</string>
|
2022-02-22 10:57:03 -05:00
|
|
|
|
2022-11-02 07:16:22 -04:00
|
|
|
<!-- Whether the device enable the standalone (SA) mode of 5G NR.-->
|
|
|
|
<bool name="config_telephony5gStandalone">true</bool>
|
|
|
|
|
|
|
|
<!-- Whether the device enable the non-standalone (NSA) mode of 5G NR.-->
|
|
|
|
<bool name="config_telephony5gNonStandalone">true</bool>
|
2022-02-18 18:54:07 -05:00
|
|
|
</resources>
|