Generalize the recents animation to work with non-home activity.

- When quickstep is enabled with 3p launchers, we need to still swipe up
  to the recents component activity (as defined in the framework resource),
  which is started in the recents stack. This CL resolves the target by
  looking at the target intent (only resolving to HOME or RECENTS) to
  determine which stack to use for the transition.

Bug: 77157702
Test: atest FrameworksServicesTests:com.android.server.am.ActivityStackTests
Test: Manual, ensure we can still swipe up to home and also to fallback
      activity when launcher is not the default home

Change-Id: If98f63cfd561861b1772249079ed07e8354142e0
7 files changed