RESTRICT AUTOMERGE: Fix MultiDisplayActivityLaunchTests#testTaskMatchOrderAcrossDisplays for Auto

- In Auto UI Portrait, when a new display is created, the home activity
launching causes issues with the top focused activity. Launch the home
activity before so that it does not interfere with the embedded
activity.
- The root task might not be the leaf node in the view hierarchy. Change the task ID to the correct one.

Bug: 294251386

Test: atest android.server.wm.MultiDisplayActivityLaunchTests#testTaskMatchOrderAcrossDisplays
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e78a34e040709d85646f543a8ae7bda58a97d5d5)
Merged-In: I2d551d750087c279694a1b1a1df29015b0573099
Change-Id: I2d551d750087c279694a1b1a1df29015b0573099
1 file changed