commit | 25c6f7fe0c179d6e0a8ef2de24a50dfe53a28e04 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Oct 19 23:54:56 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Oct 19 23:54:56 2023 +0000 |
tree | 5ab776cf45b68e7d96cca184c93485b704fcc896 | |
parent | 77eaf8c5a4b136cff8b75a8eabc33227a2bcd964 [diff] | |
parent | 155e00db337ce98e40919a53cd9123ddc5492acc [diff] |
[automerger skipped] Merge 10952656 am: 7749652937 -s ours am: 155e00db33 -s ours am skip reason: Merged-In I2c4e3788d04a71b34411dec2de08fa78eec8064f with SHA-1 3537499aa7 is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/RotaryController/+/25089439 Change-Id: Ia106c1c9206a56451dbb3f64e805321e2c5ee9cd Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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
To long click the controller center button, send down and up action seperately. For example:
adb shell cmd car_service inject-key 23 -a down && sleep 2 && adb shell cmd car_service inject-key 23 -a up