Finish fixed rotation of transient launch with corner cases

Case 1:
Right before finishing recents transition, a display change transition
starts to collect, then if the recent activity is using fixed rotation,
hasAnimatingFixedRotationTransition() will return true because the
inTransition() also includes activity from display. That causes the
fixed rotation not to complete for finishing recents transition.

Case 2:
Launch a landscape app from portrait home. Before the opening
animation is finished, use gesture navigation to swipe up from bottom
and drag back to the bottom. So the transient-hide root task and its
activities are still visible at the end state. Because only root task
is collected, its activities still need to add into participants so the
transition finish callback can receive the activity record to complete
the fixed rotation and continue the display rotation.

Fix: 296780012
Test: atest DisplayContentTests# \
      testFinishFixedRotationNoAppTransitioningTask

Change-Id: I55d4dbc2da5f97e41a8fff9aac189edcf48f68e5
3 files changed