commit | 05abe0170885222833f6b513339b57e7d44c89a8 | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Mon Jul 27 15:30:22 2020 -0700 |
committer | Yabin Huang <yabinh@google.com> | Mon Jul 27 16:33:10 2020 -0700 |
tree | ae3acb9586c2b66b85e682522dd5dfe46a78594f | |
parent | e9727394df9fbfde6e22c951b4bb0110d01cb64d [diff] |
Don't focus on the recyclerview via rotate Fixes: 160924453 Test: maual test and atest CarRotaryControllerRoboTests Change-Id: I61ae6ad4158e85972991effc94ed98af92d41257
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