Adjust status bar rounded corner and display cutout region am: 19593b4b96

Original change: https://googleplex-android-review.googlesource.com/c/device/google/raviole/+/15172902

Change-Id: Ief85065c34e4a1de382770d6a4bde8f6cdf1f17e
This commit is contained in:
lbill 2021-07-02 13:03:30 +00:00 committed by Automerger Merge Worker
commit d4dc88780b
2 changed files with 19 additions and 6 deletions

View file

@ -33,17 +33,17 @@
</string>
<string translatable="false" name="config_mainBuiltInDisplayCutoutRectApproximation">
M 655,0
h 126
M 653,0
h 130
v 130
h -126
h -130
Z
@left
</string>
<!-- Radius of the software rounded corners. -->
<dimen name="rounded_corner_radius">25px</dimen>
<dimen name="rounded_corner_radius">38px</dimen>
<!-- Adjustment for software rounded corners since corners aren't perfectly round. -->
<dimen name="rounded_corner_radius_adjustment">5px</dimen>
@ -168,4 +168,15 @@
<!-- The max vibration strength allowed in audio haptic channels. -->
<item name="config_hapticChannelMaxVibrationAmplitude" format="float" type="dimen">0.3</item>
<!-- Height of the status bar in portrait. The height should be
Max((status bar content height + waterfall top size), top cutout size) -->
<dimen name="status_bar_height_portrait">145px</dimen>
<dimen name="status_bar_height_landscape">28dp</dimen>
<!-- Height of area above QQS where battery/time go (equal to status bar) -->
<dimen name="quick_qs_offset_height">145px</dimen>
<!-- Height of the status bar header bar when on Keyguard (match status_bar_portrait) -->
<dimen name="status_bar_header_height_keyguard">@*android:dimen/status_bar_height_portrait</dimen>
</resources>

View file

@ -17,7 +17,10 @@
-->
<resources>
<!-- for 20dp of padding at 3.5px/dp at default density -->
<dimen name="rounded_corner_content_padding">5px</dimen>
<dimen name="rounded_corner_content_padding">50px</dimen>
<!-- the padding on the top of the statusbar (usually 0) -->
<dimen name="status_bar_padding_top">1px</dimen>
<!-- Padding for the system icons on the keyguard (when no multi user switch is showing).
The icons always have a 4dp padding in the container so we only need 56 extra px of padding
@ -44,7 +47,6 @@
<bool name="config_enableDisplayCutoutProtection">true</bool>
<!-- Location on the screen of the center of the physical power button. -->
<dimen name="physical_power_button_center_screen_location_y">940px</dimen>