grus: overlay: Set config_mainBuiltInDisplayCutout

* Made with https://github.com/SebaUbuntu/DisplayCutoutViewer

Change-Id: Ie999eab3491cf7643f91181160f58b3baf38bee9
This commit is contained in:
Sebastiano Barezzi 2023-06-24 17:50:54 +02:00
parent 05623083af
commit fc35d4b36d
No known key found for this signature in database
GPG Key ID: 763BD3AE91A7A13F
1 changed files with 17 additions and 0 deletions

View File

@ -300,4 +300,21 @@
<!-- Type of the udfps long press sensor. Empty if long press is not supported. -->
<string name="config_dozeUdfpsLongPressSensorType" translatable="false">org.lineageos.sensor.udfps</string>
<!-- The bounding path of the cutout region of the main built-in display.
Must either be empty if there is no cutout region, or a string that is parsable by
{@link android.util.PathParser}.
The path is assumed to be specified in display coordinates with pixel units and in
the display's native orientation, with the origin of the coordinate system at the
center top of the display.
To facilitate writing device-independent emulation overlays, the marker `@dp` can be
appended after the path string to interpret coordinates in dp instead of px units.
Note that a physical cutout should be configured in pixels for the best results.
Example for a 10px x 10px square top-center cutout:
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z</string>
Example for a 10dp x 10dp square top-center cutout:
<string ...>M -5,0 L -5,10 L 5,10 L 5,0 Z @dp</string>
@see https://www.w3.org/TR/SVG/paths.html#PathData
-->
<string translatable="false" name="config_mainBuiltInDisplayCutout">M -81,0 L -39,81 L 39,81 L 81,0 Z</string>
</resources>