commit | 118677f16d29eaf2beb638af8dab810170d83a97 | [log] [tgz] |
---|---|---|
author | Danny Epstein <depstein@google.com> | Tue Jun 22 16:41:54 2021 -0700 |
committer | Tariq Ansari <tariq@haleytek.com> | Wed Nov 24 08:38:44 2021 +0100 |
tree | 95ed8a1f1fce9db4e062aa0d786090cf7a437030 | |
parent | 9a27de17b8ec9d5f2afd8fb61fccf6ccae56b62e [diff] |
Use setting to control key event filtering Rather than enabling key event filtering on debug builds, allow filtering to be controlled by a car setting. Test: confirm keyboard doesn't work on Seahawk until setting enabled Test: atest android.hardware.input.cts.tests.UsbVoiceCommandTest#testMediaKeys Test: atest android.view.cts.InputDeviceKeyLayoutMapTest#testLayoutKeyEvents Bug: 187955894 Bug: 183053404 Bug: 194356647 Change-Id: Ic0e4321f4a770a85a61e14621d9de9cdc3a8baa1 (cherry picked from commit cf9cf8728a6e51c89f9ef6b86d691487ecc89bf7)
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