commit | e5d197d0656d3ff49e27cc149bba6e82940f2a60 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu Nov 05 00:08:49 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu Nov 05 00:08:49 2020 +0000 |
tree | b90008c6f494728ce09ee136a4bedb81dfb5f1aa | |
parent | 56740ce3e37a1a4b4bede61c4c6111c53c2b7a94 [diff] | |
parent | 38f532c8944c2f74e44eac5fc8031ba6c12122c0 [diff] |
Snap for 6952272 from 38f532c8944c2f74e44eac5fc8031ba6c12122c0 to rvc-qpr2-release Change-Id: Ie9fe02f3176a4284626bf0065e94f44bd85d5d5d
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