From 011284e9c1c3c76a731106378eb2de7638d9183a Mon Sep 17 00:00:00 2001 From: shrikar Date: Mon, 13 Mar 2023 21:08:51 +0000 Subject: [PATCH] Added info to docs to answer Q8 from Ford pending questions. Bug: 259309511 Test: manual build Change-Id: I695d50e79ea39e669443d1fe40b91fbb204d2b98 --- .../hardware/automotive/vehicle/RawPropValues.aidl | 9 ++++++--- .../hardware/automotive/vehicle/VehiclePropertyType.aidl | 4 ++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/automotive/vehicle/aidl/android/hardware/automotive/vehicle/RawPropValues.aidl b/automotive/vehicle/aidl/android/hardware/automotive/vehicle/RawPropValues.aidl index 9c6875b0b5..28ccc1da01 100644 --- a/automotive/vehicle/aidl/android/hardware/automotive/vehicle/RawPropValues.aidl +++ b/automotive/vehicle/aidl/android/hardware/automotive/vehicle/RawPropValues.aidl @@ -20,8 +20,8 @@ package android.hardware.automotive.vehicle; @JavaDerive(equals=true, toString=true) parcelable RawPropValues { /** - * This is used for properties of types VehiclePropertyType#INT - * and VehiclePropertyType#INT_VEC + * This is used for properties of types VehiclePropertyType#INT32, + * VehiclePropertyType#BOOLEAN and VehiclePropertyType#INT32_VEC */ int[] int32Values = {}; @@ -31,7 +31,10 @@ parcelable RawPropValues { */ float[] floatValues; - /** This is used for properties of type VehiclePropertyType#INT64 */ + /** + * This is used for properties of type VehiclePropertyType#INT64 and + * VehiclePropertyType#INT64_VEC + */ long[] int64Values; /** This is used for properties of type VehiclePropertyType#BYTES */ diff --git a/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehiclePropertyType.aidl b/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehiclePropertyType.aidl index 62d26de3c3..7a68b4abc6 100644 --- a/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehiclePropertyType.aidl +++ b/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehiclePropertyType.aidl @@ -25,6 +25,10 @@ package android.hardware.automotive.vehicle; @Backing(type="int") enum VehiclePropertyType { STRING = 0x00100000, + /** + * Boolean values should be specified through the int32Values in RawPropValues. + * int32Value = {0} represents false and int32Value = {1} represents true. + */ BOOLEAN = 0x00200000, INT32 = 0x00400000, INT32_VEC = 0x00410000,