Fix HIDL VHAL descriptor name in VTS. am: 928062ccac

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2928798

Change-Id: I6f7dd76ee3c813194085f131fe495e8f60492f7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yu Shan 2024-01-30 18:09:37 +00:00 committed by Automerger Merge Worker
commit 8cda776ffe

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>
@ -900,7 +901,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,