Disable multi-resumed activities for pre-Q app

Only resume the top-most visible activities for pre-Q
app since these applications may have the assumption
that there is only one activity being resumed.

Bug: 122429803
Test: atest android.server.am.lifecycle
Test: atest ActivityManagerMultiDisplayTests
Test: atest ActivityLifecycleFreeformTests
Test: atest ActivityManagerSplitScreenTests

Change-Id: I696a4bf41684d5837a6b23818bd9f71df8947e22
7 files changed