commit | f472c1376572100599b1b45d99d3bb35f61af359 | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Thu Sep 24 11:24:25 2020 -0700 |
committer | Yabin Huang <yabinh@google.com> | Thu Sep 24 11:24:25 2020 -0700 |
tree | d5327cdb9dc3671c121cd0d1738aa9a468df192b | |
parent | 7a96ec33cb4e9f8a87ca36213a6bcde386502ef1 [diff] |
Use window context to create the touch overlay Fixes: 160919984 Test: manual Change-Id: I01ee4ea836664fdb9418018cc056a4f92afe02c5
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