Loading services/core/java/com/android/server/wm/ActivityRecord.java +4 −4 Original line number Diff line number Diff line Loading @@ -9037,8 +9037,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A // vertically centered within parent bounds with insets, so position vertical bounds // within parent bounds with insets to prevent insets from unnecessarily trimming // vertical bounds. final int bottom = Math.min(parentBoundsWithInsets.top + parentBounds.width() - 1, parentBoundsWithInsets.bottom); final int bottom = Math.min(parentBoundsWithInsets.top + parentBoundsWithInsets.width() - 1, parentBoundsWithInsets.bottom); containingBounds.set(parentBounds.left, parentBoundsWithInsets.top, parentBounds.right, bottom); containingBoundsWithInsets.set(parentBoundsWithInsets.left, parentBoundsWithInsets.top, Loading @@ -9049,8 +9049,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A // horizontally centered within parent bounds with insets, so position horizontal bounds // within parent bounds with insets to prevent insets from unnecessarily trimming // horizontal bounds. final int right = Math.min(parentBoundsWithInsets.left + parentBounds.height(), parentBoundsWithInsets.right); final int right = Math.min(parentBoundsWithInsets.left + parentBoundsWithInsets.height(), parentBoundsWithInsets.right); containingBounds.set(parentBoundsWithInsets.left, parentBounds.top, right, parentBounds.bottom); containingBoundsWithInsets.set(parentBoundsWithInsets.left, parentBoundsWithInsets.top, Loading services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java +2 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ import libcore.junit.util.compat.CoreCompatChangeRule.EnableCompatChanges; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestRule; Loading Loading @@ -4161,6 +4162,7 @@ public class SizeCompatTests extends WindowTestsBase { } @Test @Ignore // TODO(b/330888878): fix test in main public void testPortraitCloseToSquareDisplayWithTaskbar_notLetterboxed() { // Set up portrait close to square display setUpDisplaySizeWithApp(2200, 2280); Loading Loading
services/core/java/com/android/server/wm/ActivityRecord.java +4 −4 Original line number Diff line number Diff line Loading @@ -9037,8 +9037,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A // vertically centered within parent bounds with insets, so position vertical bounds // within parent bounds with insets to prevent insets from unnecessarily trimming // vertical bounds. final int bottom = Math.min(parentBoundsWithInsets.top + parentBounds.width() - 1, parentBoundsWithInsets.bottom); final int bottom = Math.min(parentBoundsWithInsets.top + parentBoundsWithInsets.width() - 1, parentBoundsWithInsets.bottom); containingBounds.set(parentBounds.left, parentBoundsWithInsets.top, parentBounds.right, bottom); containingBoundsWithInsets.set(parentBoundsWithInsets.left, parentBoundsWithInsets.top, Loading @@ -9049,8 +9049,8 @@ final class ActivityRecord extends WindowToken implements WindowManagerService.A // horizontally centered within parent bounds with insets, so position horizontal bounds // within parent bounds with insets to prevent insets from unnecessarily trimming // horizontal bounds. final int right = Math.min(parentBoundsWithInsets.left + parentBounds.height(), parentBoundsWithInsets.right); final int right = Math.min(parentBoundsWithInsets.left + parentBoundsWithInsets.height(), parentBoundsWithInsets.right); containingBounds.set(parentBoundsWithInsets.left, parentBounds.top, right, parentBounds.bottom); containingBoundsWithInsets.set(parentBoundsWithInsets.left, parentBoundsWithInsets.top, Loading
services/tests/wmtests/src/com/android/server/wm/SizeCompatTests.java +2 −0 Original line number Diff line number Diff line Loading @@ -129,6 +129,7 @@ import libcore.junit.util.compat.CoreCompatChangeRule.EnableCompatChanges; import org.junit.After; import org.junit.Before; import org.junit.Ignore; import org.junit.Rule; import org.junit.Test; import org.junit.rules.TestRule; Loading Loading @@ -4161,6 +4162,7 @@ public class SizeCompatTests extends WindowTestsBase { } @Test @Ignore // TODO(b/330888878): fix test in main public void testPortraitCloseToSquareDisplayWithTaskbar_notLetterboxed() { // Set up portrait close to square display setUpDisplaySizeWithApp(2200, 2280); Loading