commit | 83e7698cd533d9dfa0304e60c56cd3e1c2cd40aa | [log] [tgz] |
---|---|---|
author | Devin Moore <devinmoore@google.com> | Wed Sep 30 09:32:35 2020 -0700 |
committer | Devin Moore <devinmoore@google.com> | Wed Sep 30 15:58:22 2020 -0700 |
tree | 22f85e61e8c6ce6a925be1e0cd06d7dc390c8f92 | |
parent | 927a7deb86cfe9175fdecdc1d5dc803e0742dffa [diff] |
ndk: Emit aligment values for known types in @FixedSize parcelables This is only done in the ndk backend. It ensures that the @FixedSize parcelable is the same size accross different builds. For example: uint64_t has an alignment of 4 in 32-bit bit builds, 8 in 64-bit, making it possible for it to be a different location on some devices. Using __attribute__((aligned(8))) in all cases ensures the same layout. Test: atest CtsNdkBinderTestCases aidl_integration_test aidl_unittests Test: built CtsNdkBinderTestCases for aosp_x86_64-eng before/after this change Bug: 142326204 Change-Id: I0be49db94e911df37acfc2b0bd3578715975a3d1
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview