commit | a696cde2d6f5bcbc18cf5990fdd5c3994f39ffe0 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Fri Oct 30 23:15:12 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Oct 30 23:15:12 2020 +0000 |
tree | 322a5bf25a33b152a1f11063a6003a6dcd9b70c7 | |
parent | e725cb98c3c2025f1bab83666b352d5e109e98e4 [diff] | |
parent | 036ebb84537b5a9d9b3414111fe30dfa1fcfff96 [diff] |
Snap for 6942968 from 036ebb84537b5a9d9b3414111fe30dfa1fcfff96 to rvc-qpr2-release Change-Id: Ie18c5b2a45bd83c42f423912e6fe93cefc2c999e
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