commit | 165ebd6cb6b65e8fb8f041aa1ce51a7dd3b94412 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Fri Jun 26 01:05:33 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Jun 26 01:05:33 2020 +0000 |
tree | e0966277bb9f694c9e3d6f5a524c015518d1bd39 | |
parent | 13738988e087ae43063cd03d44a919fdb1f314c0 [diff] | |
parent | a512eb6bd342c7e42e8aa71bcc7dc00a2a2304e7 [diff] |
Snap for 6630029 from a512eb6bd342c7e42e8aa71bcc7dc00a2a2304e7 to rvc-d1-release Change-Id: I2fdecd0da42756571893902cf60fc7dc137e0b22
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