commit | 08cbdbdc2bb4297354f24a11ebe17dd6c13643e7 | [log] [tgz] |
---|---|---|
author | Alan Chen <alanschen@google.com> | Thu Mar 17 22:59:42 2022 +0000 |
committer | Alan Chen <alanschen@google.com> | Fri Mar 18 00:30:34 2022 +0000 |
tree | a49284ecb6284f52520caddf050ed89c462cbc60 | |
parent | 9071d9123c5763f409a483ea14508e71eecef43f [diff] |
Changed AfterScrollAction to use IntDef Fixes: 185154771 Test: manual Change-Id: I4411de76420ea2087006c3fe92ce4fbdfb9582f0
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