commit | 48dcbaa4b59ea73bca9c996c3c56ce8b3fbe1221 | [log] [tgz] |
---|---|---|
author | Linux Build Service Account <lnxbuild@localhost> | Sun Jan 15 14:51:46 2023 -0800 |
committer | Linux Build Service Account <lnxbuild@localhost> | Sun Jan 15 14:51:46 2023 -0800 |
tree | 46a2f6178803e94a80f9334f51081ad8ca61b3c9 | |
parent | b8e2a3a0c5089ada72415f4b9539906339ff9e2b [diff] | |
parent | 69c537fa1812cc7e05165374d76f3e18ed6b8c3c [diff] |
Merge 69c537fa1812cc7e05165374d76f3e18ed6b8c3c on remote branch Change-Id: I705266becf89d36164d7eef1362622212c673629
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