RMX2061: Import device specific overlays

Signed-off-by: SagarMakhar <sagarmakhar@gmail.com>
This commit is contained in:
SagarMakhar
2021-08-26 19:04:24 +00:00
parent 4699867171
commit acc7084ca8
5 changed files with 294 additions and 0 deletions

View File

@@ -26,3 +26,7 @@ PRODUCT_COPY_FILES += \
# Display
PRODUCT_COPY_FILES += \
$(LOCAL_PATH)/configs/svi_config_19720.xml:$(TARGET_COPY_OUT_VENDOR)/etc/svi_config_19720.xml
# Overlays
DEVICE_PACKAGE_OVERLAYS += \
$(LOCAL_PATH)/overlay

View File

@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2015, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources>
<!-- 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.
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-436.5,33L-319.5,33A38.5,38.5 0,0 1,-281 71.5L-281,71.5A38.5,38.5 0,0 1,-319.5 110L-436.5,110A38.5,38.5 0,0 1,-475 71.5L-475,71.5A38.5,38.5 0,0 1,-436.5 33z M -475,0 L -283,0 Z M -540,0 L -540,113 Z</string>
<bool name="config_fillMainBuiltInDisplayCutout">true</bool>
</resources>

View File

@@ -0,0 +1,201 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (c) 2016, The Linux Foundation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* Neither the name of The Linux Foundation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE
-->
<device name="Android">
<!-- Most values are the incremental current used by a feature,
in mA (measured at nominal voltage).
The default values are deliberately incorrect dummy values.
OEM's must measure and provide actual values before
shipping a device.
Example real-world values are given in comments, but they
are totally dependent on the platform and can vary
significantly, so should be measured on the shipping platform
with a power meter. -->
<item name="none">0</item>
<item name="screen.on">109.3</item> <!-- ~80mA -->
<item name="ambient.on">27</item> <!-- ~110mA -->
<item name="screen.full">146.87</item> <!-- ~250mA -->
<item name="bluetooth.active">25.41</item> <!-- Bluetooth data transfer, ~80mA -->
<item name="bluetooth.on">0.56</item> <!-- Bluetooth on & connectable, but not connected, ~0.1mA -->
<item name="wifi.on">10.88</item> <!-- ~3mA -->
<item name="wifi.active">276.63</item> <!-- WIFI data transfer, ~200mA -->
<item name="wifi.scan">70.32</item> <!-- WIFI network scanning, ~100mA -->
<item name="audio">16.76</item> <!-- ~10mA -->
<item name="video">24.99</item> <!-- ~50mA -->
<item name="camera.flashlight">142</item> <!-- Avg. power for camera flash, ~160mA -->
<item name="camera.avg">745</item> <!-- Avg. power use of camera in standard usecases, ~550mA -->
<item name="gps.on">51.06</item> <!-- ~50mA -->
<!-- Radio related values. For modems without energy reporting support in firmware, use
radio.active, radio.scanning, and radio.on. -->
<item name="radio.active">382.5</item> <!-- ~200mA -->
<item name="radio.scanning">0.34</item> <!-- cellular radio scanning for signal, ~10mA -->
<!-- Current consumed by the radio at different signal strengths, when paging -->
<array name="radio.on">81.74 <!-- Strength 0 to BINS-1 -->
<value>2</value> <!-- ~2mA -->
<value>1</value> <!-- ~1mA -->
</array>
<!-- Radio related values. For modems WITH energy reporting support in firmware, use
modem.controller.idle, modem.controller.tx, modem.controller.rx, modem.controller.voltage.
-->
<item name="modem.controller.idle">2</item>
<item name="modem.controller.rx">84</item>
<array name="modem.controller.tx"> <!-- Strength 0 to 4 -->
<value>115</value>
<value>125</value>
<value>136</value>
<value>180</value>
<value>250</value>
</array>
<item name="modem.controller.voltage">800</item>
<!-- A list of heterogeneous CPU clusters, where the value for each cluster represents the
number of CPU cores for that cluster.
Ex:
<array name="cpu.clusters.cores">
<value>4</value> // cluster 0 has cpu0, cpu1, cpu2, cpu3
<value>2</value> // cluster 1 has cpu4, cpu5
</array> -->
<array name="cpu.clusters.cores">
<value>6</value> <!-- cluster 0 has cpu0, cpu1, cpu2, cpu3, cpu4, cpu5 -->
<value>2</value> <!-- cluster 1 has cpu6, cpu7 -->
</array>
<!-- Different CPU speeds for cluster 0 as reported in
/sys/devices/system/cpu/cpu0/cpufreq/stats/time_in_state.
There must be one of these for each cluster, labeled:
cpu.speeds.cluster0, cpu.speeds.cluster1, etc... -->
<array name="cpu.core_speeds.cluster0">
<value>300000</value> <!-- 300 MHz CPU speed -->
<value>576000</value> <!-- 576 MHz CPU speed -->
<value>768000</value> <!-- 768 MHz CPU speed -->
<value>1017600</value> <!-- 1017.6 MHz CPU speed -->
<value>1248000</value> <!-- 1248 MHz CPU speed -->
<value>1324800</value> <!-- 1324.8 MHz CPU speed -->
<value>1516800</value> <!-- 1516.8 MHz CPU speed -->
<value>1612800</value> <!-- 1612.8 MHz CPU speed -->
<value>1708800</value> <!-- 1708.8 MHz CPU speed -->
<value>1804800</value> <!-- 1804.8 MHz CPU speed -->
</array>
<array name="cpu.core_speeds.cluster1">
<value>652800</value> <!-- 652.8 MHz CPU speed -->
<value>825600</value> <!-- 825.6 MHz CPU speed -->
<value>979200</value> <!-- 979.2 MHz CPU speed -->
<value>1113600</value> <!-- 1113.6 MHz CPU speed -->
<value>1267200</value> <!-- 1267.2 MHz CPU speed -->
<value>1555200</value> <!-- 1555.2 MHz CPU speed -->
<value>1708800</value> <!-- 1708.8 MHz CPU speed -->
<value>1843200</value> <!-- 1843.2 MHz CPU speed -->
<value>1900800</value> <!-- 1900.8 MHz CPU speed -->
<value>1996800</value> <!-- 1996.8 MHz CPU speed -->
<value>2112000</value> <!-- 2112 MHz CPU speed -->
<value>2208000</value> <!-- 2208 MHz CPU speed -->
</array>
<!-- Current at each CPU speed for cluster 0, as per 'cpu.speeds.cluster0'.
Like cpu.speeds.cluster0, there must be one of these present for
each heterogeneous CPU cluster. -->
<array name="cpu.core_power.cluster0">
<value>4</value> <!--3.96 mA -->
<value>6</value> <!--6.25 mA -->
<value>8</value> <!--7.92 mA -->
<value>12</value> <!--11.67 mA-->
<value>15</value> <!--15.42 mA-->
<value>18</value> <!--17.83 mA-->
<value>23</value> <!--22.92 mA-->
<value>27</value> <!--27.08 mA-->
<value>30</value> <!--30.21 mA-->
<value>35</value> <!--34.29 mA -->
</array>
<!-- Current at each CPU speed for cluster 1, as per 'cpu.speeds.cluster1'.
Like cpu.speeds.cluster1, there must be one of these present for
each heterogeneous CPU cluster. -->
<array name="cpu.core_power.cluster1">
<value>13</value> <!-- 13.13 mA -->
<value>25</value> <!-- 25.00 mA -->
<value>30</value> <!-- 30.63 mA -->
<value>38</value> <!-- 38.75 mA -->
<value>46</value> <!-- 46.25 mA -->
<value>52</value> <!-- 52.50 mA -->
<value>62</value> <!-- 62.50 mA -->
<value>87</value> <!-- 87.50 mA -->
<value>103</value> <!-- 102.50 mA -->
<value>125</value> <!-- 125.00 mA -->
<value>138</value> <!-- 137.50 mA -->
<value>200</value> <!-- 200.00 mA -->
<value>206</value> <!-- 206.25 mA -->
</array>
<!-- Current when CPU is awake -->
<item name="cpu.awake">31.21</item>
<!-- Current when CPU is idle -->
<item name="cpu.idle">7.26</item>
<!-- Memory bandwidth power values in mA at the rail. There must be one value
for each bucket defined in the device tree. -->
<array name="memory.bandwidths">
<value>22.7</value> <!-- mA for bucket: 100mb/s-1.5 GB/s memory bandwidth -->
</array>
<!-- This is the battery capacity in mAh (measured at nominal voltage) -->
<item name="battery.capacity">4300</item>
<!-- Wifi related values. -->
<!-- Idle Receive current for wifi radio in mA. 0 by default-->
<item name="wifi.controller.idle">1.35</item>
<!-- Rx current for wifi radio in mA. 0 by default-->
<item name="wifi.controller.rx">180</item>
<!-- Tx current for wifi radio in mA. 0 by default-->
<item name="wifi.controller.tx">205</item>
<!-- Current at each of the wifi Tx levels in mA. The number of tx levels varies per device
and is available only of wifi chipsets which support the tx level reporting. Use
wifi.tx for other chipsets. none by default -->
<array name="wifi.controller.tx_levels"> <!-- mA -->
</array>
<!-- Operating volatage for wifi radio in mV. 0 by default-->
<item name="wifi.controller.voltage">3300</item>
<array name="wifi.batchedscan"> <!-- mA -->
<value>.0002</value> <!-- 1-8/hr -->
<value>.002</value> <!-- 9-64/hr -->
<value>.02</value> <!-- 65-512/hr -->
<value>.2</value> <!-- 513-4,096/hr -->
<value>2</value> <!-- 4097-/hr -->
</array>
</device>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2015, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources>
<!-- Allow devices override audio panel location to the left side -->
<bool name="config_audioPanelOnLeftSide">true</bool>
</resources>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2007 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. Do not translate. -->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Whether to show min/max refresh rate in display settings -->
<bool name="config_show_refresh_rate_controls">true</bool>
<!-- Whether to show Smooth Display feature in Settings Options -->
<bool name="config_show_smooth_display">true</bool>
</resources>