aboutsummaryrefslogtreecommitdiff
path: root/overlay/frameworks
diff options
context:
space:
mode:
authorkleidione Freitas <kleidione@gmail.com>2022-03-24 09:16:43 -0300
committerkleidione <kleidione@gmail.com>2022-11-09 17:29:16 -0300
commit44d5c9e2cf9f1ce0670be5bedd1e415cd5c3e739 (patch)
tree4516fedba0c65fda9e795d8737d08a7746d41e40 /overlay/frameworks
parent15eeafbf239f393fcb6ed1a719398e5b7bbd6a19 (diff)
veux: Merge common tree to veux
- Ref: https://github.com/xiaomi-sm6375-devs/android_device_xiaomi_sm6375-common Signed-off-by: kleidione <kleidione@gmail.com>
Diffstat (limited to 'overlay/frameworks')
-rw-r--r--overlay/frameworks/base/core/res/res/values/config.xml374
-rw-r--r--overlay/frameworks/base/core/res/res/values/dimens.xml26
-rw-r--r--overlay/frameworks/base/core/res/res/xml/power_profile.xml111
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/values/config.xml25
-rw-r--r--overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml37
5 files changed, 0 insertions, 573 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml
deleted file mode 100644
index 0749e77..0000000
--- a/overlay/frameworks/base/core/res/res/values/config.xml
+++ /dev/null
@@ -1,374 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!-- Copyright (C) 2009 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">
-
- <!-- 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 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>1</item>
- <item>2</item>
- <item>4</item>
- <item>6</item>
- <item>8</item>
- <item>10</item>
- <item>15</item>
- <item>20</item>
- <item>25</item>
- <item>30</item>
- <item>35</item>
- <item>40</item>
- <item>45</item>
- <item>50</item>
- <item>55</item>
- <item>60</item>
- <item>65</item>
- <item>70</item>
- <item>75</item>
- <item>80</item>
- <item>85</item>
- <item>90</item>
- <item>95</item>
- <item>100</item>
- <item>120</item>
- <item>140</item>
- <item>160</item>
- <item>180</item>
- <item>200</item>
- <item>220</item>
- <item>240</item>
- <item>260</item>
- <item>280</item>
- <item>300</item>
- <item>320</item>
- <item>340</item>
- <item>360</item>
- <item>380</item>
- <item>400</item>
- <item>420</item>
- <item>440</item>
- <item>460</item>
- <item>480</item>
- <item>500</item>
- <item>700</item>
- <item>900</item>
- <item>1100</item>
- <item>1300</item>
- <item>1500</item>
- <item>1700</item>
- <item>1900</item>
- <item>2000</item>
- <item>2500</item>
- <item>3000</item>
- <item>3500</item>
- <item>4000</item>
- <item>4500</item>
- <item>5000</item>
- <item>5500</item>
- <item>6000</item>
- <item>6500</item>
- <item>7000</item>
- <item>7500</item>
- <item>8000</item>
- <item>8500</item>
- <item>9000</item>
- <item>9500</item>
- <item>10000</item>
- <item>10500</item>
- <item>11000</item>
- <item>11500</item>
- <item>12000</item>
- <item>12500</item>
- <item>13000</item>
- <item>13500</item>
- <item>14000</item>
- <item>14500</item>
- <item>15000</item>
- <item>16000</item>
- <item>17000</item>
- <item>18000</item>
- <item>19000</item>
- <item>20000</item>
- <item>21000</item>
- <item>22000</item>
- <item>23000</item>
- <item>24000</item>
- <item>25000</item>
- <item>26000</item>
- <item>27000</item>
- <item>28000</item>
- <item>29000</item>
- <item>30000</item>
- <item>35000</item>
- <item>40000</item>
- <item>45000</item>
- <item>50000</item>
- <item>55000</item>
- <item>60000</item>
- <item>65000</item>
- <item>70000</item>
- <item>75000</item>
- <item>80000</item>
- <item>85000</item>
- <item>90000</item>
- <item>95000</item>
- <item>100000</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>4.5</item>
- <item>6.6</item>
- <item>8.0</item>
- <item>20.0</item>
- <item>24.3</item>
- <item>29.7</item>
- <item>34.0</item>
- <item>46.0</item>
- <item>59.0</item>
- <item>76.0</item>
- <item>81.0</item>
- <item>82.0</item>
- <item>82.0</item>
- <item>82.0</item>
- <item>83.0</item>
- <item>83.0</item>
- <item>83.0</item>
- <item>84.0</item>
- <item>84.0</item>
- <item>85.0</item>
- <item>85.0</item>
- <item>85.0</item>
- <item>85.0</item>
- <item>86.0</item>
- <item>86.0</item>
- <item>87.0</item>
- <item>89.0</item>
- <item>90.0</item>
- <item>91.0</item>
- <item>93.0</item>
- <item>94.0</item>
- <item>96.0</item>
- <item>97.0</item>
- <item>99.0</item>
- <item>100.0</item>
- <item>101.0</item>
- <item>104.0</item>
- <item>105.0</item>
- <item>106.0</item>
- <item>108.0</item>
- <item>109.0</item>
- <item>111.0</item>
- <item>112.0</item>
- <item>114.0</item>
- <item>116.0</item>
- <item>137.0</item>
- <item>157.0</item>
- <item>180.0</item>
- <item>205.0</item>
- <item>226.0</item>
- <item>257.0</item>
- <item>280.0</item>
- <item>295.0</item>
- <item>369.0</item>
- <item>400.0</item>
- <item>416.7</item>
- <item>433.3</item>
- <item>450.0</item>
- <item>466.7</item>
- <item>483.3</item>
- <item>500.0</item>
- <item>512.5</item>
- <item>525.0</item>
- <item>537.5</item>
- <item>550.0</item>
- <item>562.5</item>
- <item>575.0</item>
- <item>587.5</item>
- <item>600.0</item>
- <item>610.0</item>
- <item>620.0</item>
- <item>630.0</item>
- <item>640.0</item>
- <item>650.0</item>
- <item>660.0</item>
- <item>670.0</item>
- <item>680.0</item>
- <item>690.0</item>
- <item>700.0</item>
- <item>705.0</item>
- <item>710.0</item>
- <item>715.0</item>
- <item>720.0</item>
- <item>725.0</item>
- <item>730.0</item>
- <item>735.0</item>
- <item>740.0</item>
- <item>745.0</item>
- <item>750.0</item>
- <item>755.0</item>
- <item>760.0</item>
- <item>765.0</item>
- <item>770.0</item>
- <item>775.0</item>
- <item>800.0</item>
- <item>816.7</item>
- <item>833.3</item>
- <item>850.0</item>
- <item>866.7</item>
- <item>883.3</item>
- <item>900.0</item>
- <item>914.3</item>
- <item>928.6</item>
- <item>942.9</item>
- <item>957.1</item>
- <item>971.4</item>
- <item>985.7</item>
- <item>1000.0</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>4.5</item>
- <item>1000.0</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. -->
- <integer-array name="config_screenBrightnessBacklight">
- <item>1</item>
- <item>255</item>
- </integer-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">1000</integer>
- <integer name="config_autoBrightnessDarkeningLightDebounce">1000</integer>
-
- <!-- The maximum range of gamma adjustment possible using the screen
- auto-brightness adjustment setting. -->
- <fraction name="config_autoBrightnessAdjustmentMaxGamma">100.0%</fraction>
-
- <!-- Vibrator pattern for feedback about a long screen/key press -->
- <integer-array name="config_longPressVibePattern">
- <item>0</item>
- <item>10</item>
- </integer-array>
-
- <!-- Vibrator pattern for feedback about touching a virtual key -->
- <integer-array name="config_virtualKeyVibePattern">
- <item>0</item>
- <item>10</item>
- </integer-array>
-
- <!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->
- <integer-array name="config_keyboardTapVibePattern">
- <item>10</item>
- </integer-array>
-
- <!-- 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 25,20
- h -50
- v 80
- h 50
- Z
- </string>
-
- <!-- Whether device has a physical display cutout -->
- <bool name="config_physicalDisplayCutout">true</bool>
-
- <!-- The default refresh rate. Apollo manages this using the peak refresh rate setting, so set
- this value to 0 so it has no effect. -->
- <integer name="config_defaultRefreshRate">0</integer>
-
- <!-- The default peak refresh rate. -->
- <integer name="config_defaultPeakRefreshRate">120</integer>
- <bool name="config_dozeAlwaysOnDisplayAvailable">true</bool>
- <bool name="config_dozeAlwaysOnEnabled">true</bool>
-
- <!-- If true, the display will be shifted around in ambient mode. -->
- <bool name="config_enableBurnInProtection">true</bool>
-
- <!-- Indicates whether device has a power button fingerprint sensor. -->
- <bool name="config_is_powerbutton_fps" translatable="false" >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> <!--item>displayId</item-->
- <item>1080</item> <!--item>sensorLocationX</item-->
- <item>920</item> <!--item>sensorLocationY</item-->
- <item>200</item> <!--item>sensorRadius</item-->
- </array>
-
-</resources>
diff --git a/overlay/frameworks/base/core/res/res/values/dimens.xml b/overlay/frameworks/base/core/res/res/values/dimens.xml
deleted file mode 100644
index be50eef..0000000
--- a/overlay/frameworks/base/core/res/res/values/dimens.xml
+++ /dev/null
@@ -1,26 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/* //device/apps/common/assets/res/any/dimens.xml
-**
-** Copyright 2006, 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.
-*/
--->
-<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
-
- <dimen name="rounded_corner_content_padding">47.0px</dimen>
- <dimen name="rounded_corner_radius">102.0px</dimen>
- <dimen name="status_bar_height_portrait">110.0px</dimen>
-
-</resources>
diff --git a/overlay/frameworks/base/core/res/res/xml/power_profile.xml b/overlay/frameworks/base/core/res/res/xml/power_profile.xml
deleted file mode 100644
index bc60d86..0000000
--- a/overlay/frameworks/base/core/res/res/xml/power_profile.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<device name="Android">
- <item name="ambient.on">0.1</item>
- <item name="screen.on">100.2</item>
- <item name="screen.full">208</item>
- <item name="bluetooth.active">9</item>
- <item name="bluetooth.on">0.47</item>
- <item name="wifi.on">0.32</item>
- <item name="wifi.active">148</item>
- <item name="wifi.scan">25</item>
- <item name="audio">13.6</item>
- <item name="video">57</item>
- <item name="camera.flashlight">86</item>
- <item name="camera.avg">616</item>
- <item name="gps.on">45</item>
- <item name="radio.active">217</item>
- <item name="radio.scanning">47</item>
- <array name="radio.on">
- <value>2.82</value>
- <value>1.82</value>
- </array>
- <array name="cpu.active">
- <value>0.1</value>
- </array>
- <array name="cpu.clusters.cores">
- <value>6</value>
- <value>2</value>
- </array>
- <array name="cpu.core_speeds.cluster0">
- <value>300000</value>
- <value>576000</value>
- <value>710400</value>
- <value>940800</value>
- <value>1190400</value>
- <value>1324800</value>
- <value>1478400</value>
- <value>1574400</value>
- <value>1708800</value>
- <value>1804800</value>
- </array>
- <array name="cpu.core_speeds.cluster1">
- <value>691200</value>
- <value>940800</value>
- <value>1228800</value>
- <value>1401600</value>
- <value>1516800</value>
- <value>1651200</value>
- <value>1804800</value>
- <value>1900800</value>
- <value>2054400</value>
- <value>2208000</value>
- </array>
- <array name="cpu.core_power.cluster0">
- <value>35</value>
- <value>39</value>
- <value>46</value>
- <value>65</value>
- <value>86</value>
- <value>105</value>
- <value>117</value>
- <value>172</value>
- <value>187</value>
- <value>208</value>
- </array>
- <array name="cpu.core_power.cluster1">
- <value>91</value>
- <value>91</value>
- <value>146</value>
- <value>190</value>
- <value>215</value>
- <value>257</value>
- <value>322</value>
- <value>366</value>
- <value>421</value>
- <value>526</value>
- </array>
- <item name="cpu.idle">4.78</item>
- <array name="memory.bandwidths">
- <value>22.7</value>
- </array>
- <item name="battery.capacity">5000</item>
- <item name="battery.typical">5000</item>
- <item name="wifi.controller.idle">1.4</item>
- <item name="wifi.controller.rx">177</item>
- <item name="wifi.controller.tx">269</item>
- <array name="wifi.controller.tx_levels" />
- <item name="wifi.controller.voltage">3300</item>
- <array name="wifi.batchedscan">
- <value>.0002</value>
- <value>.002</value>
- <value>.02</value>
- <value>.2</value>
- <value>2</value>
- </array>
- <item name="modem.controller.sleep">0</item>
- <item name="modem.controller.idle">1</item>
- <item name="modem.controller.rx">200</item>
- <array name="modem.controller.tx">
- <value>293</value>
- <value>296</value>
- <value>316</value>
- <value>401</value>
- <value>506</value>
- </array>
- <item name="modem.controller.voltage">800</item>
- <array name="gps.signalqualitybased">
- <value>0</value>
- <value>0</value>
- </array>
- <item name="gps.voltage">0</item>
-</device> \ No newline at end of file
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml b/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
deleted file mode 100644
index 08814de..0000000
--- a/overlay/frameworks/base/packages/SystemUI/res/values/config.xml
+++ /dev/null
@@ -1,25 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
-/*
-** Copyright 2017, 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.
-*/
--->
-
-<resources>
-
- <!-- Doze: check proximity sensor before pulsing? -->
- <bool name="doze_proximity_check_before_pulse">false</bool>
-
-</resources>
diff --git a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml b/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
deleted file mode 100644
index 60abc46..0000000
--- a/overlay/frameworks/base/packages/SystemUI/res/values/dimens.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-<?xml version="1.0" encoding="utf-8"?>
-<!--
- * Copyright (c) 2006, 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.
-*/
--->
-<resources>
-
- <!-- Location on the screen of the center of the fingerprint sensor. For devices with under
- display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
- For devices with sensors on the back of the device, this corresponds to the location on the
- screen directly in front of the sensor.
- By default, this is set to @null to use the horizontal center of the screen. -->
- <dimen name="physical_fingerprint_sensor_center_screen_location_x">1080px</dimen>
-
- <!-- Location on the screen of the center of the physical power button. This is a reasonable
- default that should be overridden by device-specific overlays. -->
- <dimen name="physical_power_button_center_screen_location_y">1030px</dimen>
-
- <!-- Location on the screen of the center of the fingerprint sensor. For devices with under
- display fingerprint sensors, this directly corresponds to the fingerprint sensor's location.
- For devices with sensors on the back of the device, this corresponds to the location on the
- screen directly in front of the sensor. -->
- <dimen name="physical_fingerprint_sensor_center_screen_location_y">@dimen/physical_power_button_center_screen_location_y</dimen>
-
-</resources>