[automerger skipped] Merge Android 12 am: 7b74d94e99 -s ours am: e92a427dd3 -s ours am: 7e2c9f9501 -s ours am skip reason: Merged-In I70bbfc1b668102470df4085fc51943538d9017a5 with SHA-1 1b05fe17e9 is already in history Original change: https://android-review.googlesource.com/c/platform/packages/apps/Car/RotaryController/+/1847666 Change-Id: I304ed4a2b8165e25cf889b4dae43d9d21d019b4b
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