diff options
author | Yu Shan <shanyu@google.com> | 2024-01-25 17:40:41 -0800 |
---|---|---|
committer | Yu Shan <shanyu@google.com> | 2024-01-27 02:28:25 +0000 |
commit | 928062ccac80ea914bcad98169f244c0d1d0f9aa (patch) | |
tree | 485bd7d618fd00a8eccdf5c9619ce67698b49576 /automotive/vehicle | |
parent | 78c233dc0329f72958151f222c48d8d25ccc7ffd (diff) | |
download | interfaces-928062ccac80ea914bcad98169f244c0d1d0f9aa.tar.gz |
Fix HIDL VHAL descriptor name in VTS.
Bug: 322418005
Test: Manual test with HIDL VHAL, VTS pass.
Change-Id: I93e92d3587243c44b5651ab85d47442ebb64c51a
Merged-In: I93e92d3587243c44b5651ab85d47442ebb64c51a
Diffstat (limited to 'automotive/vehicle')
-rw-r--r-- | automotive/vehicle/vts/src/VtsHalAutomotiveVehicle_TargetTest.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/automotive/vehicle/vts/src/VtsHalAutomotiveVehicle_TargetTest.cpp b/automotive/vehicle/vts/src/VtsHalAutomotiveVehicle_TargetTest.cpp index 04a96d42fe..f8ef8cba61 100644 --- a/automotive/vehicle/vts/src/VtsHalAutomotiveVehicle_TargetTest.cpp +++ b/automotive/vehicle/vts/src/VtsHalAutomotiveVehicle_TargetTest.cpp @@ -25,6 +25,7 @@ #include <android-base/stringprintf.h> #include <android-base/thread_annotations.h> #include <android/binder_process.h> +#include <android/hardware/automotive/vehicle/2.0/IVehicle.h> #include <gtest/gtest.h> #include <hidl/GtestPrinter.h> #include <hidl/ServiceManagement.h> @@ -454,7 +455,8 @@ std::vector<ServiceDescriptor> 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, |