Fix InputDeviceKeyLayoutMapTest for secondary_user_on_secondary_display
InputDeviceKeyLayoutMapTest was failing when running as visible
background users due to 2 reasons:
- UinputDevice was instantiated with the default display. Fixed by
passing the correct display assigned to the test user.
- Some keycodes are not supported for visible background users by
PhoneWindowManager. Such keycodes needs to be skipped.
The change is tested for both current user and visible background users
on Automotive. Also tested for current user on phone.
Bug: 365880305
Flag: TEST_ONLY
Test: atest android.view.cts.input.InputDeviceKeyLayoutMapTest
atest --user-type secondary_user_on_secondary_display \
android.view.cts.input.InputDeviceKeyLayoutMapTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:1adce0186364f0475f2a8e78e57125bcb3c1cae3)
Merged-In: I511aad34acec07b6159f37c76762ff08dc9a4393
Change-Id: I511aad34acec07b6159f37c76762ff08dc9a4393
1 file changed