From fd5d9ed49956ce9286c373d350f2dc053ea48424 Mon Sep 17 00:00:00 2001 From: Julia Tuttle Date: Fri, 14 Oct 2022 18:09:46 -0400 Subject: [PATCH] Reformat NotificationMemoryMonitor.kt in main to match tm-qpr-dev Bug: 194112194 Bug: 235451049 Bug: 243819288 Test: n/a, just reformats code Change-Id: Ia0a064f9ce267e86e6c2b3e4a235b1786d2e41dd --- .../logging/NotificationMemoryMonitor.kt | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitor.kt b/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitor.kt index ef7fa335c3cd0..958978ecd8580 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitor.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/logging/NotificationMemoryMonitor.kt @@ -73,15 +73,19 @@ constructor( fun notificationMemoryUse( notifications: Collection ): List { - 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() + 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() } /**