commit | 5e84155befb1ec6ebe908521adb0448ef1556c82 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Tue Feb 27 18:23:18 2024 +0000 |
committer | Android (Google) Code Review <android-gerrit@google.com> | Tue Feb 27 18:23:18 2024 +0000 |
tree | 28c3bb70069e2522dde10975ca708a08172b97ab | |
parent | b28f1fbd6a4fd3198f1018bb8337642996a5d7f9 [diff] | |
parent | a4f1c810278d08ad9e1cffcdb8f46edee66ede99 [diff] |
Merge "Search the SurfaceView node in background thread to avoid ANR" into main
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