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

Commit dcfc3db6 authored by Felix Obenhuber's avatar Felix Obenhuber Committed by Yu Shan
Browse files

Add RustDerive to VHAL parcelables.

This is not considered an interface change so we update V2 and V3
version as well so that AOSP partners may use it.

I manually generate the hash code for V2 and V3 interface using:
system/tools/aidl/build/hash_gen.sh hardware/interfaces/automotive\
/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle 2 \
/tmp/hash.2
and
system/tools/aidl/build/hash_gen.sh hardware/interfaces/automotive\
/vehicle/aidl/aidl_api/android.hardware.automotive.vehicle 2 1 \
/tmp/hash.3
and append the hash to thehash file under V2 and V3 interface.

Test: Presubmit
Bug: 329283602
Change-Id: I889c0d51f2c2633908231dd39c9ea5259de36667
parent 4dbd6ea1
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
a741c2814ba6e9852e106bc26e820d741f66ebb8
2e101035a8abf667295ca2106bebb8850b9bdc9c
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.automotive.vehicle;
@JavaDerive(equals=true, toString=true) @VintfStability
@JavaDerive(equals=true, toString=true) @RustDerive(Clone=true) @VintfStability
parcelable GetValueRequest {
  long requestId;
  android.hardware.automotive.vehicle.VehiclePropValue prop;
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.automotive.vehicle;
@JavaDerive(equals=true, toString=true) @VintfStability
@JavaDerive(equals=true, toString=true) @RustDerive(Clone=true) @VintfStability
parcelable GetValueResult {
  long requestId;
  android.hardware.automotive.vehicle.StatusCode status = android.hardware.automotive.vehicle.StatusCode.OK;
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.automotive.vehicle;
@JavaDerive(equals=true, toString=true) @VintfStability
@JavaDerive(equals=true, toString=true) @RustDerive(Clone=true) @VintfStability
parcelable RawPropValues {
  int[] int32Values = {};
  float[] floatValues;
+1 −1
Original line number Diff line number Diff line
@@ -32,7 +32,7 @@
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.automotive.vehicle;
@JavaDerive(equals=true, toString=true) @VintfStability
@JavaDerive(equals=true, toString=true) @RustDerive(Clone=true) @VintfStability
parcelable SetValueRequest {
  long requestId;
  android.hardware.automotive.vehicle.VehiclePropValue value;
Loading