commit | 42091764f9b35dabad9ef9c6e6b14f04c1456ab8 | [log] [tgz] |
---|---|---|
author | Nate Jiang <qiangjiang@google.com> | Tue Dec 27 17:08:25 2022 -0800 |
committer | Nate(Qiang) Jiang <qiangjiang@google.com> | Wed Dec 28 19:25:15 2022 +0000 |
tree | f06bc9de2b7dfabef89a9917a78be8281d457d01 | |
parent | 1ddd4377efa5926543f586551868f013e09774bc [diff] |
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