History log of /frameworks/base/packages/SystemUI/src/com/android/systemui/ForegroundServiceController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0d18619022079ae5499403e8b383e0def9f0b207 28-May-2017 Dan Sandler <dsandler@android.com> Hide redundant foreground service notifications.

If an app with a foreground service has (at least one)
FLAG_FOREGROUND notification shown to the user, we allow
that to satisfy the requirement that the user be informed
about such things. But if the fg notification or its channel
is blocked by the user, we show the NOTE_FOREGROUND_SERVICES
notification (a/k/a Dianne's Dungeon) provided to us by the
activity manager.

Note that if even one of the foreground processes for the
current user is missing its disclosure notification, the
user will see the whole dungeon.

Bug: 36891897
Test: runtest -x frameworks/base/packages/SystemUI/tests/src/com/android/systemui/ForegroundServiceControllerTest.java
Change-Id: I4f5d96f80b7c1901faadb56661a42d26f746aa88
(cherry picked from commit 008cea772ac4d6122e81c19ff6128e33b7415917)
/frameworks/base/packages/SystemUI/src/com/android/systemui/ForegroundServiceController.java