commit | 82e38a2c7716c5ae30f2803831025e2e2087553e | [log] [tgz] |
---|---|---|
author | Alexander Dorokhine <adorokhine@google.com> | Fri Oct 02 00:01:43 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Fri Oct 02 00:01:43 2020 +0000 |
tree | 20e77eb229efb33e9bb4f2658838e28cb1dbe589 | |
parent | d1d41cf890ef05dfcfd989fde246694c0e8d7584 [diff] | |
parent | aa4b853dffe0dc6a1f7fcff2d55ed9fd77ba43c8 [diff] |
Migrate away from deprecated Truth APIs. am: 14c4c9a344 am: aa4b853dff Original change: https://android-review.googlesource.com/c/platform/packages/apps/Car/RotaryController/+/1440362 Change-Id: I88efbe1333b5a0db795a70e4879016bde73b1dcb
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