mirror of
https://github.com/Evolution-X-Devices/device_oplus_mt6893-common
synced 2026-02-01 09:51:11 +00:00
ossi: overlay: Match udfps configs location to Lineage
This commit is contained in:
@@ -13,10 +13,7 @@
|
||||
|
||||
<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2">
|
||||
|
||||
<!-- Color of the UDFPS view -->
|
||||
<color name="config_udfpsColor">#00ffffff</color>
|
||||
|
||||
<!-- HBM type of UDFPS overlay.
|
||||
<!-- HBM type of UDFPS overlay.
|
||||
0 - GLOBAL HBM
|
||||
1 - LOCAL HBM
|
||||
-->
|
||||
@@ -31,51 +28,6 @@
|
||||
<!-- The padding on the top of the statusbar (usually 0) -->
|
||||
<dimen name="status_bar_padding_top">24.0px</dimen>
|
||||
|
||||
<!-- Use framework FOD dimming instead of kernel dimming -->
|
||||
<bool name="config_udfpsFrameworkDimming">true</bool>
|
||||
|
||||
<!-- Array of brightness-alpha lut for framework dimming -->
|
||||
<string-array name="config_udfpsDimmingBrightnessAlphaArray" translatable="false">
|
||||
<item>0,255</item>
|
||||
<item>190,238</item>
|
||||
<item>260,229</item>
|
||||
<item>320,228</item>
|
||||
<item>390,220</item>
|
||||
<item>460,210</item>
|
||||
<item>530,202</item>
|
||||
<item>600,194</item>
|
||||
<item>670,184</item>
|
||||
<item>740,176</item>
|
||||
<item>810,171</item>
|
||||
<item>880,165</item>
|
||||
<item>950,160</item>
|
||||
<item>1020,152</item>
|
||||
<item>1090,146</item>
|
||||
<item>1160,139</item>
|
||||
<item>1230,133</item>
|
||||
<item>1300,128</item>
|
||||
<item>1370,121</item>
|
||||
<item>1440,116</item>
|
||||
<item>1510,111</item>
|
||||
<item>1580,106</item>
|
||||
<item>1650,99</item>
|
||||
<item>1720,94</item>
|
||||
<item>1790,89</item>
|
||||
<item>1860,83</item>
|
||||
<item>1930,80</item>
|
||||
<item>2000,74</item>
|
||||
<item>2047,69</item>
|
||||
</string-array>
|
||||
|
||||
<!-- The scale factor for framework dimming -->
|
||||
<integer name="config_udfpsDimmingBrightnessMin">649</integer>
|
||||
<integer name="config_udfpsDimmingBrightnessMax">2047</integer>
|
||||
|
||||
<!-- The amount of delay to add when disabling the dimming.
|
||||
This is used to prevent flickers due to the dimming being disabled
|
||||
before the screen has had chance to switch out of HBM mode -->
|
||||
<integer name="config_udfpsDimmingDisableDelay">45</integer>
|
||||
|
||||
<!-- Allow devices override audio panel location to the left side -->
|
||||
<bool name="config_audioPanelOnLeftSide">true</bool>
|
||||
|
||||
|
||||
67
rro_overlays/SystemUIOverlay/res/values/lineage_config.xml
Normal file
67
rro_overlays/SystemUIOverlay/res/values/lineage_config.xml
Normal file
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2018-2022 The LineageOS 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>
|
||||
<!-- Color of the UDFPS view -->
|
||||
<color name="config_udfpsColor">#00ffffff</color>
|
||||
|
||||
<!-- Use framework FOD dimming instead of kernel dimming -->
|
||||
<bool name="config_udfpsFrameworkDimming">true</bool>
|
||||
|
||||
<!-- Array of brightness-alpha lut for framework dimming -->
|
||||
<string-array name="config_udfpsDimmingBrightnessAlphaArray" translatable="false">
|
||||
<item>0,255</item>
|
||||
<item>190,238</item>
|
||||
<item>260,229</item>
|
||||
<item>320,228</item>
|
||||
<item>390,220</item>
|
||||
<item>460,210</item>
|
||||
<item>530,202</item>
|
||||
<item>600,194</item>
|
||||
<item>670,184</item>
|
||||
<item>740,176</item>
|
||||
<item>810,171</item>
|
||||
<item>880,165</item>
|
||||
<item>950,160</item>
|
||||
<item>1020,152</item>
|
||||
<item>1090,146</item>
|
||||
<item>1160,139</item>
|
||||
<item>1230,133</item>
|
||||
<item>1300,128</item>
|
||||
<item>1370,121</item>
|
||||
<item>1440,116</item>
|
||||
<item>1510,111</item>
|
||||
<item>1580,106</item>
|
||||
<item>1650,99</item>
|
||||
<item>1720,94</item>
|
||||
<item>1790,89</item>
|
||||
<item>1860,83</item>
|
||||
<item>1930,80</item>
|
||||
<item>2000,74</item>
|
||||
<item>2047,69</item>
|
||||
</string-array>
|
||||
|
||||
<!-- Brightness range min for UDFPS dimming -->
|
||||
<integer name="config_udfpsDimmingBrightnessMin">649</integer>
|
||||
|
||||
<!-- Brightness range max for UDFPS dimming -->
|
||||
<integer name="config_udfpsDimmingBrightnessMax">2047</integer>
|
||||
|
||||
<!-- The amount of delay to add when disabling the dimming.
|
||||
This is used to prevent flickers due to the dimming being disabled
|
||||
before the screen has had chance to switch out of HBM mode -->
|
||||
<integer name="config_udfpsDimmingDisableDelay">45</integer>
|
||||
</resources>
|
||||
Reference in New Issue
Block a user