diff options
author | Kim Low <kim-huei.low@sony.com> | 2018-11-09 17:15:13 -0800 |
---|---|---|
committer | Kim Low <kim-huei.low@sony.com> | 2018-12-06 09:35:27 -0800 |
commit | d47c0131eb61989801003251fcb41f99ebbee716 (patch) | |
tree | 20ba2758d13fff0e2a320a17e22b40f804e8690e /tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp | |
parent | c3d4693f7993af6f7f9c5068ff63e3970fa0c860 (diff) |
Add support for UHID_GET_REPORT requests
Updated to support UHID_GET_REPORT requests mainly for CTS use.
All feature reports are assumed to be static and should be specified
along with the register json.
For example, in sony_dualshock4_register.json, add the following.
"feature_reports": [
{
"id": 5,
"data": [0x05, 0x1e, 0x00, 0x05, 0x00, 0xe2, 0xff, 0xf2, 0x22, 0xbe, 0x22, 0x8d, 0x22, 0x4f,
0xdd, 0x4d, 0xdd, 0x39, 0xdd, 0x1c, 0x02, 0x1c, 0x02, 0xe3, 0x1f, 0x8b, 0xdf, 0x8c, 0x1e,
0xb4, 0xde, 0x30, 0x20, 0x71, 0xe0, 0x10, 0x00, 0xca, 0xfc, 0x64, 0x4d]
}
]
Test: Make sure build has hid-sony driver that's backported from >4.10.
Run Dualshock4 CTS
> atest cts/tests/tests/hardware/src/android/hardware/input/cts/tests/SonyDualshock4TestCase.java
Change-Id: Ib0d534d47c6aa6fcc11af68b913c3db1cfa72752
Diffstat (limited to 'tests/DynamicCodeLoggerIntegrationTests/src/cpp/test_executable.cpp')
0 files changed, 0 insertions, 0 deletions