commit | f93d2af893a4f0287d658676f73608a650c6e736 | [log] [tgz] |
---|---|---|
author | Ayrton Munoz <ayrton@google.com> | Fri Apr 26 14:22:50 2024 +0000 |
committer | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Tue May 14 15:29:53 2024 +0000 |
tree | a28f31e6338135ac1854679e95e4c05ab73bcbed | |
parent | b84460e7a956f42edfcd8b7570a9b626dbbfabcb [diff] |
Make memory layout of fixed-size types in rust match C This commit adds a `repr(C, align(x))` attributes to rust structs generated for fixed size parcelables and aidl enums to make the memory layout match what we expect from C/C++. It also adds `repr(C, tag, align(x))` to rust enums generated for fixed-size aidl unions to match the layout of a u8 tag followed by a union of the enum variants. This ensures that using MessageQueue<u8> as the basis for adding Fast Message Queue support in rust is valid. This commit also updates the golden test output. Bug: 294698705 Test: atest aidl_integration_test Change-Id: I0697ffce0eadea01991588030aac01ebda36490c
Documentation for this project is currently maintained here:
https://source.android.com/devices/architecture/aidl/overview