| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | SPDX-FileCopyrightText: The LineageOS Project |
| 4 | SPDX-License-Identifier: Apache-2.0 |
| 5 | --> |
| 6 | <resources> |
| 7 | <!-- Flag indicating whether we should enable the automatic brightness. |
| 8 | Software implementation will be used if config_hardware_auto_brightness_available is not set --> |
| 9 | <bool name="config_automatic_brightness_available">true</bool> |
| 10 | |
| 11 | <!-- Indicate available ColorDisplayManager.COLOR_MODE_xxx. --> |
| 12 | <integer-array name="config_availableColorModes"> |
| 13 | <item>0</item> |
| 14 | <item>1</item> |
| 15 | <item>300</item> |
| 16 | </integer-array> |
| 17 | |
| 18 | <!-- Minimum screen brightness setting allowed by power manager. |
| 19 | -2 is invalid so setting will resort to int value specified above. |
| 20 | Set this to 0.0 to allow screen to go to minimal brightness. |
| 21 | The user is forbidden from setting the brightness below this level. --> |
| 22 | <item type="dimen" name="config_screenBrightnessSettingMinimumFloat">0.033404917</item> |
| 23 | |
| 24 | <!-- Maximum screen brightness allowed by the power manager. |
| 25 | -2 is invalid so setting will resort to int value specified above. |
| 26 | Set this to 1.0 for maximum brightness range. |
| 27 | The user is forbidden from setting the brightness above this level. --> |
| 28 | <item type="dimen" name="config_screenBrightnessSettingMaximumFloat">1.0</item> |
| 29 | |
| 30 | <!-- Default screen brightness setting set. |
| 31 | -2 is invalid so setting will resort to int value specified above. |
| 32 | Must be in the range specified by minimum and maximum. --> |
| 33 | <item name="config_screenBrightnessSettingDefaultFloat" format="float" type="dimen">0.38188976</item> |
| 34 | |
| 35 | <!-- Screen brightness used to dim the screen while dozing in a very low power state. |
| 36 | May be less than the minimum allowed brightness setting |
| 37 | that can be set by the user. --> |
| 38 | <item type="dimen" name="config_screenBrightnessDozeFloat">0.5</item> |
| 39 | |
| 40 | <!-- Stability requirements in milliseconds for accepting a new brightness level. This is used |
| 41 | for debouncing the light sensor. Different constants are used to debounce the light sensor |
| 42 | when adapting to brighter or darker environments. This parameter controls how quickly |
| 43 | brightness changes occur in response to an observed change in light level that exceeds the |
| 44 | hysteresis threshold. --> |
| 45 | <integer name="config_autoBrightnessBrighteningLightDebounce">500</integer> |
| 46 | <integer name="config_autoBrightnessDarkeningLightDebounce">500</integer> |
| 47 | |
| 48 | <!-- Screen brightness used to dim the screen when the user activity |
| 49 | timeout expires. May be less than the minimum allowed brightness setting |
| 50 | that can be set by the user. --> |
| 51 | <item name="config_screenBrightnessDimFloat" format="float" type="dimen">0.033404917</item> |
| 52 | |
| 53 | <!-- Array of light sensor lux values to define our levels for auto backlight brightness support. |
| 54 | The N entries of this array define N + 1 control points as follows: |
| 55 | (1-based arrays) |
| 56 | |
| 57 | Point 1: (0, value[1]): lux <= 0 |
| 58 | Point 2: (level[1], value[2]): 0 < lux <= level[1] |
| 59 | Point 3: (level[2], value[3]): level[2] < lux <= level[3] |
| 60 | ... |
| 61 | Point N+1: (level[N], value[N+1]): level[N] < lux |
| 62 | |
| 63 | The control points must be strictly increasing. Each control point |
| 64 | corresponds to an entry in the brightness backlight values arrays. |
| 65 | For example, if lux == level[1] (first element of the levels array) |
| 66 | then the brightness will be determined by value[2] (second element |
| 67 | of the brightness values array). |
| 68 | |
| 69 | Spline interpolation is used to determine the auto-brightness |
| 70 | backlight values for lux levels between these control points. |
| 71 | |
| 72 | Must be overridden in platform specific overlays --> |
| 73 | <integer-array name="config_autoBrightnessLevels"> |
| 74 | <item>2</item> |
| 75 | <item>4</item> |
| 76 | <item>10</item> |
| 77 | <item>20</item> |
| 78 | <item>40</item> |
| 79 | <item>100</item> |
| 80 | <item>325</item> |
| 81 | <item>1250</item> |
| 82 | <item>3500</item> |
| 83 | <item>5000</item> |
| 84 | <item>10000</item> |
| 85 | <item>20000</item> |
| 86 | <item>30000</item> |
| 87 | <item>200000</item> |
| 88 | </integer-array> |
| 89 | |
| 90 | <!-- Array of desired screen brightness in nits corresponding to the lux values |
| 91 | in the config_autoBrightnessLevels array. The display brightness is defined as the measured |
| 92 | brightness of an all-white image. |
| 93 | |
| 94 | If this is defined then: |
| 95 | - config_autoBrightnessLcdBacklightValues should not be defined |
| 96 | - config_screenBrightnessNits must be defined |
| 97 | - config_screenBrightnessBacklight must be defined |
| 98 | |
| 99 | This array should have size one greater than the size of the config_autoBrightnessLevels |
| 100 | array. The brightness values must be non-negative and non-decreasing. This must be |
| 101 | overridden in platform specific overlays --> |
| 102 | <integer-array name="config_autoBrightnessDisplayValuesNits"> |
| 103 | <item>3</item> |
| 104 | <item>7</item> |
| 105 | <item>10</item> |
| 106 | <item>24</item> |
| 107 | <item>64</item> |
| 108 | <item>82</item> |
| 109 | <item>90</item> |
| 110 | <item>105</item> |
| 111 | <item>192</item> |
| 112 | <item>412</item> |
| 113 | <item>500</item> |
| 114 | <item>700</item> |
| 115 | <item>1000</item> |
| 116 | <item>1200</item> |
| 117 | <item>1600</item> |
| 118 | </integer-array> |
| 119 | |
| 120 | <!-- An array describing the screen's backlight values corresponding to the brightness |
| 121 | values in the config_screenBrightnessNits array. |
| 122 | |
| 123 | This array should be equal in size to config_screenBrightnessBacklight. --> |
| 124 | <integer-array name="config_screenBrightnessBacklight"> |
| 125 | <item>9</item> |
| 126 | <item>26</item> |
| 127 | <item>34</item> |
| 128 | <item>52</item> |
| 129 | <item>85</item> |
| 130 | <item>96</item> |
| 131 | <item>100</item> |
| 132 | <item>107</item> |
| 133 | <item>141</item> |
| 134 | <item>201</item> |
| 135 | <item>220</item> |
| 136 | <item>227</item> |
| 137 | <item>236</item> |
| 138 | <item>243</item> |
| 139 | <item>255</item> |
| 140 | </integer-array> |
| 141 | |
| 142 | <!-- An array of floats describing the screen brightness in nits corresponding to the backlight |
| 143 | values in the config_screenBrightnessBacklight array. On OLED displays these values |
| 144 | should be measured with an all white image while the display is in the fully on state. |
| 145 | Note that this value should *not* reflect the maximum brightness value for any high |
| 146 | brightness modes but only the maximum brightness value obtainable in a sustainable manner. |
| 147 | |
| 148 | This array should be equal in size to config_screenBrightnessBacklight --> |
| 149 | <integer-array name="config_screenBrightnessNits"> |
| 150 | <item>3</item> |
| 151 | <item>7</item> |
| 152 | <item>10</item> |
| 153 | <item>24</item> |
| 154 | <item>64</item> |
| 155 | <item>82</item> |
| 156 | <item>90</item> |
| 157 | <item>105</item> |
| 158 | <item>192</item> |
| 159 | <item>412</item> |
| 160 | <item>500</item> |
| 161 | <item>700</item> |
| 162 | <item>1000</item> |
| 163 | <item>1200</item> |
| 164 | <item>1600</item> |
| 165 | </integer-array> |
| 166 | |
| 167 | <!-- Low zone lux thresholds --> |
| 168 | <integer-array name="config_ambientThresholdsOfPeakRefreshRate"> |
| 169 | <item>-1</item> |
| 170 | </integer-array> |
| 171 | |
| 172 | <!-- The display uses different gamma curves for different refresh rates. It's hard for panel |
| 173 | vendors to tune the curves to have exact same brightness for different refresh rate. So |
| 174 | flicker could be observed at switch time. The issue is worse at the gamma lower end. |
| 175 | In addition, human eyes are more sensitive to the flicker at darker environment. |
| 176 | To prevent flicker, we only support higher refresh rates if the display brightness is above |
| 177 | a threshold. |
| 178 | For example, no higher refresh rate if |
| 179 | display brightness <= disp0 && ambient brightness <= amb0 |
| 180 | || display brightness <= disp1 && ambient brightness <= amb1 |
| 181 | Brightness thresholds are paired with lux thresholds - they both have to be met. |
| 182 | A negative brightness or lux value means that only one threshold should be used - e.g. if |
| 183 | the brightness value is negative, only the lux threshold is applied. --> |
| 184 | <!-- Low zone brightness thresholds in the range [0, 255] --> |
| 185 | <integer-array name="config_brightnessThresholdsOfPeakRefreshRate"> |
| 186 | <item>-1</item> |
| 187 | </integer-array> |
| 188 | |
| 189 | <!-- Vibrator pattern for feedback when selecting an hour/minute tick of a Clock --> |
| 190 | <integer-array name="config_clockTickVibePattern"> |
| 191 | <item>0</item> |
| 192 | <item>13</item> |
| 193 | </integer-array> |
| 194 | |
| 195 | <!-- Vibrator pattern for feedback about a long screen/key press --> |
| 196 | <integer-array name="config_longPressVibePattern"> |
| 197 | <item>0</item> |
| 198 | <item>75</item> |
| 199 | </integer-array> |
| 200 | |
| 201 | |
| 202 | <!-- Mapping for default ColorDisplayManager.COLOR_MODE_xxx to other color modes, if |
| 203 | if applicable. By default, all map to the same value. --> |
| 204 | <integer-array name="config_mappedColorModes"> |
| 205 | <item>0</item> |
| 206 | <item>1</item> |
| 207 | <item>300</item> |
| 208 | </integer-array> |
| 209 | |
| 210 | |
| 211 | <!-- Vibrator pattern for feedback about touching a virtual key --> |
| 212 | <integer-array name="config_virtualKeyVibePattern"> |
| 213 | <item>0</item> |
| 214 | <item>45</item> |
| 215 | </integer-array> |
| 216 | |
| 217 | <!-- The default peak refresh rate for a given device. Change this value if you want to prevent |
| 218 | the framework from using higher refresh rates, even if display modes with higher refresh |
| 219 | rates are available from hardware composer. Only has an effect if the value is |
| 220 | non-zero. --> |
| 221 | <integer name="config_defaultPeakRefreshRate">120</integer> |
| 222 | |
| 223 | <!-- A string config in svg path format for the main display shape. |
| 224 | (@see https://www.w3.org/TR/SVG/paths.html#PathData). |
| 225 | |
| 226 | This config must be set unless: |
| 227 | 1. {@link Configuration#isScreenRound} is true which means the display shape is circular |
| 228 | and the system will auto-generate a circular shape. |
| 229 | 2. The display has no rounded corner and the system will auto-generate a rectangular shape. |
| 230 | (@see DisplayShape#createDefaultDisplayShape) |
| 231 | |
| 232 | Note: If the display supports multiple resolutions, please define the path config based on |
| 233 | the highest resolution so that it can be scaled correctly in each resolution. --> |
| 234 | <string name="config_mainDisplayShape" translatable="false">"M20 0C10.7 0 0 10.7 0 24v0h24V0z"</string> |
| 235 | </resources> |
Roker2 / Vienna fw overlay
Last active 1 month ago
https://github.com/LineageOS/android_device_google_shusky/tree/bf3858753d35531e70f79c6dca18718092be289d/shiba/overlay/FrameworkResOverlayVendorShiba
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <!-- |
| 3 | SPDX-FileCopyrightText: The LineageOS Project |
| 4 | SPDX-License-Identifier: Apache-2.0 |
| 5 | --> |
| 6 | <resources> |
| 7 | <!-- Height of the status bar in portrait. |
| 8 | Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead. |
| 9 | --> |
| 10 | <dimen name="status_bar_height_portrait">24.0dip</dimen> |
| 11 | |
| 12 | <!-- Height of the status bar in landscape. |
| 13 | Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead. |
| 14 | --> |
| 15 | <dimen name="status_bar_height_landscape">24.0dip</dimen> |
| 16 | |
| 17 | <!-- Default radius of the software rounded corners. --> |
| 18 | <dimen name="rounded_corner_radius">24.0dip</dimen> |
| 19 | </resources> |