Allow multiple registered GNSS HALs am: 3344506a78

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

Change-Id: Ib6d0d5bd134ac5b2f7992637fb1495544853db1b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Yu-Han Yang 2024-02-22 21:47:19 +00:00 committed by Automerger Merge Worker
commit 653221fa8e

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;