commit | 1ace0e636ea659b7b47df5007eea1c15add6240b | [log] [tgz] |
---|---|---|
author | Heemin Seog <hseog@google.com> | Tue Dec 22 15:46:05 2020 -0800 |
committer | Igor Razumeiko <igorr@google.com> | Wed Jan 06 16:30:21 2021 +0000 |
tree | eb86f13727f46ec6dd220aecb07f701d24eafd61 | |
parent | 0da4bbb6b890c9a93bd4abe68dc9afc9e104bb3a [diff] |
Migrate FocusFinder and WindowCache tests Bug: 170331260 Test: atest CarRotaryControllerUnitTests Change-Id: Iee2931dab5ae982f230f32863a822e64954ec4b1
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