Loading packages/CarSystemUI/src/com/android/systemui/CarSystemUIModule.java +1 −2 Original line number Diff line number Diff line Loading @@ -38,7 +38,6 @@ import com.android.systemui.statusbar.car.CarStatusBar; import com.android.systemui.statusbar.car.CarStatusBarKeyguardViewManager; import com.android.systemui.statusbar.notification.NotificationEntryManager; import com.android.systemui.statusbar.notification.NotificationInterruptionStateProvider; import com.android.systemui.statusbar.notification.collection.NotificationData; import com.android.systemui.statusbar.phone.KeyguardEnvironmentImpl; import com.android.systemui.statusbar.phone.ShadeController; import com.android.systemui.statusbar.phone.StatusBar; Loading Loading @@ -101,7 +100,7 @@ abstract class CarSystemUIModule { abstract DockManager bindDockManager(DockManagerImpl dockManager); @Binds abstract NotificationData.KeyguardEnvironment bindKeyguardEnvironment( abstract NotificationEntryManager.KeyguardEnvironment bindKeyguardEnvironment( KeyguardEnvironmentImpl keyguardEnvironment); @Binds Loading packages/CarSystemUI/src/com/android/systemui/car/CarNotificationEntryManager.java +8 −3 Original line number Diff line number Diff line Loading @@ -19,8 +19,9 @@ import android.service.notification.NotificationListenerService; import android.service.notification.StatusBarNotification; import com.android.systemui.statusbar.notification.NotificationEntryManager; import com.android.systemui.statusbar.notification.collection.NotificationData; import com.android.systemui.statusbar.notification.collection.NotificationRankingManager; import com.android.systemui.statusbar.notification.logging.NotifLog; import com.android.systemui.statusbar.phone.NotificationGroupManager; import javax.inject.Inject; import javax.inject.Singleton; Loading @@ -35,8 +36,12 @@ import javax.inject.Singleton; public class CarNotificationEntryManager extends NotificationEntryManager { @Inject public CarNotificationEntryManager(NotificationData notificationData, NotifLog notifLog) { super(notificationData, notifLog); public CarNotificationEntryManager( NotifLog notifLog, NotificationGroupManager groupManager, NotificationRankingManager rankingManager, KeyguardEnvironment keyguardEnvironment) { super(notifLog, groupManager, rankingManager, keyguardEnvironment); } @Override Loading packages/SystemUI/src/com/android/systemui/Dependency.java +1 −1 Original line number Diff line number Diff line Loading @@ -75,10 +75,10 @@ import com.android.systemui.statusbar.SmartReplyController; import com.android.systemui.statusbar.VibratorHelper; import com.android.systemui.statusbar.notification.NotificationAlertingManager; import com.android.systemui.statusbar.notification.NotificationEntryManager; import com.android.systemui.statusbar.notification.NotificationEntryManager.KeyguardEnvironment; import com.android.systemui.statusbar.notification.NotificationFilter; import com.android.systemui.statusbar.notification.NotificationInterruptionStateProvider; import com.android.systemui.statusbar.notification.VisualStabilityManager; import com.android.systemui.statusbar.notification.collection.NotificationData.KeyguardEnvironment; import com.android.systemui.statusbar.notification.logging.NotificationLogger; import com.android.systemui.statusbar.notification.row.ChannelEditorDialogController; import com.android.systemui.statusbar.notification.row.NotificationBlockingHelperManager; Loading packages/SystemUI/src/com/android/systemui/ForegroundServiceController.java +1 −2 Original line number Diff line number Diff line Loading @@ -139,8 +139,7 @@ public class ForegroundServiceController { // Update appOp if there's an associated pending or visible notification: final String foregroundKey = getStandardLayoutKey(userId, packageName); if (foregroundKey != null) { final NotificationEntry entry = mEntryManager.getPendingOrCurrentNotif( foregroundKey); final NotificationEntry entry = mEntryManager.getPendingOrActiveNotif(foregroundKey); if (entry != null && uid == entry.getSbn().getUid() && packageName.equals(entry.getSbn().getPackageName())) { Loading packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +6 −7 Original line number Diff line number Diff line Loading @@ -78,7 +78,6 @@ import com.android.systemui.statusbar.NotificationRemoveInterceptor; import com.android.systemui.statusbar.notification.NotificationEntryListener; import com.android.systemui.statusbar.notification.NotificationEntryManager; import com.android.systemui.statusbar.notification.NotificationInterruptionStateProvider; import com.android.systemui.statusbar.notification.collection.NotificationData; import com.android.systemui.statusbar.notification.collection.NotificationEntry; import com.android.systemui.statusbar.phone.NotificationGroupManager; import com.android.systemui.statusbar.phone.ShadeController; Loading Loading @@ -352,14 +351,13 @@ public class BubbleController implements ConfigurationController.ConfigurationLi * @param userId the id of the user */ private void restoreBubbles(@UserIdInt int userId) { NotificationData notificationData = mNotificationEntryManager.getNotificationData(); ArraySet<String> savedBubbleKeys = mSavedBubbleKeysPerUser.get(userId); if (savedBubbleKeys == null) { // There were no bubbles saved for this used. return; } for (NotificationEntry e : notificationData.getNotificationsForCurrentUser()) { for (NotificationEntry e : mNotificationEntryManager.getActiveNotificationsForCurrentUser()) { if (savedBubbleKeys.contains(e.getKey()) && mNotificationInterruptionStateProvider.shouldBubbleUp(e) && canLaunchInActivityView(mContext, e)) { Loading Loading @@ -458,7 +456,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi public boolean isBubbleNotificationSuppressedFromShade(String key) { boolean isBubbleAndSuppressed = mBubbleData.hasBubbleWithKey(key) && !mBubbleData.getBubbleWithKey(key).showInShadeWhenBubble(); NotificationEntry entry = mNotificationEntryManager.getNotificationData().get(key); NotificationEntry entry = mNotificationEntryManager.getActiveNotificationUnfiltered(key); String groupKey = entry != null ? entry.getSbn().getGroupKey() : null; boolean isSuppressedSummary = mBubbleData.isSummarySuppressed(groupKey); boolean isSummary = key.equals(mBubbleData.getSummaryKey(groupKey)); Loading Loading @@ -571,7 +569,8 @@ public class BubbleController implements ConfigurationController.ConfigurationLi new NotificationRemoveInterceptor() { @Override public boolean onNotificationRemoveRequested(String key, int reason) { NotificationEntry entry = mNotificationEntryManager.getNotificationData().get(key); NotificationEntry entry = mNotificationEntryManager.getActiveNotificationUnfiltered(key); String groupKey = entry != null ? entry.getSbn().getGroupKey() : null; ArrayList<Bubble> bubbleChildren = mBubbleData.getBubblesInGroup(groupKey); Loading Loading @@ -768,7 +767,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi String notifKey = mBubbleData.getSummaryKey(groupKey); mBubbleData.removeSuppressedSummary(groupKey); NotificationEntry entry = mNotificationEntryManager.getNotificationData().get(notifKey); mNotificationEntryManager.getActiveNotificationUnfiltered(notifKey); mNotificationEntryManager.performRemoveNotification( entry.getSbn(), UNDEFINED_DISMISS_REASON); } Loading Loading
packages/CarSystemUI/src/com/android/systemui/CarSystemUIModule.java +1 −2 Original line number Diff line number Diff line Loading @@ -38,7 +38,6 @@ import com.android.systemui.statusbar.car.CarStatusBar; import com.android.systemui.statusbar.car.CarStatusBarKeyguardViewManager; import com.android.systemui.statusbar.notification.NotificationEntryManager; import com.android.systemui.statusbar.notification.NotificationInterruptionStateProvider; import com.android.systemui.statusbar.notification.collection.NotificationData; import com.android.systemui.statusbar.phone.KeyguardEnvironmentImpl; import com.android.systemui.statusbar.phone.ShadeController; import com.android.systemui.statusbar.phone.StatusBar; Loading Loading @@ -101,7 +100,7 @@ abstract class CarSystemUIModule { abstract DockManager bindDockManager(DockManagerImpl dockManager); @Binds abstract NotificationData.KeyguardEnvironment bindKeyguardEnvironment( abstract NotificationEntryManager.KeyguardEnvironment bindKeyguardEnvironment( KeyguardEnvironmentImpl keyguardEnvironment); @Binds Loading
packages/CarSystemUI/src/com/android/systemui/car/CarNotificationEntryManager.java +8 −3 Original line number Diff line number Diff line Loading @@ -19,8 +19,9 @@ import android.service.notification.NotificationListenerService; import android.service.notification.StatusBarNotification; import com.android.systemui.statusbar.notification.NotificationEntryManager; import com.android.systemui.statusbar.notification.collection.NotificationData; import com.android.systemui.statusbar.notification.collection.NotificationRankingManager; import com.android.systemui.statusbar.notification.logging.NotifLog; import com.android.systemui.statusbar.phone.NotificationGroupManager; import javax.inject.Inject; import javax.inject.Singleton; Loading @@ -35,8 +36,12 @@ import javax.inject.Singleton; public class CarNotificationEntryManager extends NotificationEntryManager { @Inject public CarNotificationEntryManager(NotificationData notificationData, NotifLog notifLog) { super(notificationData, notifLog); public CarNotificationEntryManager( NotifLog notifLog, NotificationGroupManager groupManager, NotificationRankingManager rankingManager, KeyguardEnvironment keyguardEnvironment) { super(notifLog, groupManager, rankingManager, keyguardEnvironment); } @Override Loading
packages/SystemUI/src/com/android/systemui/Dependency.java +1 −1 Original line number Diff line number Diff line Loading @@ -75,10 +75,10 @@ import com.android.systemui.statusbar.SmartReplyController; import com.android.systemui.statusbar.VibratorHelper; import com.android.systemui.statusbar.notification.NotificationAlertingManager; import com.android.systemui.statusbar.notification.NotificationEntryManager; import com.android.systemui.statusbar.notification.NotificationEntryManager.KeyguardEnvironment; import com.android.systemui.statusbar.notification.NotificationFilter; import com.android.systemui.statusbar.notification.NotificationInterruptionStateProvider; import com.android.systemui.statusbar.notification.VisualStabilityManager; import com.android.systemui.statusbar.notification.collection.NotificationData.KeyguardEnvironment; import com.android.systemui.statusbar.notification.logging.NotificationLogger; import com.android.systemui.statusbar.notification.row.ChannelEditorDialogController; import com.android.systemui.statusbar.notification.row.NotificationBlockingHelperManager; Loading
packages/SystemUI/src/com/android/systemui/ForegroundServiceController.java +1 −2 Original line number Diff line number Diff line Loading @@ -139,8 +139,7 @@ public class ForegroundServiceController { // Update appOp if there's an associated pending or visible notification: final String foregroundKey = getStandardLayoutKey(userId, packageName); if (foregroundKey != null) { final NotificationEntry entry = mEntryManager.getPendingOrCurrentNotif( foregroundKey); final NotificationEntry entry = mEntryManager.getPendingOrActiveNotif(foregroundKey); if (entry != null && uid == entry.getSbn().getUid() && packageName.equals(entry.getSbn().getPackageName())) { Loading
packages/SystemUI/src/com/android/systemui/bubbles/BubbleController.java +6 −7 Original line number Diff line number Diff line Loading @@ -78,7 +78,6 @@ import com.android.systemui.statusbar.NotificationRemoveInterceptor; import com.android.systemui.statusbar.notification.NotificationEntryListener; import com.android.systemui.statusbar.notification.NotificationEntryManager; import com.android.systemui.statusbar.notification.NotificationInterruptionStateProvider; import com.android.systemui.statusbar.notification.collection.NotificationData; import com.android.systemui.statusbar.notification.collection.NotificationEntry; import com.android.systemui.statusbar.phone.NotificationGroupManager; import com.android.systemui.statusbar.phone.ShadeController; Loading Loading @@ -352,14 +351,13 @@ public class BubbleController implements ConfigurationController.ConfigurationLi * @param userId the id of the user */ private void restoreBubbles(@UserIdInt int userId) { NotificationData notificationData = mNotificationEntryManager.getNotificationData(); ArraySet<String> savedBubbleKeys = mSavedBubbleKeysPerUser.get(userId); if (savedBubbleKeys == null) { // There were no bubbles saved for this used. return; } for (NotificationEntry e : notificationData.getNotificationsForCurrentUser()) { for (NotificationEntry e : mNotificationEntryManager.getActiveNotificationsForCurrentUser()) { if (savedBubbleKeys.contains(e.getKey()) && mNotificationInterruptionStateProvider.shouldBubbleUp(e) && canLaunchInActivityView(mContext, e)) { Loading Loading @@ -458,7 +456,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi public boolean isBubbleNotificationSuppressedFromShade(String key) { boolean isBubbleAndSuppressed = mBubbleData.hasBubbleWithKey(key) && !mBubbleData.getBubbleWithKey(key).showInShadeWhenBubble(); NotificationEntry entry = mNotificationEntryManager.getNotificationData().get(key); NotificationEntry entry = mNotificationEntryManager.getActiveNotificationUnfiltered(key); String groupKey = entry != null ? entry.getSbn().getGroupKey() : null; boolean isSuppressedSummary = mBubbleData.isSummarySuppressed(groupKey); boolean isSummary = key.equals(mBubbleData.getSummaryKey(groupKey)); Loading Loading @@ -571,7 +569,8 @@ public class BubbleController implements ConfigurationController.ConfigurationLi new NotificationRemoveInterceptor() { @Override public boolean onNotificationRemoveRequested(String key, int reason) { NotificationEntry entry = mNotificationEntryManager.getNotificationData().get(key); NotificationEntry entry = mNotificationEntryManager.getActiveNotificationUnfiltered(key); String groupKey = entry != null ? entry.getSbn().getGroupKey() : null; ArrayList<Bubble> bubbleChildren = mBubbleData.getBubblesInGroup(groupKey); Loading Loading @@ -768,7 +767,7 @@ public class BubbleController implements ConfigurationController.ConfigurationLi String notifKey = mBubbleData.getSummaryKey(groupKey); mBubbleData.removeSuppressedSummary(groupKey); NotificationEntry entry = mNotificationEntryManager.getNotificationData().get(notifKey); mNotificationEntryManager.getActiveNotificationUnfiltered(notifKey); mNotificationEntryManager.performRemoveNotification( entry.getSbn(), UNDEFINED_DISMISS_REASON); } Loading