Get config info from activity directly
The getActivityDisplaySize needs a configuration change or
relaunch event to update. But sometimes the configuration
doesn't change such as rotation with split-screen that there
may only have non-public window config change.
By obtaining the config info directly from the target activity,
the dependency between lifecycle is eliminated. That makes the
test more deterministic.
Also:
- Migrate moveActivityFullSplitFull to use task organizer.
- Optimize testFixedOrientationWhenRotating to save 30s+.
- Support CommandSessionActivity to handle command across
activity relaunch.
Fixes: 182845871
Fixes: 183510501
Test: atest AppConfigurationTests# \
testConfigurationUpdatesWhenRotatingWhileDocked
testSameConfigurationFullSplitFullRelaunch
testSameConfigurationFullSplitFullNoRelaunch
testFixedOrientationWhenRotating
Change-Id: I71cf3af369f8d2d5f4a642d5b5b408f8833d4307
3 files changed