summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author vadimt <vadimt@google.com> 2022-06-07 15:19:02 -0700
committer Vadim Tryshev <vadimt@google.com> 2022-06-07 23:13:53 +0000
commitf481bb57ba1db3c228e68d2fd189f80866601eed (patch)
tree101f8ae9709e85938136dfb8e017300f59be737f
parent17cdad7b227d6351a7080f0830aa47986d3e624f (diff)
Add tracing to the handler for setting notification filter
This will help to see whether the handler hangs. Bug: 202567877, 235268992 Test: presubmit Change-Id: I3dbf0861717b25196728c32e101bc1115484d02e
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/DebugModeFilterProvider.kt4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/DebugModeFilterProvider.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/DebugModeFilterProvider.kt
index 0f4772feac8d..a0c39c6daab4 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/DebugModeFilterProvider.kt
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/provider/DebugModeFilterProvider.kt
@@ -104,10 +104,14 @@ class DebugModeFilterProvider @Inject constructor(
override fun onReceive(context: Context, intent: Intent?) {
val action = intent?.action
if (ACTION_SET_NOTIF_DEBUG_MODE == action) {
+ // TODO(b/235268992) remove
+ Log.d(TAG, "ACTION_SET_NOTIF_DEBUG_MODE enter")
allowedPackages = intent.extras?.getStringArrayList(EXTRA_ALLOWED_PACKAGES)
?: emptyList()
Log.d(TAG, "Updated allowedPackages: $allowedPackages")
listeners.forEach(Runnable::run)
+ // TODO(b/235268992) remove
+ Log.d(TAG, "ACTION_SET_NOTIF_DEBUG_MODE leave")
} else {
Log.d(TAG, "Malformed intent: $intent")
}