Fix CtsWindowManagerDeviceOther:android.server.wm.other.LockTaskModeTests for the visible background user
Since the displayId value is always set to DEFAULT_DISPLAY, the test
failed for the visible background user logged into another display.
I modified it so that the appropriate displayId is used for testing
even when testing on another display where the visible background
user is logged in.
Bug: 356745195
Test: atest CtsWindowManagerDeviceOther:android.server.wm.other.LockTaskModeTests
Test: atest --user-type secondary_user CtsWindowManagerDeviceOther:android.server.wm.other.LockTaskModeTests
Test: atest --user-type secondary_user_on_secondary_display CtsWindowManagerDeviceOther:android.server.wm.other.LockTaskModeTests
(cherry picked from https://partner-android-review.googlesource.com/q/commit:8131087b58ef8b40a9187612159da0dd02389138)
Change-Id: Ia7dc98b9ba7df6ce042e950453f47d1c6051cae4
1 file changed