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
This commit is contained in:
Julia Tuttle
2022-10-14 18:09:46 -04:00
parent 2d1f437194
commit fd5d9ed499

View File

@@ -73,15 +73,19 @@ constructor(
fun notificationMemoryUse(
notifications: Collection<NotificationEntry>
): List<NotificationMemoryUsage> {
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()
}
/**