msm8953-common: Cleanup Overlays and Import overlay from deen_sprout

* Based sdm632-common motorola

Signed-off-by: jeangraff30 <jeangraff30@gmail.com>
This commit is contained in:
jeangraff30
2020-11-06 03:03:56 +01:00
parent 7d990b11a8
commit fe5df91570
3 changed files with 172 additions and 157 deletions

View File

@@ -40,71 +40,24 @@
<item>com.moto.actions.KeyHandler</item>
</string-array>
<!-- Array of light sensor LUX values to define our levels for auto backlight brightness support.
The N entries of this array define N 1 zones as follows:
Zone 0: 0 <= LUX < array[0]
Zone 1: array[0] <= LUX < array[1]
...
Zone N: array[N - 1] <= LUX < array[N]
Zone N + 1 array[N] <= LUX < infinity
Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>8</item>
<item>12</item>
<item>20</item>
<item>33</item>
<item>55</item>
<item>90</item>
<item>148</item>
<item>245</item>
<item>403</item>
<item>665</item>
<item>1097</item>
<item>1808</item>
<item>2981</item>
<item>5000</item>
<item>10000</item>
</integer-array>
<!-- Default LED on time for notification LED in milliseconds. -->
<integer name="config_defaultNotificationLedOn">125</integer>
<!-- 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>10.27811</item> <!-- 0 - 1 -->
<item>25.5265</item> <!-- 1 - 2 -->
<item>32.9902384256</item> <!-- 2 - 3 -->
<item>37.3278742039</item> <!-- 3 - 4 -->
<item>40.2339130994</item> <!-- 4 - 8 -->
<item>47.3775896947</item> <!-- 8 - 12 -->
<item>52.0773980991</item> <!-- 12 - 20 -->
<item>58.9500178659</item> <!-- 20 - 33 -->
<item>67.0727661023</item> <!-- 33 - 55 -->
<item>77.4795277377</item> <!-- 55 - 90 -->
<item>90.1649821044</item> <!-- 90 - 148 -->
<item>106.199488897</item> <!-- 148 - 245 -->
<item>126.920893691</item> <!-- 245 - 403 -->
<item>155.278937975</item> <!-- 403 - 665 -->
<item>192.014446343</item> <!-- 665 - 1097 -->
<item>238.225445161</item> <!-- 1097 - 1808 -->
<item>292.196984602</item> <!-- 1808 - 2981 -->
<item>355.964092728</item> <!-- 2981 - 5000 -->
<item>431.503962344</item> <!-- 5000 - 10000 -->
<item>546.6433233</item> <!-- 10000+ -->
</array>
<!-- Flag indicating whether the we should enable the automatic brightness in Settings.
<!-- Default LED off time for notification LED in milliseconds. -->
<integer name="config_defaultNotificationLedOff">2875</integer>
<!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveBatteryLed">true</bool>
<!-- Does the battery LED support multiple colors?
Used to decide if the user can change the colors -->
<bool name="config_multiColorBatteryLed">false</bool>
<!-- Do the battery/notification LEDs support pulsing?
Used to decide if we show pulse settings -->
<bool name="config_ledCanPulse">true</bool>
<!-- 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>
@@ -119,7 +72,131 @@
<!-- Default screen brightness setting.
Must be in the range specified by minimum and maximum. -->
<integer name="config_screenBrightnessSettingDefault">71</integer>
<integer name="config_screenBrightnessSettingDefault">96</integer>
<!-- 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">2000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">8000</integer>
<!-- The maximum range of gamma adjustment possible using the screen
auto-brightness adjustment setting. -->
<fraction name="config_autoBrightnessAdjustmentMaxGamma">300%</fraction>
<!-- 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">1</integer>
<!-- Whether device needs to wait for Qualcomm MPCTL service to start
before setting power profiles on boot. -->
<bool name="config_waitForMpctlOnBoot">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 zones as follows:
Zone 0: 0 <= LUX < array[0]
Zone 1: array[0] <= LUX < array[1]
...
Zone N: array[N - 1] <= LUX < array[N]
Zone N + 1 array[N] <= LUX < infinity
Must be overridden in platform specific overlays -->
<integer-array name="config_autoBrightnessLevels">
<item>2</item>
<item>10</item>
<item>50</item>
<item>90</item>
<item>100</item>
<item>150</item>
<item>200</item>
<item>300</item>
<item>400</item>
<item>500</item>
<item>800</item>
<item>1000</item>
<item>1300</item>
<item>2000</item>
<item>3000</item>
<item>4000</item>
<item>8000</item>
<item>10000</item>
</integer-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>10.45935</item> <!-- 0-1 -->
<item>29.25559</item> <!-- 1-2 -->
<item>34.240692</item> <!-- 2-3 -->
<item>37.514347</item> <!-- 3-4 -->
<item>40.018696</item> <!-- 4-8 -->
<item>46.885098</item> <!-- 8-12 -->
<item>51.626434</item> <!-- 12-20 -->
<item>58.610405</item> <!-- 20-33 -->
<item>66.890915</item> <!-- 33-55 -->
<item>77.61644</item> <!-- 55-90 -->
<item>90.221886</item> <!-- 90-148 -->
<item>105.80314</item> <!-- 148-245 -->
<item>126.073845</item> <!-- 245-403 -->
<item>154.16931</item> <!-- 403-665 -->
<item>191.83717</item> <!-- 665-1097 -->
<item>240.74442</item> <!-- 1097-1808 -->
<item>294.84857</item> <!-- 1808-2981 -->
<item>348.05453</item> <!-- 2981-5000 -->
<item>389.70</item> <!-- 5000+ -->
</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>26.11</item>
<item>50.5</item>
<item>74.17</item>
<item>96.89</item>
<item>118.3</item>
<item>139.8</item>
<item>162.9</item>
<item>189.8</item>
<item>217.4</item>
<item>240.4</item>
<item>265.3</item>
<item>288.7</item>
<item>316</item>
<item>340.8</item>
<item>357.9</item>
<item>376.2</item>
<item>392.9</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_autoBrightnessLcdBacklightValues">
<item>10</item>
<item>20</item>
<item>40</item>
<item>70</item>
<item>110</item>
<item>160</item>
<item>200</item>
<item>255</item>
</integer-array>
<!-- 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
@@ -174,7 +251,7 @@
provisioning, availability etc -->
<bool name="config_carrier_volte_available">true</bool>
<!-- Flag specifying whether WFC over IMS is available on device -->
<!-- Flag specifying whether WFC over IMS is available on device -->
<bool name="config_device_wfc_ims_available">true</bool>
<!-- Flag specifying whether WFC over IMS should be available for carrier: independent of
@@ -191,57 +268,6 @@
<!-- Flag specifying whether or not IMS will use the ImsResolver dynamically -->
<bool name="config_dynamic_bind_ims">true</bool>
<!-- Default LED on time for notification LED in milliseconds. -->
<integer name="config_defaultNotificationLedOn">500</integer>
<!-- Default LED off time for notification LED in milliseconds. -->
<integer name="config_defaultNotificationLedOff">5000</integer>
<!-- Is the battery LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveBatteryLed">true</bool>
<!-- Is the notification LED intrusive? Used to decide if there should be a disable option -->
<bool name="config_intrusiveNotificationLed">true</bool>
<!-- Does the battery LED support multiple colors?
Used to decide if the user can change the colors -->
<bool name="config_multiColorBatteryLed">false</bool>
<!-- Do the battery/notification LEDs support pulsing?
Used to decide if we show pulse settings -->
<bool name="config_ledCanPulse">true</bool>
<!-- Indicate whether closing the lid causes the device to go to sleep and opening
it causes the device to wake up.
The default is false. -->
<bool name="config_lidControlsSleep">false</bool>
<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
<item>0</item>
<item>25</item>
</integer-array>
<!-- Vibrator pattern for feedback about touching a virtual key -->
<integer-array name="config_virtualKeyVibePattern">
<item>0</item>
<item>34</item>
</integer-array>
<!-- Vibrator pattern for a very short but reliable vibration for soft keyboard tap -->
<integer-array name="config_keyboardTapVibePattern">
<item>0</item>
<item>25</item>
</integer-array>
<!-- Vibrator pattern for feedback about hitting a scroll barrier -->
<integer-array name="config_scrollBarrierVibePattern">
<item>0</item>
<item>15</item>
<item>30</item>
<item>15</item>
</integer-array>
<!-- Indicate whether the SD card is accessible without removing the battery. -->
<bool name="config_batterySdCardAccessibility">true</bool>
@@ -256,14 +282,8 @@
turned off and the screen off animation has been performed. -->
<bool name="config_dozeAfterScreenOffByDefault">true</bool>
<!-- Doze: should the TYPE_PICK_UP_GESTURE sensor be used as a pulse signal. -->
<bool name="config_dozePulsePickup">false</bool>
<!-- Specifies whether to decouple the interactive state of the device from the display on/off state. -->
<bool name="config_powerDecoupleInteractiveModeFromDisplay">true</bool>
<!-- Whether the display blanks itself when transition from a doze to a non-doze state -->
<bool name="config_displayBlanksAfterDoze">false</bool>
<!-- Enables or disables haptic effect when the text insertion/selection handle is moved
manually by the user. Off by default, since the expected haptic feedback may not be
@@ -295,7 +315,6 @@
<!-- Boolean indicating whether the wifi chipset has dual frequency band support -->
<bool translatable="false" name="config_wifi_dual_band_support">true</bool>
<!-- Boolean indicating whether the wifi chipset has background scan support -->
<bool name="config_wifi_background_scan_support">true</bool>
@@ -324,6 +343,12 @@
flag is set for wifi displays.
-->
<bool name="config_wifiDisplaySupportsProtectedBuffers">true</bool>
<!-- Integer threshold for low network score, should be somewhat less than the entry threshhold -->
<integer name="config_wifi_framework_wifi_score_bad_rssi_threshold_24GHz">-83</integer>
<integer name="config_wifi_framework_wifi_score_bad_rssi_threshold_5GHz">-80</integer>
<integer name="config_wifi_framework_wifi_score_entry_rssi_threshold_24GHz">-80</integer>
<integer name="config_wifi_framework_wifi_score_entry_rssi_threshold_5GHz">-77</integer>
<!-- Default list of files pinned by the Pinner Service -->
<string-array translatable="false" name="config_defaultPinnerServiceFiles">
@@ -376,13 +401,6 @@
<item>3</item> <!-- COLOR_MODE_AUTOMATIC -->
</integer-array>
<!-- Whether device ignores the RSSNR signal implementation -->
<bool name="config_ignoreRssnrSignalLevel">true</bool>
<!-- Whether device needs to wait for Qualcomm MPCTL service to start
before setting power profiles on boot. -->
<bool name="config_waitForMpctlOnBoot">true</bool>
<!-- Whether to cleanup fingerprints upon connection to the daemon and when user switches -->
<bool name="config_cleanupUnusedFingerprints">false</bool>
@@ -395,5 +413,4 @@
or a single SIM device can have 1 phones/logical modems, but 2 physical slots (one eSIM
and one pSIM) -->
<integer name="config_num_physical_slots">2</integer>
</resources>

View File

@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2020 The LineageOS Project
Copyright (C) 2020 The PixelExperience 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>
<bool name="profile_supported_avrcp_controller">true</bool>
<bool name="profile_supported_ba">true</bool>
<bool name="profile_supported_hid_device">true</bool>
<bool name="profile_supported_hid_host">true</bool>
</resources>

View File

@@ -1,25 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
**
** Copyright 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.
*/
-->
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Whether cpu boost is enabled right after boot -->
<bool name="config_enableWirelessFM">true</bool>
</resources>