commit | 1fcd0e03b2fda2dd3fbe32b98d0214a2556840fb | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Wed Sep 09 12:13:02 2020 -0700 |
committer | Yabin Huang <yabinh@google.com> | Wed Sep 09 12:13:02 2020 -0700 |
tree | 398986d3e6ca83b845d32118971b9470b61e0776 | |
parent | 235cadbf20c56211673b2957646fcbba8dc98223 [diff] |
Exit direct manipulation mode on user touch If the focused node supports rotate directly, exit direct manipulation mode on user touch. Otherwise do nothing, and leave the client app to handle the mode. Fixes: 166309864 Test: manual Change-Id: I36384bdcace549fd1219c88ce2f2dcffd5f76f0e
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