diff options
| author | Luca Stefani <luca.stefani.ge1@gmail.com> | 2018-09-02 12:29:17 +0200 |
|---|---|---|
| committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2018-10-14 14:22:33 +0200 |
| commit | a15d3532e3b8a14b4140bb90d15daefc2d452afc (patch) | |
| tree | b3bd3cc85c0fad5cf829103ac7a7254feeb01109 | |
| parent | 98c720bc27a5110de15b886aadaa2859a37db302 (diff) | |
enchilada: overlay: Add cutout settings
Change-Id: Ib24e0a33a97ce3b528dac52dfb01b56f7e954c67
| -rw-r--r-- | overlay/frameworks/base/core/res/res/values/config.xml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/overlay/frameworks/base/core/res/res/values/config.xml b/overlay/frameworks/base/core/res/res/values/config.xml index 31c407f..2055a49 100644 --- a/overlay/frameworks/base/core/res/res/values/config.xml +++ b/overlay/frameworks/base/core/res/res/values/config.xml @@ -88,4 +88,35 @@ For this time after the screen turns on, the Power Manager will not debounce light sensor readings --> <integer name="config_lightSensorWarmupTime">200</integer> + + <!-- 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. + --> + <string translatable="false" name="config_mainBuiltInDisplayCutout"> + M 0,0 + L -183, 0 + A 24.0, 24.0, 0, 0, 1, -159.0, 22.0 + A 64.0, 64.0, 0, 0, 0, -95.0, 80.0 + L 95.0, 80.0 A 64.0, 64.0, 0, 0, 0, 159.0, 22.0 + A 24.0, 24.0, 0, 0, 1, 183.0, 0 + Z + </string> + + <!-- Whether the display cutout region of the main built-in display should be forced to + black in software (to avoid aliasing or emulate a cutout that is not physically existent). + --> + <bool name="config_fillMainBuiltInDisplayCutout">true</bool> + + <!-- Height of the status bar --> + <dimen name="status_bar_height_portrait">80px</dimen> + <dimen name="status_bar_height_landscape">80px</dimen> </resources> |
