commit | bbdc7ef3f8990a2ca1b956bf7036bd0d5a90735c | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Wed Jan 12 12:07:03 2022 -0800 |
committer | Yabin Huang <yabinh@google.com> | Wed Jan 19 19:58:16 2022 +0000 |
tree | b499052dcbe2c29334284bede43acceca3607ac2 | |
parent | 85fe04680fa7ac899058c09d02e8625381231e65 [diff] |
Allow to specify off-screen nudge actions per application Bug: 208739202 Test: manual Change-Id: I5f86cc3cb1318d561f0543abc11b994d8c5af2de
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