commit | 69919bbbbd775e4ad362a550b0e75ef26a038728 | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Wed Jan 27 18:25:04 2021 -0800 |
committer | Yabin Huang <yabinh@google.com> | Fri Jan 29 20:49:02 2021 +0000 |
tree | 5cff67f839256c30244bd25d269109373cda50ed | |
parent | 1f102382f5e34308674a1d7dfebf8e339f330047 [diff] |
DO NOT MERGE Add unit tests for RotaryService This CL adds unit tests for RotaryService#nudgeTo() Bug: 169954665 Test: atest RotaryServiceTest Change-Id: Ibea590bca0db402bd8f811ebe321dbe49c5afcbc Merged-In: Ibea590bca0db402bd8f811ebe321dbe49c5afcbc
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