Allow multiple registered GNSS HALs

Bug: 325210998
Change-Id: I1c5e4e37059b6159ffaff310d2d0dd588d35fd7c
Test: atest VtsHalGnssV1_1TargetTest
This commit is contained in:
Yu-Han Yang 2024-02-14 22:11:21 +00:00
parent 85e1f5e409
commit 3344506a78

View file

@ -168,8 +168,7 @@ bool GnssHalTest::IsGnssHalVersion_1_1() const {
manager->listManifestByInterface(
"android.hardware.gnss@1.1::IGnss",
[&hasGnssHalVersion_1_1](const hidl_vec<hidl_string>& registered) {
ASSERT_EQ(1, registered.size());
hasGnssHalVersion_1_1 = true;
hasGnssHalVersion_1_1 = registered.size() != 0;
});
bool hasGnssHalVersion_2_0 = false;