alioth: Add front-facing camera protection

* Extra padding for front facing camera cutout when camera is in use
* Remove flares on high brightness while using front camera

Change-Id: I68acb0deecbecd916be90de0a9043ea4703553df
This commit is contained in:
althafvly
2021-11-07 14:21:11 +05:30
parent f17d1e5690
commit 0cd23ab056
2 changed files with 22 additions and 1 deletions

View File

@@ -20,6 +20,26 @@
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources>
<!-- A path similar to frameworks/base/core/res/res/values/config.xml
config_mainBuiltInDisplayCutout that describes a path larger than the exact path of a display
cutout. If present as well as config_enableDisplayCutoutProtection is set to true, then
SystemUI will draw this "protection path" instead of the display cutout path that is normally
used for anti-aliasing.
This path will only be drawn when the front-facing camera turns on, otherwise the main
DisplayCutout path will be rendered
-->
<string translatable="false" name="config_frontBuiltInDisplayCutoutProtection">
M 500,52
a 35,35 0 1 0 82,0 35,35 0 1 0 -82,0
Z
</string>
<!-- ID for the camera that needs extra protection -->
<string translatable="false" name="config_protectedCameraId">1</string>
<!-- Flag to turn on the rendering of the above path or not -->
<bool name="config_enableDisplayCutoutProtection">true</bool>
<!-- Doze: check proximity sensor before pulsing? -->
<bool name="doze_proximity_check_before_pulse">false</bool>
</resources>

View File

@@ -16,5 +16,6 @@
*/
-->
<resources>
<dimen name="rounded_corner_content_padding">52px</dimen>
<!-- for 20dp of padding at 3.5px/dp at default density -->
<dimen name="rounded_corner_content_padding">50px</dimen>
</resources>