commit | 38f532c8944c2f74e44eac5fc8031ba6c12122c0 | [log] [tgz] |
---|---|---|
author | Heemin Seog <hseog@google.com> | Thu Oct 29 15:11:39 2020 -0700 |
committer | Heemin Seog <hseog@google.com> | Tue Nov 03 16:02:36 2020 -0800 |
tree | b90008c6f494728ce09ee136a4bedb81dfb5f1aa | |
parent | 276f53bb14f64a05f27fb338884083b149ea8802 [diff] |
Support a non Chassis FocusParkingView in RotaryService This is so that 3P apps Signin and Settings pages will be rotary compliant before using Chassis. Bug: 171925388 Test: manual (use fake FocusParkingView in KitchenSink) Test: atest CarRotaryControllerRoboTests Change-Id: Id0e1a0478c23a3a9dc5a81b1b7c29b6d94ca7c3b
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