Fix immersive app resizing when repositioning

Only remove navigation bar insets and don't use full bounds for
immersive apps so that final bounds don't extend beyond display bounds.

Apply aspect ratio restrictions first before resolving size compat mode
config so that mSizeCompatBounds are not created when app is
repositioned.

Bug: 334076352
Test: atest SizeCompatTests
Change-Id: I396077be1700fbceb9c19d9f00e6da6711e73d72
Merged-In: I396077be1700fbceb9c19d9f00e6da6711e73d72
3 files changed