commit | 5b77d5fd2710965002291152f55b60716e86c1ab | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu Aug 20 23:13:24 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu Aug 20 23:13:24 2020 +0000 |
tree | 89b88195617ee3f860038c3a53bade6751b0e616 | |
parent | 7c24e396fc15445c5dc31a148b94643a3f076fd1 [diff] | |
parent | f57a5d3584a9d84571f9222a1f7ca1f4d8f43a24 [diff] |
Snap for 6780056 from f57a5d3584a9d84571f9222a1f7ca1f4d8f43a24 to rvc-qpr1-release Change-Id: I4c2f6fd1327569ab62eb04909c5a405a05d3fe21
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