Ignore atoms from bg location source in tests

I haven't ascertained why this source is sending data so frequently
(on the ATH) that this is a problem, it's not behaving the same way
when running these tests locally.

But this should get the tests back into a stable state regardless and
we can investigate that as a secondary issue if necessary.

If I find that we need to make a third special intervention (to filter
out more atoms from prod sources) then at that point I will do
something more clever like filtering everything from the config or
whatever..

Fix: 278782808
Change-Id: Ie574ada3dc18a0347c7bd15a0618b445db42f62c
diff --git a/tests/hostside/safetycenter/src/android/safetycenter/hostside/SafetySourceStateCollectedLoggingHostTest.kt b/tests/hostside/safetycenter/src/android/safetycenter/hostside/SafetySourceStateCollectedLoggingHostTest.kt
index 610f111..ad00450 100644
--- a/tests/hostside/safetycenter/src/android/safetycenter/hostside/SafetySourceStateCollectedLoggingHostTest.kt
+++ b/tests/hostside/safetycenter/src/android/safetycenter/hostside/SafetySourceStateCollectedLoggingHostTest.kt
@@ -120,13 +120,17 @@
             .filterNot {
                 // Installing/uninstalling the helper app can cause Play Protect to run a scan and
                 // push new data to Safety Center which interferes with the test results so we
-                // specifically filter the resultant atoms out using the real encoded source ID
+                // specifically filter the resultant atoms out using the real encoded source ID.
+                // Similar failures are also observed on Android Test Hub due to the background
+                // location source (b/278782808)
                 it.encodedSafetySourceId == PLAY_PROTECT_ENCODED_SOURCE_ID
+                        || it.encodedSafetySourceId == BACKGROUND_LOCATION_ENCODED_SOURCE_ID
             }
 
     private companion object {
         const val TEST_CLASS_NAME = ".SafetySourceStateCollectedLoggingHelperTests"
         const val PLAY_PROTECT_ENCODED_SOURCE_ID = 7711894340233229936L
+        const val BACKGROUND_LOCATION_ENCODED_SOURCE_ID = 7355693215512427559L
         const val SOURCE_1_ENCODED_SOURCE_ID = 6446219357586936066L
         const val SOURCE_2_ENCODED_SOURCE_ID = -5887429047684886602L
         const val SOURCE_3_ENCODED_SOURCE_ID = -619470868366498469L