commit | df7bbf85d9d762f9502cefc875fd715868537c6f | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Wed Aug 05 23:10:14 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Wed Aug 05 23:10:14 2020 +0000 |
tree | 24310461cfa6459c033973109f2133a4367866db | |
parent | 507f5232173077bafcbda35031eb1c05b80e9b6b [diff] | |
parent | 57265ac772f418d8376caa5ef2bd603526215f4c [diff] |
Snap for 6740034 from 57265ac772f418d8376caa5ef2bd603526215f4c to rvc-qpr1-release Change-Id: I3457ed5fa0e1bc72ef99d68a52f9eb0b2b9c11ff
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