From 8f5dabdb7d0509c6dc35d58c0b426d6f0122e566 Mon Sep 17 00:00:00 2001 From: Julia Reynolds Date: Wed, 19 Feb 2020 08:42:07 -0500 Subject: [PATCH] Be more strict about what sounds can play in DND - Mute all notification usages when DND is on - Allow packages android and systemui to break through DND so they can continue to vibrate and play sound (respectively) for exceptions Test: atest Fixes: 139961234 Change-Id: Id3c7223311ca8f797a054068f7aed82991975a12 --- core/res/res/values/config.xml | 2 + .../server/notification/ZenModeHelper.java | 11 ++- .../notification/ZenModeHelperTest.java | 82 ++++++++++++++++++- 3 files changed, 88 insertions(+), 7 deletions(-) diff --git a/core/res/res/values/config.xml b/core/res/res/values/config.xml index c15b794266ccc..6ca50811115e9 100644 --- a/core/res/res/values/config.xml +++ b/core/res/res/values/config.xml @@ -3532,6 +3532,8 @@ mode --> com.android.dialer + com.android.systemui + android