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:
@@ -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()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user