commit | 022cde6cc7a91aa834323104cb5e67d8621a59c8 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Thu Jun 30 01:05:26 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jun 30 01:05:26 2022 +0000 |
tree | 8dd8cd95e84f8286ad8cc340e5718a158217b591 | |
parent | 42c2f044dd73e7805cbb1b4d9b82633b39feeb65 [diff] | |
parent | 726eb88f46fe2ad6daf679c84b8af98e78bf0669 [diff] |
[automerger skipped] Merge tm-dev-plus-aosp-without-vendor@8763363 am: 4e2f69c972 -s ours am: 42dfc46079 -s ours am: f7f914aaa0 -s ours am: 726eb88f46 -s ours am skip reason: Merged-In Ie8c6a3801a53d2a798335536bace60b7d0791d84 with SHA-1 d48da2a00b is already in history Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/RotaryController/+/19092860 Change-Id: I9da9b6b8cff7cb21781b3a683f6d2e7f5f65cc50 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