commit | 7c24e396fc15445c5dc31a148b94643a3f076fd1 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed Aug 19 23:14:41 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Aug 19 23:14:41 2020 +0000 |
tree | 8571c7e4344ca2262a5090cad00f3cf19f3a4af1 | |
parent | 1b007a8b61a3e990f2e60b12bd789f8b03a6cd38 [diff] | |
parent | 7e336b8245e3d2970a8b8fbdbbecbe680ffc059b [diff] |
Snap for 6777077 from 7e336b8245e3d2970a8b8fbdbbecbe680ffc059b to rvc-qpr1-release Change-Id: I803759393f66ffb75d58d46a9e170a96121d32f3
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