Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitor.kt +13 −9 Original line number Diff line number Diff line Loading @@ -73,15 +73,19 @@ constructor( fun notificationMemoryUse( notifications: Collection<NotificationEntry> ): List<NotificationMemoryUsage> { return notifications.asSequence().map { entry -> return notifications .asSequence() .map { entry -> val packageName = entry.sbn.packageName val notificationObjectUsage = computeNotificationObjectUse(entry.sbn.notification, hashSetOf()) NotificationMemoryUsage( packageName, NotificationUtils.logKey(entry.sbn.key), notificationObjectUsage) }.toList() notificationObjectUsage ) } .toList() } /** Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitor.kt +13 −9 Original line number Diff line number Diff line Loading @@ -73,15 +73,19 @@ constructor( fun notificationMemoryUse( notifications: Collection<NotificationEntry> ): List<NotificationMemoryUsage> { return notifications.asSequence().map { entry -> return notifications .asSequence() .map { entry -> val packageName = entry.sbn.packageName val notificationObjectUsage = computeNotificationObjectUse(entry.sbn.notification, hashSetOf()) NotificationMemoryUsage( packageName, NotificationUtils.logKey(entry.sbn.key), notificationObjectUsage) }.toList() notificationObjectUsage ) } .toList() } /** Loading