Allow multiple registered GNSS HALs am: 3344506a78 am: 653221fa8e

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

Change-Id: I2d8d60bb7ca7f421534c36708fd9913773d9b344
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 22:30:55 +00:00 committed by Automerger Merge Worker
commit 18b2aafc9c

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;