commit | f57a5d3584a9d84571f9222a1f7ca1f4d8f43a24 | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Mon Aug 17 15:41:00 2020 -0700 |
committer | Yabin Huang <yabinh@google.com> | Thu Aug 20 11:27:48 2020 -0700 |
tree | 89b88195617ee3f860038c3a53bade6751b0e616 | |
parent | 9f32b477c1120608856f311c2fb9233c79a26cb5 [diff] |
Handle recyclerview focus properly Only foucs on a recyclerview when it's scrollable and has no focusable descendants on the screen. Tailor the recyclerview's bounds so that it can be a navigation target. Bug: 165045570 Test: atest CarRotaryControllerRoboTests Change-Id: I57172aa8fd29c4b812c18162788e65f748990e51
make CarRotaryController -j64
To enable, run:
adb shell settings put secure enabled_accessibility_services com.android.car.rotary/com.android.car.rotary.RotaryService
To disable, run:
adb shell settings delete secure enabled_accessibility_services
To rotate the controller counter-clockwise, run:
adb shell cmd car_service inject-rotary
For clockwise, run:
adb shell cmd car_service inject-rotary -c true
To rotate the controller multiple times (100 ms ago and 50 ms ago), run:
adb shell cmd car_service inject-rotary -dt 100 50
To nudge the controller up, run:
adb shell cmd car_service inject-key 280
Use KeyCode 280
for nudge up, 281
for nudge down,282
for nudge left,283
for nudge right.
To click the controller center button, run:
adb shell cmd car_service inject-key 23