aboutsummaryrefslogtreecommitdiff
path: root/rro_overlays/FrameworksResOverlayVeux
diff options
context:
space:
mode:
authorkubersharma001 <kubersharma001@gmail.com>2022-06-27 18:20:29 +0530
committersinanmohd <pcmsinan@gmail.com>2023-01-05 21:27:38 +0530
commitaa21958c523059f3578a2fa5a67112d80905f42f (patch)
treeae833fb24bee25d9e81c84e8e7456ddf38f37c0d /rro_overlays/FrameworksResOverlayVeux
parent79b51c887b2b52d0fd5cda4153d8a7f1ecbf341f (diff)
veux: FrameworksResOverlay: Import and set more defaults
- ref: 1. ghostrider-reborn/android_device_xiaomi_lisa 2. ArrowOS-Devices/android_device_xiaomi_sm8350-common - Adjust and cleanup as per veux Change-Id: I9fc92e55c1af3e3820670523b59f3fb04270bd66
Diffstat (limited to 'rro_overlays/FrameworksResOverlayVeux')
-rw-r--r--rro_overlays/FrameworksResOverlayVeux/res/values/config.xml141
1 files changed, 129 insertions, 12 deletions
diff --git a/rro_overlays/FrameworksResOverlayVeux/res/values/config.xml b/rro_overlays/FrameworksResOverlayVeux/res/values/config.xml
index 6c9280e..2f92c89 100644
--- a/rro_overlays/FrameworksResOverlayVeux/res/values/config.xml
+++ b/rro_overlays/FrameworksResOverlayVeux/res/values/config.xml
@@ -275,16 +275,16 @@
This array should be equal in size to config_screenBrightnessBacklight -->
<array name="config_screenBrightnessNits">
<item>4.5</item>
- <item>1000.0</item>
+ <item>1000</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">
+ <array name="config_screenBrightnessBacklight">
<item>1</item>
<item>255</item>
- </integer-array>
+ </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
@@ -294,9 +294,102 @@
<integer name="config_autoBrightnessBrighteningLightDebounce">1000</integer>
<integer name="config_autoBrightnessDarkeningLightDebounce">1000</integer>
+ <!-- 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">13</integer>
+
<!-- The maximum range of gamma adjustment possible using the screen
auto-brightness adjustment setting. -->
- <fraction name="config_autoBrightnessAdjustmentMaxGamma">100.0%</fraction>
+ <fraction name="config_autoBrightnessAdjustmentMaxGamma">100%</fraction>
+
+ <!-- Minimum screen brightness setting allowed by power manager.
+ The user is forbidden from setting the brightness below this level.
+ Equivalent to 17/4095. -->
+ <item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.00415140415</item>
+
+ <!-- Maximum screen brightness allowed by the power manager.
+ The user is forbidden from setting the brightness above this level. -->
+ <item name="config_screenBrightnessSettingMaximumFloat" format="float" type="dimen">1.0</item>
+
+ <!-- Default screen brightness setting
+ Must be in the range specified by minimum and maximum.
+ Equivalent to 67/255 (default for this device) -->
+ <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.26274509804</item>
+
+ <!-- Array of ambient lux threshold values. This is used for determining hysteresis constraint
+ values by calculating the index to use for lookup and then setting the constraint value
+ to the corresponding value of the array. The new brightening hysteresis constraint value
+ is the n-th element of config_ambientBrighteningThresholds, and the new darkening
+ hysteresis constraint value is the n-th element of config_ambientDarkeningThresholds.
+ The (zero-based) index is calculated as follows: (MAX is the largest index of the array)
+ condition calculated index
+ value < level[0] 0
+ level[n] <= value < level[n+1] n+1
+ level[MAX] <= value MAX+1 -->
+ <integer-array name="config_ambientThresholdLevels">
+ <item>2</item>
+ <item>10</item>
+ <item>30</item>
+ <item>100</item>
+ <item>800</item>
+ <item>2000</item>
+ <item>4000</item>
+ </integer-array>
+
+ <!-- Array of hysteresis constraint values for brightening, represented as tenths of a
+ percent. The length of this array is assumed to be one greater than
+ config_ambientThresholdLevels. The brightening threshold is calculated as
+ lux * (1.0f + CONSTRAINT_VALUE). When the current lux is higher than this threshold,
+ the screen brightness is recalculated. See the config_ambientThresholdLevels
+ description for how the constraint value is chosen. -->
+ <integer-array name="config_ambientBrighteningThresholds">
+ <item>2</item>
+ <item>5</item>
+ <item>10</item>
+ <item>30</item>
+ <item>100</item>
+ <item>400</item>
+ <item>600</item>
+ <item>1000</item>
+ </integer-array>
+
+ <!-- Array of hysteresis constraint values for darkening, represented as tenths of a
+ percent. The length of this array is assumed to be one greater than
+ config_ambientThresholdLevels. The darkening threshold is calculated as
+ lux * (1.0f - CONSTRAINT_VALUE). When the current lux is lower than this threshold,
+ the screen brightness is recalculated. See the config_ambientThresholdLevels
+ description for how the constraint value is chosen. -->
+ <integer-array name="config_ambientDarkeningThresholds">
+ <item>800</item>
+ <item>800</item>
+ <item>500</item>
+ <item>500</item>
+ <item>500</item>
+ <item>500</item>
+ <item>500</item>
+ <item>500</item>
+ </integer-array>
+
+ <!-- Array of hysteresis constraint values for brightening, represented as tenths of a
+ percent. The length of this array is assumed to be one greater than
+ config_screenThresholdLevels. The brightening threshold is calculated as
+ screenBrightness * (1.0f + CONSTRAINT_VALUE). When the new screen brightness is higher
+ than this threshold, it is applied. See the config_screenThresholdLevels description for
+ how the constraint value is chosen. -->
+ <integer-array name="config_screenBrighteningThresholds">
+ <item>0</item>
+ </integer-array>
+
+ <!-- Array of hysteresis constraint values for darkening, represented as tenths of a
+ percent. The length of this array is assumed to be one greater than
+ config_screenThresholdLevels. The darkening threshold is calculated as
+ screenBrightness * (1.0f - CONSTRAINT_VALUE). When the new screen brightness is lower than
+ this threshold, it is applied. See the config_screenThresholdLevels description for how
+ the constraint value is chosen. -->
+ <integer-array name="config_screenDarkeningThresholds">
+ <item>0</item>
+ </integer-array>
<!-- Vibrator pattern for feedback about a long screen/key press -->
<integer-array name="config_longPressVibePattern">
@@ -341,7 +434,7 @@
<!-- 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
+ <!-- The default refresh rate. veux 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>
@@ -406,6 +499,7 @@
<item>bluetooth,7,7,2,-1,true</item>
<item>mobile_emergency,15,0,5,-1,true</item>
<item>ethernet,9,9,9,-1,true</item>
+ <item>wifi_slave,30,1,1,-1,true</item>
</string-array>
<!-- This string array should be overridden by the device to present a list of radio
@@ -445,11 +539,6 @@
-->
<bool name="config_wifiDisplaySupportsProtectedBuffers">false</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">true</bool>
-
<!-- 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()
@@ -496,7 +585,8 @@
<!-- Screen brightness used to dim the screen while dozing in a very low power state.
May be less than the minimum allowed brightness setting
that can be set by the user. -->
- <integer name="config_screenBrightnessDoze">17</integer>
+ <integer name="config_screenBrightnessDoze">13</integer>
+ <item name="config_screenBrightnessDozeFloat" format="float" type="dimen">0.00317460317</item>
<!-- Configure mobile tcp buffer sizes in the form:
rat-name:rmem_min,rmem_def,rmem_max,wmem_min,wmem_def,wmem_max
@@ -623,4 +713,31 @@
available on some devices. -->
<bool name="config_enableHapticTextHandle">true</bool>
-</resources> \ No newline at end of file
+ <!-- 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">64</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>
+</resources>