commit | 82ff0ef998ce88e434875940a63f3a9f7cd9d418 | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Tue Jun 23 18:20:09 2020 -0700 |
committer | Yabin Huang <yabinh@google.com> | Mon Jun 29 22:09:04 2020 +0000 |
tree | 2b56bfc18dbb0dc8b59b81fc5688652af772cf10 | |
parent | 8be58499dcc5e73ea03a280d918a4d6fb7074635 [diff] |
Handle removed view properly If the currently focused view was removed: 1. Move focus to the default focus view in the focus area, if any 2. Move focus to the first focusable view in the focus area, if any Replace deprecated method getActions() with another method. Fixes: 158797952 Test: manual Change-Id: Ib106803ad6621af3546c3883cf676880dbf2aab5
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