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

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

Change-Id: I9f28d569093b6d160d7d4934ac1d816bbe49b0c7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yu Shan 2024-01-30 00:26:44 +00:00 committed by Automerger Merge Worker
commit 813bd2a2a4

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,