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

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

Change-Id: I06c49a61ab635fba936474802879a89bdb612378
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:29:56 +00:00 committed by Automerger Merge Worker
commit c3191fc13e

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,