commit | 6b692e50206b6d7d191495d8ee365b4181530200 | [log] [tgz] |
---|---|---|
author | Yabin Huang <yabinh@google.com> | Tue Dec 21 15:50:49 2021 -0800 |
committer | Yabin Huang <yabinh@google.com> | Wed Jan 19 00:02:02 2022 +0000 |
tree | b5f5b28bbac0a9dd4273865ce6f34363b22b3678 | |
parent | 85fe04680fa7ac899058c09d02e8625381231e65 [diff] |
Add null check of mCarInputManager Fixes: 210532296 Test: didn't test because couldn't reproduce the crash Change-Id: Ida8266a0c8edf0696326cc5f4bea92531bf9a0a6 Merged-In: Ida8266a0c8edf0696326cc5f4bea92531bf9a0a6
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