hal_implementation_test: no filtering on mod name

Module name is arbitrary, so filtering on types instead.

Before this, we were accidentally not tracking AOSP interfaces w/
non-AOSP names, such as 'test-android.hardware.vibrator-ext'.

Fixes: 151105750
Test: N/A
Change-Id: I01eb33bdf94ae37457886db8437fa76fc16bdaf0
Merged-In: I01eb33bdf94ae37457886db8437fa76fc16bdaf0
diff --git a/tests/hal/hal_implementation_test.cpp b/tests/hal/hal_implementation_test.cpp
index 6efadf0..58c1f4f 100644
--- a/tests/hal/hal_implementation_test.cpp
+++ b/tests/hal/hal_implementation_test.cpp
@@ -254,7 +254,7 @@
 
     for (const auto& iface : AidlInterfaceMetadata::all()) {
         ASSERT_FALSE(iface.types.empty()) << iface.name;  // sanity
-        if (!isAospAidlInterface(iface.name)) continue;
+        if (std::none_of(iface.types.begin(), iface.types.end(), isAospAidlInterface)) continue;
         if (iface.stability != "vintf") continue;
 
         bool hasRegistration = false;