commit | d5a4811bee44a943310a22426cd0cfc2adc14056 | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Mon Nov 23 16:26:31 2020 -0800 |
committer | Yabin Huang <yabinh@google.com> | Mon Nov 23 16:51:34 2020 -0800 |
tree | 84fee22d2cf51f91bd9865d29564edf69d98ae9d | |
parent | 65ba19a7b1539cee1839ce69d90c1f42009addc6 [diff] |
Handle window removed event properly If the removed window contains the focused view and it is an application window, don't restore the focus in the previous window. Fixes: 174088541 Test: manual test in Dialer and RoatryPlayground Change-Id: I5e2d85ab4df987de8997289820f1a37c7e6a3c61
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