commit | e725cb98c3c2025f1bab83666b352d5e109e98e4 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed Oct 28 23:13:35 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Oct 28 23:13:35 2020 +0000 |
tree | 3b3cf6ae9c309cd3f6933e5d01c24bcf9dfc37ce | |
parent | 20ae19bf30646083bca28b52c34ba4f31762935e [diff] | |
parent | ac0fdd7550661edb08f83a76d2447f31f687875f [diff] |
Snap for 6937514 from ac0fdd7550661edb08f83a76d2447f31f687875f to rvc-qpr2-release Change-Id: I131668567806b333916b07c12d4fd510a55be1bb
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