commit | ce82d784af9e80b6c293751c3912cff9dbb867a4 | [log] [tgz] |
---|---|---|
author | Amy Zhang <amyjojo@google.com> | Mon Apr 19 13:39:49 2021 -0700 |
committer | Amy Zhang <amyjojo@google.com> | Mon Apr 19 16:11:34 2021 -0700 |
tree | 85640213cd22347e80df22d9dd61c1c11093620f | |
parent | c57a6c62bace9a9063dd6767dc382e99c045ce55 [diff] |
Cast HIDL uint16_t to char16_t in AIDL cpp backend service Note that 16 bit int in AIDL interface is char type, while the corresponding type in cpp/ndk backend is chat16_t type. See https://source.android.com/devices/architecture/aidl/aidl-backends#types This CL changes all the casting from uint16_t to char16_t instead of char to keep the right size of the data. Test: make Bug: 185627837 Change-Id: Ic41c7d15df62adb4f78216580fcd9af2c806d891