commit | c02333791ef38d4a227cf30a2f8b7b1e21f239d2 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Mon Aug 14 15:41:32 2023 -0700 |
committer | Xin Li <delphij@google.com> | Mon Aug 14 15:41:32 2023 -0700 |
tree | d4d4d9f51446c9df8c5fe07bd4ba93d70cc05f2a | |
parent | abd586f7f682e0886c82be6732349f74027fcfc2 [diff] | |
parent | ff875324fd0566a31deef2ee58665d526c227bd8 [diff] |
Merge Android U (ab/10368041) Bug: 291102124 Merged-In: Id233431a5f02367c996a5f9aaa5ff5744c1c576f Change-Id: Icff70c963aeb8bc8966c177832ece9fad0258c0b
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
To long click the controller center button, send down and up action seperately. For example:
adb shell cmd car_service inject-key 23 -a down && sleep 2 && adb shell cmd car_service inject-key 23 -a up