Fix HIDL VHAL descriptor name in VTS.

Bug: 322418005
Test: Manual test with HIDL VHAL, VTS pass.
Change-Id: I93e92d3587243c44b5651ab85d47442ebb64c51a
Merged-In: I93e92d3587243c44b5651ab85d47442ebb64c51a
This commit is contained in:
Yu Shan
2024-01-25 17:40:41 -08:00
parent 78c233dc03
commit 928062ccac

View File

@@ -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,