commit | 7e336b8245e3d2970a8b8fbdbbecbe680ffc059b | [log] [tgz] |
---|---|---|
author | Danny Epstein <depstein@google.com> | Tue Aug 18 13:31:30 2020 -0700 |
committer | Danny Epstein <depstein@google.com> | Tue Aug 18 17:46:23 2020 -0700 |
tree | 8571c7e4344ca2262a5090cad00f3cf19f3a4af1 | |
parent | fc79d7dae12c75824bca3bcfa21509c4ccc4df15 [diff] |
Improve robustness of the switch to the touch IME. 1. Save the most recent touch IME in a shared preference so that it will persist through RotaryService crashing or being killed. 2. Add a string resource for the default touch IME that the OEM can override. Bug: 160920511 Test: Manual Change-Id: I0c4daae2819a2fd696721c444752f797ea0efe23
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