commit | 137331d35c651d5dbbb345b111ffab5e867d139d | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Thu Jun 25 00:28:06 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jun 25 00:28:06 2020 +0000 |
tree | c3ca699a5ac7a064b905e622f1160fff82747e1d | |
parent | 6832c94eea609dc4036a4cff56ff71eddef9efc0 [diff] | |
parent | 42516a7ed1311c818a3c21d8fca529b4d77844a1 [diff] |
Move focus from a view to its ancestor properly am: 42516a7ed1 Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Car/RotaryController/+/11977479 Change-Id: I5bf95e6ac95b0b7abd539c9c49159213ee208e6d
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