commit | 4357afa97a2092cdec8a423fb7600f4c0d629bba | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Tue Jul 28 23:14:02 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Tue Jul 28 23:14:02 2020 +0000 |
tree | ae3acb9586c2b66b85e682522dd5dfe46a78594f | |
parent | 3ad27c30568ae6b0ddd9a233c9147eea6dbab1d3 [diff] | |
parent | 05abe0170885222833f6b513339b57e7d44c89a8 [diff] |
Snap for 6714637 from 05abe0170885222833f6b513339b57e7d44c89a8 to rvc-qpr1-release Change-Id: I4b8a40baff2160653eb581c2fda9a5aafd50f921
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