summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/ForegroundServicesUserState.java
Commit message (Collapse)AuthorAgeFilesLines
* Track non-foreground service notifs for appOpsBeverly2020-06-161-4/+14
| | | | | | | | | | | | | | | | | Previously we were only updating appOps for notifications with standard layouts that were associated with a foreground services. However, non-foreground service notifications can be tagged with appOps, so we make sure to update these notifications' appOps whenever appOps are changed. (We do this by tracking all notifications with standard layouts instead of just the foreground service notifications) Test: atest AppOpsCoordinatorTest ForegroundServiceControllerTest Test: manual (use camera on whatsApp, receive message with app op, quit app, see that app op is gone on the notification) Fixes: 158585352 Change-Id: I674fc42441c2847a030df03516484ee6cd9217ac Change-Id: I0527b8596277e53bea5a68aa57e0726aea9d14ac
* Add Coordinators to replace NotificationFilterBeverly2019-12-041-1/+1
| | | | | | Test: atest SystemUiTests Bug: 145134683 Change-Id: Ibd6331c261f96c9ce5ab6c9c453473a7a349c8e8
* Factors out notification listening from ForegroundServiceController.Gus Prevas2019-01-041-0/+149
This change introduces the ForegroundServiceNotificationListener component, which contains the logic formerly in ForegroundServiceController for updating its state in response to notification events. ForegroundServiceNotificationListener adds a standard NotificationEntryListener to the NotificationEntryManager, allowing us to remove the explicit calls from NotificationEntryManager; splitting this out to its own class prevents us from introducing a circular dependency since NotificationEntryManager still needs to use the query methods on ForegroundServiceController. Test: atest SystemUITests, manual Change-Id: Iec72aa3a9fd90e3f0079db3b2a3c4f1882e59731