From b36d24d12aebd013a8d7e737a3211e0e28f8d3e3 Mon Sep 17 00:00:00 2001 From: Eva Chen Date: Thu, 10 Aug 2023 16:34:50 -0700 Subject: [PATCH 1/2] Update VHAL property version to v3. Bug: 295405997 Test: Manual Build Change-Id: I2faf065006e6889309caf69a9b277f42fdc00702 --- automotive/vehicle/Android.bp | 2 +- automotive/vehicle/aidl/aidl_test/Android.bp | 2 +- automotive/vehicle/aidl_property/Android.bp | 3 +-- automotive/vehicle/vhal_static_cpp_lib.mk | 2 +- compatibility_matrices/compatibility_matrix.9.xml | 2 +- 5 files changed, 5 insertions(+), 6 deletions(-) diff --git a/automotive/vehicle/Android.bp b/automotive/vehicle/Android.bp index c0d71d7dac..f0abbcf357 100644 --- a/automotive/vehicle/Android.bp +++ b/automotive/vehicle/Android.bp @@ -22,6 +22,6 @@ cc_defaults { name: "VehicleHalInterfaceDefaults", static_libs: [ "android.hardware.automotive.vehicle-V2-ndk", - "android.hardware.automotive.vehicle.property-V2-ndk", + "android.hardware.automotive.vehicle.property-V3-ndk", ], } diff --git a/automotive/vehicle/aidl/aidl_test/Android.bp b/automotive/vehicle/aidl/aidl_test/Android.bp index 44d7445d25..79ac309c13 100644 --- a/automotive/vehicle/aidl/aidl_test/Android.bp +++ b/automotive/vehicle/aidl/aidl_test/Android.bp @@ -52,7 +52,7 @@ android_test { ], static_libs: [ "android.hardware.automotive.vehicle-V2-java", - "android.hardware.automotive.vehicle.property-V2-java", + "android.hardware.automotive.vehicle.property-V3-java", "androidx.test.runner", "truth-prebuilt", ], diff --git a/automotive/vehicle/aidl_property/Android.bp b/automotive/vehicle/aidl_property/Android.bp index 19fa4a38db..db96382549 100644 --- a/automotive/vehicle/aidl_property/Android.bp +++ b/automotive/vehicle/aidl_property/Android.bp @@ -28,7 +28,7 @@ aidl_interface { // This HAL was originally part of android.hardware.automotive.vehicle "android/hardware/automotive/vehicle/*.aidl", ], - frozen: true, + frozen: false, stability: "vintf", backend: { cpp: { @@ -52,7 +52,6 @@ aidl_interface { version: "2", imports: [], }, - ], } diff --git a/automotive/vehicle/vhal_static_cpp_lib.mk b/automotive/vehicle/vhal_static_cpp_lib.mk index 995589c47e..bffa0769a3 100644 --- a/automotive/vehicle/vhal_static_cpp_lib.mk +++ b/automotive/vehicle/vhal_static_cpp_lib.mk @@ -17,4 +17,4 @@ LOCAL_STATIC_LIBRARIES += \ android.hardware.automotive.vehicle-V2-ndk \ - android.hardware.automotive.vehicle.property-V2-ndk + android.hardware.automotive.vehicle.property-V3-ndk diff --git a/compatibility_matrices/compatibility_matrix.9.xml b/compatibility_matrices/compatibility_matrix.9.xml index 0928f1489f..1272b3600f 100644 --- a/compatibility_matrices/compatibility_matrix.9.xml +++ b/compatibility_matrices/compatibility_matrix.9.xml @@ -94,7 +94,7 @@ android.hardware.automotive.vehicle - 1-2 + 1-3 IVehicle default From 46d65626e2ff9b679cd61c3fc1277025b9f5916d Mon Sep 17 00:00:00 2001 From: Eva Chen Date: Thu, 10 Aug 2023 18:29:08 -0700 Subject: [PATCH 2/2] Add UNKNOWN to VehicleAreaSeat aidl. Bug: 293521207 Test: atest VtsHalAutomotiveVehicle_TargetTest Test: atest CtsCarTestCases:CarPropertyManagerTest Test: atest CtsCarTestCases:VehiclePropertyIdsTest Change-Id: Idf42a5735eb8e187759c3d84cc4891a473d97d35 --- .../android/hardware/automotive/vehicle/VehicleAreaSeat.aidl | 1 + .../android/hardware/automotive/vehicle/VehicleAreaSeat.aidl | 1 + 2 files changed, 2 insertions(+) diff --git a/automotive/vehicle/aidl_property/aidl_api/android.hardware.automotive.vehicle.property/current/android/hardware/automotive/vehicle/VehicleAreaSeat.aidl b/automotive/vehicle/aidl_property/aidl_api/android.hardware.automotive.vehicle.property/current/android/hardware/automotive/vehicle/VehicleAreaSeat.aidl index 44c9d54567..a24f515697 100644 --- a/automotive/vehicle/aidl_property/aidl_api/android.hardware.automotive.vehicle.property/current/android/hardware/automotive/vehicle/VehicleAreaSeat.aidl +++ b/automotive/vehicle/aidl_property/aidl_api/android.hardware.automotive.vehicle.property/current/android/hardware/automotive/vehicle/VehicleAreaSeat.aidl @@ -34,6 +34,7 @@ package android.hardware.automotive.vehicle; @Backing(type="int") @VintfStability enum VehicleAreaSeat { + UNKNOWN = 0x0000, ROW_1_LEFT = 0x0001, ROW_1_CENTER = 0x0002, ROW_1_RIGHT = 0x0004, diff --git a/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehicleAreaSeat.aidl b/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehicleAreaSeat.aidl index 89d50ea183..e70fb22717 100644 --- a/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehicleAreaSeat.aidl +++ b/automotive/vehicle/aidl_property/android/hardware/automotive/vehicle/VehicleAreaSeat.aidl @@ -22,6 +22,7 @@ package android.hardware.automotive.vehicle; @VintfStability @Backing(type="int") enum VehicleAreaSeat { + UNKNOWN = 0x0000, ROW_1_LEFT = 0x0001, ROW_1_CENTER = 0x0002, ROW_1_RIGHT = 0x0004,