commit | f18b2f5f7e7c67c8e8cad0a06b8e116cc7332d55 | [log] [tgz] |
---|---|---|
author | Ayrton Munoz <ayrton@google.com> | Fri Apr 26 14:31:59 2024 +0000 |
committer | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Tue May 14 15:29:53 2024 +0000 |
tree | 5daecc9625014413e4813e176d535cb8b56943a7 | |
parent | c0e4e9f5be6411fa8556cf654451accc02d63e99 [diff] |
Add static asserts for memory layout of fixed-size NDK types This adds static asserts on AIDL-generated types to ensure that their memory layout matches what we expect from rust's `repr(C)` attribute and make sure that using `MessageQueue<u8>` as the basis for adding Fast Message Queue support in rust is valid. This commit also adds tests for arrays in FixedSize parcelables and unions with varying amounts of tag padding and updates golden output. Bug: 294698705 Test: atest aidl_integration_test Change-Id: I243e13f975487a7ed11aeb29ae4772dabb4afee7
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview