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:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user