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

Commit f9dcdea9 authored by Yu Shan's avatar Yu Shan
Browse files

Add Java equal and toString annotations.

Add annotations so that the Java backend would generate equals and
toString methods, which would be useful in our code.

Test: Manual build.
Bug: 205774940
Change-Id: Ib08c5f42d29c6d028abcaa1a577147d1495cf550
parent b0d07d21
Loading
Loading
Loading
Loading
+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;
@VintfStability
@JavaDerive(equals=true, toString=true) @VintfStability
parcelable CreateUserRequest {
  int requestId;
  android.hardware.automotive.vehicle.UserInfo newUserInfo;
+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;
@VintfStability
@JavaDerive(equals=true, toString=true) @VintfStability
parcelable CreateUserResponse {
  int requestId;
  android.hardware.automotive.vehicle.CreateUserStatus status = android.hardware.automotive.vehicle.CreateUserStatus.SUCCESS;
+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;
@VintfStability
@JavaDerive(equals=true, toString=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;
@VintfStability
@JavaDerive(equals=true, toString=true) @VintfStability
parcelable GetValueRequests {
  android.hardware.automotive.vehicle.GetValueRequest[] payloads;
  @nullable ParcelFileDescriptor sharedMemoryFd;
+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;
@VintfStability
@JavaDerive(equals=true, toString=true) @VintfStability
parcelable GetValueResult {
  long requestId;
  android.hardware.automotive.vehicle.StatusCode status = android.hardware.automotive.vehicle.StatusCode.OK;
Loading