Fix the issue when convert byte to uint16
When convert byte to uint16, if the byte represent a negative number, the high 8 bit of the uint16 will be all 1, which causes a mismatch. Same as HIDL, convert byte to unit8 then fill into the uint16 Bug: 263690436 Test: cts SingleDeviceTest Change-Id: Id9462dce48d2a2558c6b5c104866da66ce951b0e
Loading
Please register or sign in to comment