HID: core: move Usage Page concatenation to Main item [1/1]
PD#SWPL-10069
Problem:
android.hardware.input.cts.tests.AsusGamepadTestCase#testAllMotions
android.hardware.input.cts.tests.AsusGamepadTestCase#testAllKeys
Solution:
adds usage_page_last to flag whether Usage Page is after
Usage ID items. usage_page_last is false default, it is set as true
once Usage Page item is encountered and is reverted by next Usage ID
item.
google bug=
138556465
https://lkml.org/lkml/2019/10/9/430
Verify:
franklin
Change-Id: I7593132556e32fe0979906447b3162f1cf30bbc3
Signed-off-by: Pengfei Zhao <pengfei.zhao@amlogic.com>