commit | 3bf848da2be1d3c15fbd2ebbac5ef1192f0e8e2d | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Jun 16 22:50:43 2022 -0700 |
committer | Xin Li <delphij@google.com> | Thu Jun 16 22:50:43 2022 -0700 |
tree | afe17943e0f530b3b139b2ecfa4eab536c86935d | |
parent | d25d7c80a58cba653aee39e735ef0f05715a3c5a [diff] | |
parent | 50b802f464a2d63dc0b085535891bb8c24303489 [diff] |
DO NOT MERGE - Skip SQ3A.220605.009 Bug: 236045730 Merged-In: I8af2a8314ae48c92dba235ce7852d769e954e686 Change-Id: Icfdcf8a24810f7754f28adb83f280be84cadf05f
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