commit | 7befe1f55992a019a5093db88172f53ea80007b6 | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Tue Jun 18 14:13:42 2024 -0700 |
committer | Xin Li <delphij@google.com> | Tue Jun 18 14:13:42 2024 -0700 |
tree | cf943714e2164ca6a7161b66dcea519b1376bae1 | |
parent | 16ddd5d06a1e94c01fa940ba785659e33fd71fb8 [diff] | |
parent | 4906a651fa26cc80c33beeddda3993a548649d09 [diff] |
Merge 24Q3 (ab/11976889) to aosp-main-future Bug: 347831320 Merged-In: I755d000d2fa39bac5b7ea480baf21d1bf8b5067b Change-Id: Iab54cd11e8ac46c5304a51696200f179130e8081
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