Loading
Fixed display id on Instrumentation.sendKeySync().
By default, the displayId in the KeyEvents is always 0, which would cause CTS tests to fail when they are running on background users visible in different displays. Bug: 266851112 Fixes: 268103680 Test: adb shell am start-user --display 2 13 && adb shell am instrument --user 13 -e class "android.app.cts.LauncherActivityTest" -w "android.app.cts/androidx.test.runner.AndroidJUnitRunner" Change-Id: Ie9a68319f47c45f0a6b035ddcda13e8c5627f34f