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

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

Change-Id: I4fd6195c4b01c5e07940d8a9a1182d4c3d07427b
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:52:05 +00:00 committed by Automerger Merge Worker
commit 351165c1c5

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;