From da2fa0929f11279a620a0ae5198f04067c8ad841 Mon Sep 17 00:00:00 2001 From: Yu Shan Date: Thu, 25 Jan 2024 17:40:41 -0800 Subject: [PATCH] Fix HIDL VHAL descriptor name in VTS. Bug: 322418005 Test: Manual test with HIDL VHAL, VTS pass. Change-Id: I93e92d3587243c44b5651ab85d47442ebb64c51a --- .../vehicle/vts/src/VtsHalAutomotiveVehicle_TargetTest.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automotive/vehicle/vts/src/VtsHalAutomotiveVehicle_TargetTest.cpp b/automotive/vehicle/vts/src/VtsHalAutomotiveVehicle_TargetTest.cpp index 993757021c..d91f4f2616 100644 --- a/automotive/vehicle/vts/src/VtsHalAutomotiveVehicle_TargetTest.cpp +++ b/automotive/vehicle/vts/src/VtsHalAutomotiveVehicle_TargetTest.cpp @@ -26,6 +26,7 @@ #include #include #include +#include #include #include #include @@ -1190,7 +1191,8 @@ std::vector getDescriptors() { .isAidlService = true, }); } - for (std::string name : getAllHalInstanceNames(IVehicle::descriptor)) { + for (std::string name : getAllHalInstanceNames( + android::hardware::automotive::vehicle::V2_0::IVehicle::descriptor)) { descriptors.push_back({ .name = name, .isAidlService = false,