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
Loading
Please register or sign in to comment