commit | 58bf043f2e4c228277a2f93fe434ce3b45fdf60d | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Mon Nov 15 20:48:01 2021 -0800 |
committer | Yabin Huang <yabinh@google.com> | Thu Feb 03 15:25:27 2022 -0800 |
tree | 334dbe7baacada5da2411073163cdbd1bbfbcb96 | |
parent | 357505a7591f94971cff6136d4dfeec088333b61 [diff] |
Initialize the focus properly when there is a view focused in touch mode Bug: 194703617 Test: manual Change-Id: I25919e29e76564dca915c4cb2f683119e198f055
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