commit | 2c44bcc846dfe1757f2c89fb5f592a501c72cd36 | [log] [tgz] |
---|---|---|
author | Heemin Seog <hseog@google.com> | Mon Dec 28 16:44:34 2020 -0800 |
committer | Heemin Seog <hseog@google.com> | Mon Jan 11 13:25:30 2021 -0800 |
tree | c4fbe96c7433aa4ca6c040e1f4a207721108cb9d | |
parent | 2442a4ea97d9c2a859168a9888e4fd9c22f107f8 [diff] |
Migrate NavigatorTest to instrumented tests Bug: 170331260 Test: atest NavigatorTest Change-Id: Ic5daefce3b7192ee510f3b390696e69668afc75f
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