universal7885: overlay: Enable front-facing camera protection

* Prevents halo ring/effect on front camera

Change-Id: Idc5134655f4434dc7505a208a43e381eb22604f0
Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
AdarshGrewal 2022-02-22 11:31:40 +05:30 committed by roynatech2544
commit 07e6c17d48
No known key found for this signature in database
GPG key ID: 9675C32163D88D30

View file

@ -83,6 +83,22 @@
<!-- If this is true, device supports Sustained Performance Mode. -->
<bool name="config_sustainedPerformanceModeSupported">true</bool>
<!-- 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 37 37 0 1 0 82 0 a 37 37 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>
<!-- Whether WiFi display is supported by this device.
There are many prerequisites for this feature to work correctly.
Here are a few of them: