commit | 16fec501fe61a0622285d95dff9ac577c3dfa968 | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Thu Jun 25 01:50:04 2020 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Thu Jun 25 01:50:04 2020 +0000 |
tree | e0966277bb9f694c9e3d6f5a524c015518d1bd39 | |
parent | 42516a7ed1311c818a3c21d8fca529b4d77844a1 [diff] | |
parent | 596c41f6d51f8c03c7a36b4e51332149e9a3deb8 [diff] |
Merge "Access visual service WindowManager with visual context" into rvc-dev
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