commit | a71dc9b29709cc1534129bac06b8c96ff04ecf00 | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Mon Sep 21 17:26:36 2020 -0700 |
committer | Yabin Huang <yabinh@google.com> | Mon Sep 21 20:14:15 2020 -0700 |
tree | c4d9488efc5f1355af15b797bafd921bbbec1cc6 | |
parent | 6131f6d27ef7e4266e4a5c996cb939195dc00aa6 [diff] |
Refresh mFocusedNode before clearing focus Fixes: 169099380 Test: manual Change-Id: Ie1ef0d59497dc726ea5a28ac71fdf1d9b5fad0cb
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