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

Commit f84f70a7 authored by Orlando Arbildo's avatar Orlando Arbildo
Browse files

Add rust copy derivation annotation

Adding annotations to derive Copy for some AIDL
types.

Bug: 284152719
Test: qemu android build
Change-Id: I4bdfc4ada04d819075d8f43e01caf437e6a0bd1e
parent d52788fc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
+1 −0
Original line number Diff line number Diff line
@@ -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