diff options
| author | Michele Bono <bono.michele94@gmail.com> | 2019-07-22 09:15:53 +0200 |
|---|---|---|
| committer | Michele Bono <bono.michele94@gmail.com> | 2019-08-27 10:20:44 +0200 |
| commit | add6ae542a7cd3230fcf7b91d432f92487e5ca20 (patch) | |
| tree | ad596fad3cbd64f228f5685b2c48ea4226de7e07 /overlay | |
| parent | 82884745ecc7c29771f081e8893edc49db4349c7 (diff) | |
Diffstat (limited to 'overlay')
| -rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 53 | ||||
| -rw-r--r-- | overlay/packages/apps/Settings/res/values/config.xml | 24 |
2 files changed, 77 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 7dd0e88..1a8b695 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -92,4 +92,57 @@ Otherwise, the device may fail to wake out of suspend reliably. The default is false. --> <bool name="config_suspendWhenScreenOffDueToProximity">true</bool> + + <!-- Display mode remapping table. + If the mode names returned by the backend do not match + the predefined and translated strings in the Settings + app, they can be remapped here. The format is + "oldname:newname", one per entry. --> + <string-array name="config_displayModeMappings" translatable="false"> + <item>00default:standard</item> + <item>01warm:reading</item> + <item>02cool:dynamic</item> + <item>37sRGB-native:srgb</item> + </string-array> + + <!-- Default value for proximity check on screen wake + NOTE ! - Enable for devices that have a fast response proximity sensor (ideally < 300ms)--> + <bool name="config_proximityCheckOnWake">true</bool> + <integer name="config_proximityCheckTimeout">200</integer> + <bool name="config_proximityCheckOnWakeEnabledByDefault">true</bool> + + <!-- Hardware keys present on the device, stored as a bit field. + This integer should equal the sum of the corresponding value for each + of the following keys present: + 1 - Home + 2 - Back + 4 - Menu + 8 - Assistant (search) + 16 - App switch + 32 - Camera + 64 - Volume rocker + For example, a device with Home, Back and Menu keys would set this + config to 7. --> + <integer name="config_deviceHardwareKeys">83</integer> + + <!-- Hardware keys present on the device with the ability to wake, stored as a bit field. + This integer should equal the sum of the corresponding value for each + of the following keys present: + 1 - Home + 2 - Back + 4 - Menu + 8 - Assistant (search) + 16 - App switch + 32 - Camera + 64 - Volume rocker + For example, a device with Home, Back and Menu keys would set this + config to 7. --> + <integer name="config_deviceHardwareWakeKeys">64</integer> + + <!-- Smart Pixels --> + <bool name="config_enableSmartPixels">true</bool> + + <!-- Button backlight --> + <bool name="config_button_brightness_support">true</bool> + <integer name="config_button_brightness_default">128</integer> </resources> diff --git a/overlay/packages/apps/Settings/res/values/config.xml b/overlay/packages/apps/Settings/res/values/config.xml new file mode 100644 index 0000000..9b87822 --- /dev/null +++ b/overlay/packages/apps/Settings/res/values/config.xml @@ -0,0 +1,24 @@ +<?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. +--> +<resources> + <!-- Defines the location of the fingerprint sensor on the device + 0 = back + 1 = front + 2 = left side + 3 = right side + --> + <integer name="config_fingerprintSensorLocation">1</integer> +</resources> |
