Add com.android.bluetooth to allowed log source
- In Android Auto, bluetooth events are from com.android.bluetooth.
- To log them in statsd, com.android.bluetooth should be added to
allowed log source
Bug: 133440279
Test: Run CtsStatsdHostTestCases::android.cts.statsd.atom.UidAtomTests#testBleScan
Change-Id: I24fcdca05f8cfd34116b333c79a2bb55b5f1295e
diff --git a/hostsidetests/statsd/src/android/cts/statsd/atom/AtomTestCase.java b/hostsidetests/statsd/src/android/cts/statsd/atom/AtomTestCase.java
index 9b1ce2b..f38bf33 100644
--- a/hostsidetests/statsd/src/android/cts/statsd/atom/AtomTestCase.java
+++ b/hostsidetests/statsd/src/android/cts/statsd/atom/AtomTestCase.java
@@ -199,6 +199,8 @@
return StatsdConfig.newBuilder().setId(CONFIG_ID)
.addAllowedLogSource("AID_SYSTEM")
.addAllowedLogSource("AID_BLUETOOTH")
+ // TODO(b/134091167): Fix bluetooth source name issue in Auto platform.
+ .addAllowedLogSource("com.android.bluetooth")
.addAllowedLogSource(DeviceAtomTestCase.DEVICE_SIDE_TEST_PACKAGE);
}