Re-land: Let WindowProcessController apply app specific config
Since the feature of insetsDecoupledConfiguration, targetSdk can affect
the app sizes of the configuration. An app might get the configuration
from WindowProcessController before the size is overridden by the
ActivityRecord.
This CL applies the size override to WindowProcessController as well so
that apps won't get the unexpected apps size from the configuration.
This CL also fixes a bug that the appBounds would still be affected by
insets even when the bounds is not overlapped with the insets area.
Fix: 347136833
Bug: 151861875
Flag: com.android.window.flags.insets_decoupled_configuration
Test: atest WindowPolicyTests QSMediaPlayerContent
WindowProcessControllerTests
Change-Id: I3b373607ffc0a6c1b4e6ecffb4a2857fc0d18d9d
4 files changed