Fix MultiDisplayLockedKeyguardTests flaky
Enhanced previous CL "Fix sending KEYCODE_MENU events to VirtualDisplay"
Move around center of the specific display to ensures the display to be
focused without triggering potential clicked event to impact the
test environment.(e.g: Keyguard credential activated unexpectedly.)
Simplify the input event(ACTION_DOWN->ACTION_CANCEL) to gain focused
Fixes: 147647870
Bug: 142662406
Bug: 150916039
Test: run cts-dev -m CtsWindowManagerDeviceTestCases -t android.server.wm.MultiDisplayLockedKeyguardTests
Test: atest MultiDisplayPolicyTests
Test: atest MultiDisplaySystemDecorationTests
Test: atest ActivityLifecycleTopResumedStateTests
Test: atest CtsWindowManagerDeviceTestCases
Change-Id: Ie1b9277e7be9267239f8bf11e6ecbe40c6277785
Merged-In: Ie1b9277e7be9267239f8bf11e6ecbe40c6277785
1 file changed