packages/CarSystemUI/src/com/android/systemui/car/CarNotificationInterruptionStateProvider.java
0 → 100644
+42
−0
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
This change introduces the NotificationInterruptionStateProvider component, which contains all the logic around whether a notification should heads-up or pulse previously contained in NotificationEntryManager. We also introduce the NotificationFilter component which extracts logic about when to filter notifications from NotificationData, in order to break a circular dependency that would otherwise be introduced. As part of this, some additional fields from the notification ranking map are denormalized on to the NotificationData.Entry object. Test: atest SystemUITests, manually Change-Id: Ic61edca966a3c3e0b01f1a6a9e7ce79c8701da4e