commit | 0bde5c684cf2dc978cceea05ffc300d3dcef1222 | [log] [tgz] |
---|---|---|
author | Heemin Seog <hseog@google.com> | Tue Oct 06 16:37:51 2020 -0700 |
committer | Heemin Seog <hseog@google.com> | Wed Oct 07 09:06:47 2020 -0700 |
tree | 2bbef57eab2f5a93dd16789c6425f72ce3283d20 | |
parent | c6f6acad769e2570b436187cbfd902fe9e720681 [diff] |
Instrumented unit test setup for Rotary Bug: 170231657 Test: atest com.android.car.rotary.UtilsTest Change-Id: I0c71cfeec1e6167d9b6d6aa9287b7013037ea724
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