commit | 4843253c1fc44f28d284956fc00f5157a00a9936 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Fri Feb 11 06:57:40 2022 +0000 |
committer | Xin Li <delphij@google.com> | Fri Feb 11 06:57:40 2022 +0000 |
tree | aa3088604f03e14266b829438f5655243c44b9f4 | |
parent | e2ee656881aa29c39be64b12e6bb750de1d39ca7 [diff] | |
parent | 3436bed5c4e008f9486155820ca8783058d714a1 [diff] |
Merge sc-v2-dev-plus-aosp-without-vendor@8084891 Bug: 214455710 Merged-In: Idc59880fd864264da11239567568e5b60723c00a Change-Id: Ibb6cd3d5d30cc77704e7e07b03e0227cae7a4427
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