commit | 509c1999f5625f50a2f3eeb496981606fb4ef370 | [log] [tgz] |
---|---|---|
author | Antonio Kantek <kanant@google.com> | Wed Mar 08 19:34:30 2023 +0000 |
committer | Antonio Kantek <kanant@google.com> | Fri Mar 17 00:44:26 2023 +0000 |
tree | 5bfedfae29a4d747ccbc6a138dbbe38846e67f83 | |
parent | dab5aabbb2d6ff2f32beca99a9b79299bf8faaa6 [diff] |
Log and validate RotaryService IME switch This CLs also moves the IMS lookup code from `onServiceConnected` to `onCreate` and moves `isInstalledIme` to Utils (so it can be easily tested). Fix: 271300266 Fix: 271301560 Test: atest CarRotaryControllerUnitTests Test: manual verification Change-Id: Ia6b9ec67cbbd05013f9ef622e21f2fa3380e946d
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