Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit ce82d784 authored by Amy Zhang's avatar Amy Zhang
Browse files

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
parent c57a6c62
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment