commit | 60d2a4acd648ca56a279fb0e5d475123504bd988 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Fri Dec 04 00:03:59 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Dec 04 00:03:59 2020 +0000 |
tree | 080142b3368e094e77c6d822f51885d9dc82e537 | |
parent | bf06eb57de75457b64328ecc85c4a4446a5cc24a [diff] | |
parent | e98715f55d85000bf2715576244d7506204c03e4 [diff] |
Snap for 7010201 from e98715f55d85000bf2715576244d7506204c03e4 to rvc-qpr2-release Change-Id: Iad6a4b0202e7158143475f5fd02c48ffbdbfb9a1
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