dubai: Debrand manifests & overlays
This makes it easier to compare devices and/or convert device trees. Change-Id: I74edc128a9c825cbc3189a6c1594ac5b19bae591
This commit is contained in:
parent
0e3357e8e6
commit
65585bf2bf
26 changed files with 2 additions and 2 deletions
300
resource-overlay/device/Frameworks/res/values/config.xml
Normal file
300
resource-overlay/device/Frameworks/res/values/config.xml
Normal file
|
|
@ -0,0 +1,300 @@
|
|||
<?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 -->
|
||||
<array name="config_autoBrightnessLevels">
|
||||
<item>2</item>
|
||||
<item>4</item>
|
||||
<item>5</item>
|
||||
<item>10</item>
|
||||
<item>40</item>
|
||||
<item>100</item>
|
||||
<item>325</item>
|
||||
<item>1250</item>
|
||||
<item>3500</item>
|
||||
<item>5500</item>
|
||||
</array>
|
||||
|
||||
<!-- 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">
|
||||
<item>2</item>
|
||||
<item>7</item>
|
||||
<item>10</item>
|
||||
<item>12</item>
|
||||
<item>24</item>
|
||||
<item>95</item>
|
||||
<item>111</item>
|
||||
<item>149</item>
|
||||
<item>192</item>
|
||||
<item>252</item>
|
||||
<item>500</item>
|
||||
</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. -->
|
||||
<array name="config_screenBrightnessBacklight">
|
||||
<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>
|
||||
<item>129</item>
|
||||
<item>255</item>
|
||||
</array>
|
||||
|
||||
<!-- 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">
|
||||
<item>0</item>
|
||||
<item>2</item>
|
||||
<item>7</item>
|
||||
<item>10</item>
|
||||
<item>12</item>
|
||||
<item>24</item>
|
||||
<item>95</item>
|
||||
<item>111</item>
|
||||
<item>149</item>
|
||||
<item>192</item>
|
||||
<item>252</item>
|
||||
<item>500</item>
|
||||
</array>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- 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" translatable="false">
|
||||
M 503.5,65
|
||||
a 36.5,36.5 0 1 0 73,0
|
||||
a 36.5,36.5 0 1 0 -73,0
|
||||
Z
|
||||
@left
|
||||
</string>
|
||||
|
||||
<!-- Like config_mainBuiltInDisplayCutout, but this path is used to report the
|
||||
one single bounding rect per device edge to the app via
|
||||
{@link DisplayCutout#getBoundingRect}. Note that this path should try to match the visual
|
||||
appearance of the cutout as much as possible, and may be smaller than
|
||||
config_mainBuiltInDisplayCutout
|
||||
-->
|
||||
<string name="config_mainBuiltInDisplayCutoutRectApproximation" translatable="false">
|
||||
M -36.5 0
|
||||
L -36.5 130
|
||||
L 36.5 130
|
||||
L 36.5 0
|
||||
Z
|
||||
</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">true</bool>
|
||||
|
||||
<!-- Indicate whether to allow the device to suspend when the screen is off
|
||||
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>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- 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 -->
|
||||
<item>2164</item> <!-- sensorLocationY -->
|
||||
<item>91</item> <!-- sensorRadius -->
|
||||
</integer-array>
|
||||
|
||||
<!-- 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. -->
|
||||
<integer name="config_screenBrightnessDim">2</integer>
|
||||
|
||||
<!-- Minimum screen brightness setting allowed by the power manager.
|
||||
The user is forbidden from setting the brightness below this level. -->
|
||||
<integer name="config_screenBrightnessSettingMinimum">2</integer>
|
||||
|
||||
<!-- Vibrator pattern for feedback about a long screen/key press -->
|
||||
<array name="config_longPressVibePattern">
|
||||
<item>0</item>
|
||||
<item>67</item>
|
||||
</array>
|
||||
|
||||
<!-- Vibrator pattern for feedback about touching a virtual key -->
|
||||
<array name="config_virtualKeyVibePattern">
|
||||
<item>0</item>
|
||||
<item>67</item>
|
||||
</array>
|
||||
|
||||
<!-- Vibrator pattern for feedback about booting with safe mode enabled -->
|
||||
<array name="config_safeModeEnabledVibePattern">
|
||||
<item>0</item>
|
||||
<item>0</item>
|
||||
<item>94</item>
|
||||
</array>
|
||||
|
||||
<!-- Vibrator pattern for feedback about hitting a scroll barrier -->
|
||||
<array name="config_scrollBarrierVibePattern">
|
||||
<item>0</item>
|
||||
<item>15</item>
|
||||
<item>30</item>
|
||||
<item>15</item>
|
||||
</array>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- MMS user agent string -->
|
||||
<string name="config_mms_user_agent" translatable="false">motorolaedge30</string>
|
||||
<!-- 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>
|
||||
|
||||
<!-- 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>
|
||||
|
||||
<!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
|
||||
<string name="config_dozeUdfpsLongPressSensorType" translatable="false">org.lineageos.sensor.udfps</string>
|
||||
|
||||
<!-- 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>
|
||||
</resources>
|
||||
30
resource-overlay/device/Frameworks/res/values/dimens.xml
Normal file
30
resource-overlay/device/Frameworks/res/values/dimens.xml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2022 The LineageOS Project
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
-->
|
||||
<resources>
|
||||
<!-- Radius of the software rounded corners. -->
|
||||
<dimen name="rounded_corner_radius">95.0px</dimen>
|
||||
|
||||
<!-- Default paddings for content around the corners. -->
|
||||
<dimen name="rounded_corner_content_padding">14dp</dimen>
|
||||
|
||||
<!-- The default height of the status bar used in {@link SystemBarUtils#getStatusBarHeight} to
|
||||
calculate the status bar height. -->
|
||||
<dimen name="status_bar_height_default">28dp</dimen>
|
||||
|
||||
<!-- Height of the status bar in portrait. The height should be
|
||||
Max((status bar content height + waterfall top size), top cutout size) -->
|
||||
<dimen name="status_bar_height_portrait">130px</dimen>
|
||||
|
||||
<!-- Height of the status bar in landscape.
|
||||
Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead.
|
||||
-->
|
||||
<dimen name="status_bar_height_landscape">28dp</dimen>
|
||||
|
||||
<!-- Height of area above QQS where battery/time go.
|
||||
Do not read this dimen directly. Use {@link SystemBarUtils#getQuickQsOffsetHeight} instead.
|
||||
-->
|
||||
<dimen name="quick_qs_offset_height">@dimen/status_bar_height_default</dimen>
|
||||
</resources>
|
||||
113
resource-overlay/device/Frameworks/res/xml/power_profile.xml
Normal file
113
resource-overlay/device/Frameworks/res/xml/power_profile.xml
Normal file
|
|
@ -0,0 +1,113 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<device name="Android">
|
||||
<item name="none">0</item>
|
||||
<item name="screen.on.display0">139.28</item>
|
||||
<item name="screen.full.display0">450</item>
|
||||
<item name="wifi.on">0.9</item>
|
||||
<item name="wifi.active">34.36</item>
|
||||
<item name="wifi.scan">4.73</item>
|
||||
<item name="camera.avg">523.93</item>
|
||||
<item name="camera.flashlight">200.75</item>
|
||||
<item name="gps.on">171</item>
|
||||
<item name="radio.active">136.278</item>
|
||||
<item name="radio.scanning">10.57</item>
|
||||
<array name="radio.on">
|
||||
<value>33.079</value>
|
||||
<value>30</value>
|
||||
<value>25</value>
|
||||
<value>20</value>
|
||||
<value>15</value>
|
||||
<value>10</value>
|
||||
<value>5</value>
|
||||
<value>1.463</value>
|
||||
</array>
|
||||
<array name="cpu.clusters.cores">
|
||||
<value>4</value>
|
||||
<value>3</value>
|
||||
<value>1</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster0">
|
||||
<value>300000</value>
|
||||
<value>691200</value>
|
||||
<value>806400</value>
|
||||
<value>940800</value>
|
||||
<value>1152000</value>
|
||||
<value>1324800</value>
|
||||
<value>1516800</value>
|
||||
<value>1651200</value>
|
||||
<value>1804800</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster1">
|
||||
<value>691200</value>
|
||||
<value>940800</value>
|
||||
<value>1228800</value>
|
||||
<value>1344000</value>
|
||||
<value>1516800</value>
|
||||
<value>1651200</value>
|
||||
<value>1900800</value>
|
||||
<value>2054400</value>
|
||||
<value>2131200</value>
|
||||
<value>2400000</value>
|
||||
</array>
|
||||
<array name="cpu.core_speeds.cluster2">
|
||||
<value>806400</value>
|
||||
<value>1056000</value>
|
||||
<value>1324800</value>
|
||||
<value>1516800</value>
|
||||
<value>1766400</value>
|
||||
<value>1862400</value>
|
||||
<value>2035200</value>
|
||||
<value>2208000</value>
|
||||
<value>2380800</value>
|
||||
<value>2515200</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster0">
|
||||
<value>4.13</value>
|
||||
<value>6.9</value>
|
||||
<value>7.26</value>
|
||||
<value>8.88</value>
|
||||
<value>12.17</value>
|
||||
<value>15.7</value>
|
||||
<value>20.06</value>
|
||||
<value>25.76</value>
|
||||
<value>30.9</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster1">
|
||||
<value>26.93</value>
|
||||
<value>20.23</value>
|
||||
<value>57.22</value>
|
||||
<value>71.71</value>
|
||||
<value>91.77</value>
|
||||
<value>108.31</value>
|
||||
<value>158.29</value>
|
||||
<value>182.69</value>
|
||||
<value>186.79</value>
|
||||
<value>230.89</value>
|
||||
</array>
|
||||
<array name="cpu.core_power.cluster2">
|
||||
<value>34.69</value>
|
||||
<value>49.4</value>
|
||||
<value>70.56</value>
|
||||
<value>89.92</value>
|
||||
<value>117.81</value>
|
||||
<value>129.49</value>
|
||||
<value>185.7</value>
|
||||
<value>184.51</value>
|
||||
<value>218.2</value>
|
||||
<value>243.16</value>
|
||||
</array>
|
||||
<item name="cpu.cluster_power.cluster0">1.13</item>
|
||||
<item name="cpu.cluster_power.cluster1">1.13</item>
|
||||
<item name="cpu.cluster_power.cluster1">1.13</item>
|
||||
<item name="cpu.suspend">6.5</item>
|
||||
<item name="cpu.idle">12.86</item>
|
||||
<item name="cpu.active">6.79</item>
|
||||
<item name="battery.capacity">4020</item>
|
||||
<item name="modem.controller.idle">6</item>
|
||||
<item name="modem.controller.rx">180</item>
|
||||
<item name="modem.controller.tx">186</item>
|
||||
<item name="modem.controller.voltage">3700</item>
|
||||
<array name="memory.bandwidths">
|
||||
<value>17</value>
|
||||
</array>
|
||||
</device>
|
||||
Loading…
Add table
Add a link
Reference in a new issue