commit | b8342f7210527136ac5fe93d19c214625ada16db | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Mon Mar 08 14:24:28 2021 -0800 |
committer | Igor Razumeiko <igorr@google.com> | Tue Mar 09 16:24:47 2021 +0000 |
tree | e03fe763edef537c9e45d5e1bebe4a4fe10fc213 | |
parent | 389be37b32d848fa564448652d35dc97b7db4ec7 [diff] |
Handle case with no RendererService host Fixes: 182198180 Test: manual Change-Id: Iae4fc2e62b1cafadf75ceae553dab32495846cfd
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