Consolidate full-screen override and cache user aspect ratio
Consolidate user and system full-screen override in
overrideOrientationIfNeeded.
Cache user aspect ratio if successful to reduce binder calls to package
manager per activity lifecycle. App will be force stopped if user aspect
ratio is changed via Settings so there should be no changes in runtime.
Flag: EXEMPT refactor
Bug: 371554314
Test: atest SizeCompatTests
atest AppCompatAspectRatioOverrideTest
atest AppCompatOrientationPolicyTest
Change-Id: I65d48399e512ef2cdd161a02e7766a9aa50f0b25
3 files changed