commit | a2c11deb0f7866bfc84ddff79821fa8ce48cc1af | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu Aug 06 23:16:16 2020 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu Aug 06 23:16:16 2020 +0000 |
tree | 9ff0f733274e6b80835b06faa7cf656dc7cd5534 | |
parent | df7bbf85d9d762f9502cefc875fd715868537c6f [diff] | |
parent | 4058c1d71b61ce2990cd31e05fc5cb712aae446d [diff] |
Snap for 6743184 from 4058c1d71b61ce2990cd31e05fc5cb712aae446d to rvc-qpr1-release Change-Id: I79dcb879d12c56ed32e444867856b7f6fcbeb35d
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