rosemary: rro_overlays: Update FrameworkResOverlay from MIUI 13

Change-Id: I94b65bf0ffcf16ac95eb1d979c7190221af3b888
This commit is contained in:
Matsvei Niaverau
2023-01-19 12:15:24 +01:00
parent 6b9bfb8b3c
commit 6aeb7b251e
2 changed files with 105 additions and 138 deletions

View File

@@ -104,8 +104,8 @@
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. -->
<array name="config_ambientBrighteningThresholds">
<item>5</item>
<integer-array name="config_ambientBrighteningThresholds">
<item>2</item>
<item>5</item>
<item>10</item>
<item>30</item>
@@ -113,7 +113,7 @@
<item>400</item>
<item>600</item>
<item>1000</item>
</array>
</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
@@ -121,16 +121,16 @@
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. -->
<array name="config_ambientDarkeningThresholds">
<item>800</item>
<item>800</item>
<item>800</item>
<integer-array name="config_ambientDarkeningThresholds">
<item>800</item>
<item>800</item>
<item>500</item>
<item>500</item>
<item>500</item>
</array>
<item>500</item>
<item>500</item>
<item>500</item>
</integer-array>
<!-- 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
@@ -142,7 +142,7 @@
value < level[0] 0
level[n] <= value < level[n+1] n+1
level[MAX] <= value MAX+1 -->
<array name="config_ambientThresholdLevels">
<integer-array name="config_ambientThresholdLevels">
<item>2</item>
<item>10</item>
<item>30</item>
@@ -150,7 +150,7 @@
<item>800</item>
<item>2000</item>
<item>4000</item>
</array>
</integer-array>
<!-- Array of desired screen brightness in nits corresponding to the lux values
in the config_autoBrightnessLevels array. As with config_screenBrightnessMinimumNits and
@@ -166,29 +166,38 @@
<integer-array name="config_autoBrightnessDisplayValuesNits">
<item>5</item>
<item>5</item>
<item>5</item>
<item>5</item>
<item>15</item>
<item>6</item>
<item>10</item>
<item>16</item>
<item>20</item>
<item>24</item>
<item>37</item>
<item>47</item>
<item>61</item>
<item>76</item>
<item>83</item>
<item>83</item>
<item>83</item>
<item>87</item>
<item>93</item>
<item>107</item>
<item>117</item>
<item>124</item>
<item>133</item>
<item>166</item>
<item>182</item>
<item>270</item>
<item>315</item>
<item>373</item>
<item>442</item>
<item>30</item>
<item>35</item>
<item>45</item>
<item>55</item>
<item>70</item>
<item>85</item>
<item>98</item>
<item>98</item>
<item>98</item>
<item>99</item>
<item>100</item>
<item>100</item>
<item>101</item>
<item>103</item>
<item>103</item>
<item>106</item>
<item>108</item>
<item>114</item>
<item>130</item>
<item>150</item>
<item>180</item>
<item>200</item>
<item>250</item>
<item>280</item>
<item>320</item>
<item>350</item>
<item>390</item>
<item>455</item>
</integer-array>
@@ -197,34 +206,43 @@
than the size of the config_autoBrightnessLevels array.
The brightness values must be between 0 and 255 and be non-decreasing.
This must be overridden in platform specific overlays -->
<array name="config_autoBrightnessLcdBacklightValues">
<item>3</item>
<item>3</item>
<item>3</item>
<item>3</item>
<item>8</item>
<item>13</item>
<item>20</item>
<item>25</item>
<item>33</item>
<item>41</item>
<integer-array name="config_autoBrightnessLcdBacklightValues">
<item>22</item>
<item>22</item>
<item>28</item>
<item>45</item>
<item>45</item>
<item>45</item>
<item>47</item>
<item>50</item>
<item>58</item>
<item>63</item>
<item>67</item>
<item>72</item>
<item>90</item>
<item>99</item>
<item>150</item>
<item>175</item>
<item>208</item>
<item>88</item>
<item>108</item>
<item>135</item>
<item>158</item>
<item>205</item>
<item>248</item>
<item>255</item>
</array>
<item>318</item>
<item>391</item>
<item>475</item>
<item>475</item>
<item>475</item>
<item>480</item>
<item>485</item>
<item>485</item>
<item>493</item>
<item>503</item>
<item>503</item>
<item>518</item>
<item>526</item>
<item>553</item>
<item>610</item>
<item>700</item>
<item>835</item>
<item>930</item>
<item>1163</item>
<item>1305</item>
<item>1488</item>
<item>1625</item>
<item>1805</item>
<item>2047</item>
</integer-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 control points as follows:
@@ -242,93 +260,42 @@
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">
<integer-array name="config_autoBrightnessLevels">
<item>1</item>
<item>2</item>
<item>3</item>
<item>4</item>
<item>5</item>
<item>8</item>
<item>6</item>
<item>7</item>
<item>9</item>
<item>13</item>
<item>17</item>
<item>21</item>
<item>26</item>
<item>30</item>
<item>34</item>
<item>39</item>
<item>16</item>
<item>20</item>
<item>24</item>
<item>60</item>
<item>140</item>
<item>310</item>
<item>400</item>
<item>500</item>
<item>600</item>
<item>1000</item>
<item>1200</item>
<item>1500</item>
<item>2100</item>
<item>3000</item>
<item>3500</item>
<item>4000</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. -->
<array name="config_screenBrightnessBacklight">
<item>@null</item>
<item>1</item>
<item>10</item>
<item>15</item>
<item>30</item>
<item>45</item>
<item>60</item>
<item>75</item>
<item>90</item>
<item>105</item>
<item>120</item>
<item>135</item>
<item>150</item>
<item>165</item>
<item>180</item>
<item>195</item>
<item>125</item>
<item>130</item>
<item>140</item>
<item>160</item>
<item>185</item>
<item>210</item>
<item>225</item>
<item>240</item>
<item>255</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>@null</item>
<item>4</item>
<item>22</item>
<item>30</item>
<item>68</item>
<item>95</item>
<item>133</item>
<item>165</item>
<item>192</item>
<item>218</item>
<item>255</item>
<item>290</item>
<item>326</item>
<item>352</item>
<item>384</item>
<item>399</item>
<item>422</item>
<item>432</item>
<item>442</item>
<item>455</item>
</array>
<!-- Minimum screen brightness setting allowed by power manager.
The user is forbidden from setting the brightness below this level.
Equivalent to 1/255. -->
<item name="config_screenBrightnessSettingMinimumFloat" format="float" type="dimen">0.003921569</item>
<item>275</item>
<item>295</item>
<item>380</item>
<item>600</item>
<item>800</item>
<item>950</item>
<item>1300</item>
<item>1650</item>
<item>1900</item>
<item>2100</item>
<item>2400</item>
<item>2700</item>
<item>3000</item>
</integer-array>
<!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
autodetected from the Configuration. -->

View File

@@ -20,10 +20,10 @@
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
<!-- Radius of the software rounded corners. -->
<dimen name="rounded_corner_radius_bottom">90.0px</dimen>
<dimen name="rounded_corner_radius_top">95.0px</dimen>
<dimen name="rounded_corner_radius_bottom">106.0px</dimen>
<dimen name="rounded_corner_radius_top">106.0px</dimen>
<!-- Height of the status bar -->
<dimen name="status_bar_height_portrait">78.0px</dimen>
<dimen name="status_bar_height_portrait">93.0px</dimen>
</resources>