commit | 0866733645521f3b8089087fe0200e7d8506a35f | [log] [tgz] |
---|---|---|
author | Eric Arseneau <earseneau@google.com> | Thu Jan 13 18:52:39 2022 -0800 |
committer | Eric Arseneau <earseneau@google.com> | Thu Jan 13 18:52:39 2022 -0800 |
tree | 06797c8b5b9753ff3136cd8e9915522b18c22102 | |
parent | 0eab84a094785b3ecdf7ec1fffde44afe403d267 [diff] | |
parent | 8c5564a34ce4f6a12f628fcd9687607a48ec4c9f [diff] |
Merge r-mpr-2022-01-05 Change-Id: I7eb3bb83fb7d3dae8f7ef8dcc894b0a93356fa52
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