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

Commit 4e18ede1 authored by Yu Shan's avatar Yu Shan
Browse files

Add toString method to VehicleProperty enum.

This generates VehicleProperty.$.toString method for java clients
which allows easier debugging.

Flag: EXEMPT HAL
Test: Presubmit
Bug: 387357615
Change-Id: I2e938c7a2044d94642ab0041c56f039558fd1d57
parent be14c9fb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package android.hardware.automotive.vehicle;
/**
 * Test vendor properties used in reference VHAL implementation.
 */
@JavaDerive(toString=true)
@Backing(type="int")
enum TestVendorProperty {

+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;
@Backing(type="int") @VintfStability
@Backing(type="int") @JavaDerive(toString=true) @VintfStability
enum VehicleProperty {
  INVALID = 0x00000000,
  INFO_VIN = (((0x0100 + 0x10000000) + 0x01000000) + 0x00100000) /* 286261504 */,
+1 −0
Original line number Diff line number Diff line
@@ -39,6 +39,7 @@ import android.hardware.automotive.vehicle.VehiclePropertyType;
 * in response to such ill formed requests.
 */
@VintfStability
@JavaDerive(toString=true)
@Backing(type="int")
enum VehicleProperty {
    /**