commit | 94592d9077f105dcb8004ffe69ac2705fa06c2af | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Thu Apr 27 17:02:50 2023 -0700 |
committer | Yabin Huang <yabinh@google.com> | Thu Apr 27 17:13:10 2023 -0700 |
tree | a4087ea7da8a5e5913b33ac21fb44c2c32a1f8a3 | |
parent | 509c1999f5625f50a2f3eeb496981606fb4ef370 [diff] |
Fix a bug when looking for orphan views Fixes: 246448781 Test: atest CarRotaryControllerUnitTests Test: manual Change-Id: I1eaead980e727dcc2f62ca86eaa567ae039e269d
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