Add rust copy derivation annotation

Adding annotations to derive Copy for some AIDL
types.

Bug: 284152719
Test: qemu android build
Change-Id: I4bdfc4ada04d819075d8f43e01caf437e6a0bd1e
This commit is contained in:
Orlando Arbildo
2024-04-19 02:36:43 +00:00
parent d52788fcfc
commit f84f70a7bd
2 changed files with 2 additions and 0 deletions

View File

@@ -32,6 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.
package android.hardware.security.see.hwcrypto.types;
@RustDerive(Clone=true, Copy=true)
parcelable MemoryBufferReference {
int startOffset;
int sizeBytes;

View File

@@ -18,6 +18,7 @@ package android.hardware.security.see.hwcrypto.types;
/*
* Structure representing a section of a memory buffer.
*/
@RustDerive(Copy=true, Clone=true)
parcelable MemoryBufferReference {
/*
* Start of the memory buffer section measured from the start of the memory buffer set for this