packages/SystemUI/src/com/android/systemui/statusbar/notification/interruption/AvalancheProvider.kt
0 → 100644
+71
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
VisualInterruptionDecisionProviderImpl:
Add BroadcastDispatcher to register broadcast receiver
that updates avalanche info in AvalancheProvider
CommonVisualInterruptionSuppressors:
Add AvalancheSuppressor
Fixes: 322060786
Test: VisualInterruptionDecisionProviderImplTest
Test: enable flags
adb shell device_config override systemui com.android.systemui.visual_interruptions_refactor true
adb shell device_config override systemui com.android.systemui.notification_avalanche_suppression true
Allowlist:
Conversation after avalanche time
High priority conversation from any time
CallStyles
CATEGORY_REMINDER
CATEGORY_EVENT
FSI with permission on
Colorized
HUNs not in the allowlist are suppressed for two minutes after:
Turning phone ON
Turning airplane mode OFF
Turning work profile ON
Switching user
Flag: ACONFIG notification_avalanche_suppression DEVELOPMENT
Change-Id: I86314c3df4e8d079bffbe8489a5474a1e984dc68