commit | d25d7c80a58cba653aee39e735ef0f05715a3c5a | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Tue Jun 14 16:48:13 2022 -0700 |
committer | Xin Li <delphij@google.com> | Tue Jun 14 16:48:13 2022 -0700 |
tree | afe17943e0f530b3b139b2ecfa4eab536c86935d | |
parent | d48da2a00bf7aedcc2018bcd814ff3b0d5a02476 [diff] | |
parent | 711f27b3894c51d5e2976ec2523a75c049e711b6 [diff] |
Merge Android 12 QPR 3 Bug: 236045730 Merged-In: I8eaeba6f8139b8e0bc9af8e0c167b434ae793f01 Change-Id: I9b35fa3a948a7acf06e475df6b38dc9b113f86b0
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