Loading core/java/com/android/internal/policy/SystemBarUtils.java +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ public final class SystemBarUtils { * Gets the status bar height with a specific display cutout. */ public static int getStatusBarHeight(Resources res, DisplayCutout cutout) { final int defaultSize = res.getDimensionPixelSize(R.dimen.status_bar_height); final int defaultSize = res.getDimensionPixelSize(R.dimen.status_bar_height_default); final int safeInsetTop = cutout == null ? 0 : cutout.getSafeInsetTop(); final int waterfallInsetTop = cutout == null ? 0 : cutout.getWaterfallInsets().top; // The status bar height should be: Loading core/res/res/values-land/dimens.xml +2 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,8 @@ <dimen name="password_keyboard_spacebar_vertical_correction">2dip</dimen> <dimen name="preference_widget_width">72dp</dimen> <!-- Height of the status bar --> <dimen name="status_bar_height">@dimen/status_bar_height_landscape</dimen> <!-- Height of area above QQS where battery/time go --> <dimen name="quick_qs_offset_height">48dp</dimen> <!-- Default height of an action bar. --> Loading core/res/res/values/dimens.xml +5 −2 Original line number Diff line number Diff line Loading @@ -39,14 +39,17 @@ <!-- Elevation of toast view --> <dimen name="toast_elevation">2dp</dimen> <!-- The default height of the status bar used in {@link SystemBarUtils#getStatusBarHeight} to calculate the status bar height. --> <dimen name="status_bar_height_default">24dp</dimen> <!-- Height of the status bar. Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead. --> <dimen name="status_bar_height">24dp</dimen> <dimen name="status_bar_height">@dimen/status_bar_height_portrait</dimen> <!-- Height of the status bar in portrait. Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead. --> <dimen name="status_bar_height_portrait">@dimen/status_bar_height</dimen> <dimen name="status_bar_height_portrait">24dp</dimen> <!-- Height of the status bar in landscape. Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead. --> Loading core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -4492,4 +4492,6 @@ <java-symbol type="array" name="config_roundedCornerBottomRadiusAdjustmentArray" /> <java-symbol type="bool" name="config_secondaryBuiltInDisplayIsRound" /> <java-symbol type="array" name="config_builtInDisplayIsRoundArray" /> <java-symbol type="dimen" name="status_bar_height_default" /> </resources> packages/overlays/DisplayCutoutEmulationCornerOverlay/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,9 @@ --> <bool name="config_fillMainBuiltInDisplayCutout">true</bool> <!-- Height of the status bar --> <dimen name="status_bar_height_portrait">48dp</dimen> <dimen name="status_bar_height_landscape">28dp</dimen> </resources> Loading
core/java/com/android/internal/policy/SystemBarUtils.java +1 −1 Original line number Diff line number Diff line Loading @@ -43,7 +43,7 @@ public final class SystemBarUtils { * Gets the status bar height with a specific display cutout. */ public static int getStatusBarHeight(Resources res, DisplayCutout cutout) { final int defaultSize = res.getDimensionPixelSize(R.dimen.status_bar_height); final int defaultSize = res.getDimensionPixelSize(R.dimen.status_bar_height_default); final int safeInsetTop = cutout == null ? 0 : cutout.getSafeInsetTop(); final int waterfallInsetTop = cutout == null ? 0 : cutout.getWaterfallInsets().top; // The status bar height should be: Loading
core/res/res/values-land/dimens.xml +2 −0 Original line number Diff line number Diff line Loading @@ -27,6 +27,8 @@ <dimen name="password_keyboard_spacebar_vertical_correction">2dip</dimen> <dimen name="preference_widget_width">72dp</dimen> <!-- Height of the status bar --> <dimen name="status_bar_height">@dimen/status_bar_height_landscape</dimen> <!-- Height of area above QQS where battery/time go --> <dimen name="quick_qs_offset_height">48dp</dimen> <!-- Default height of an action bar. --> Loading
core/res/res/values/dimens.xml +5 −2 Original line number Diff line number Diff line Loading @@ -39,14 +39,17 @@ <!-- Elevation of toast view --> <dimen name="toast_elevation">2dp</dimen> <!-- The default height of the status bar used in {@link SystemBarUtils#getStatusBarHeight} to calculate the status bar height. --> <dimen name="status_bar_height_default">24dp</dimen> <!-- Height of the status bar. Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead. --> <dimen name="status_bar_height">24dp</dimen> <dimen name="status_bar_height">@dimen/status_bar_height_portrait</dimen> <!-- Height of the status bar in portrait. Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead. --> <dimen name="status_bar_height_portrait">@dimen/status_bar_height</dimen> <dimen name="status_bar_height_portrait">24dp</dimen> <!-- Height of the status bar in landscape. Do not read this dimen directly. Use {@link SystemBarUtils#getStatusBarHeight} instead. --> Loading
core/res/res/values/symbols.xml +2 −0 Original line number Diff line number Diff line Loading @@ -4492,4 +4492,6 @@ <java-symbol type="array" name="config_roundedCornerBottomRadiusAdjustmentArray" /> <java-symbol type="bool" name="config_secondaryBuiltInDisplayIsRound" /> <java-symbol type="array" name="config_builtInDisplayIsRoundArray" /> <java-symbol type="dimen" name="status_bar_height_default" /> </resources>
packages/overlays/DisplayCutoutEmulationCornerOverlay/res/values/config.xml +3 −0 Original line number Diff line number Diff line Loading @@ -44,6 +44,9 @@ --> <bool name="config_fillMainBuiltInDisplayCutout">true</bool> <!-- Height of the status bar --> <dimen name="status_bar_height_portrait">48dp</dimen> <dimen name="status_bar_height_landscape">28dp</dimen> </resources>