commit | 57265ac772f418d8376caa5ef2bd603526215f4c | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Tue Aug 04 19:02:01 2020 -0700 |
committer | Yabin Huang <yabinh@google.com> | Tue Aug 04 19:02:51 2020 -0700 |
tree | 24310461cfa6459c033973109f2133a4367866db | |
parent | 7129fd3d07d9c5df3adf54e600e567ae0918c368 [diff] |
Update nudge target finding logic Fixes: 162114576 Test: manual Change-Id: I457464a86a1ad9c5641d1d880011910c155059a7
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