commit | 3831ab0c3a07da06a2b04392b347a7586049b104 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Nov 20 02:08:07 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Nov 20 02:08:07 2021 +0000 |
tree | 5378292e2c525528514ccaf35045ed9219bb997d | |
parent | cf058547eda7ff1be7ac4b07c42b64fc03b8a038 [diff] | |
parent | 3c4882233062f240c0894610f69e23c48db035d3 [diff] |
Snap for 7932843 from 3c4882233062f240c0894610f69e23c48db035d3 to sc-v2-release Change-Id: I7ab70918d40359bf9a5b026b3c4bc8d2ad68d904
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