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

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

Change-Id: I7662938de3cdccbdedf1ef60f36dce21225332c7
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:11:52 +00:00 committed by Automerger Merge Worker
commit ec8db77066

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,