Uinput command: allow duplicate configuration entries for a type
Make the uinput command more robust by allowing multiple configuration
entries for the same "type" by concatenating the "data".
With this change, the following configuration:
"configuration": [
{"type": 100, "data": [1, 3]} // UI_SET_EVBIT : EV_KEY, EV_ABS
]
can also be written as:
"configuration": [
{"type": 100, "data": [1]}, // UI_SET_EVBIT : EV_KEY
{"type": 100, "data": [3]} // UI_SET_EVBIT : EV_ABS
]
Bug: 240493155
Test: atest TouchScreenTest
Change-Id: Id18d42ceba28ac68b02ef12525cd2384c948f9a8
1 file changed