commit | 4d2fce1ccc6b09093379566cd50df344bf613546 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Fri Jun 26 03:07:35 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Fri Jun 26 03:07:35 2020 +0000 |
tree | e0966277bb9f694c9e3d6f5a524c015518d1bd39 | |
parent | 7066c6bcf76036dfaf85cb712accca47161b0da8 [diff] | |
parent | 0fd1c550b4a94e5c042f0088d229cdbe86576119 [diff] |
Snap for 6630650 from 0fd1c550b4a94e5c042f0088d229cdbe86576119 to mainline-release Change-Id: I6e1db47af84c9d7e9662f32810087714dd87fd51
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