Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotifCollection.java +6 −0 Original line number Diff line number Diff line Loading @@ -504,6 +504,11 @@ public class NotifCollection implements Dumpable { extender)); } mLogger.logLifetimeExtensionEnded( entry.getKey(), extender, entry.mLifetimeExtenders.size()); if (!isLifetimeExtended(entry)) { if (tryRemoveNotification(entry)) { dispatchEventsAndRebuildList(); Loading @@ -529,6 +534,7 @@ public class NotifCollection implements Dumpable { mAmDispatchingToOtherCode = true; for (NotifLifetimeExtender extender : mLifetimeExtenders) { if (extender.shouldExtendLifetime(entry, entry.mCancellationReason)) { mLogger.logLifetimeExtended(entry.getKey(), extender); entry.mLifetimeExtenders.add(extender); } } Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/NotifCollectionLogger.kt +23 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,29 @@ class NotifCollectionLogger @Inject constructor( "RemoteException while attempting to clear all notifications:\n$str1" }) } fun logLifetimeExtended(key: String, extender: NotifLifetimeExtender) { buffer.log(TAG, INFO, { str1 = key str2 = extender.name }, { "LIFETIME EXTENDED: $str1 by $str2" }) } fun logLifetimeExtensionEnded( key: String, extender: NotifLifetimeExtender, totalExtenders: Int ) { buffer.log(TAG, INFO, { str1 = key str2 = extender.name int1 = totalExtenders }, { "LIFETIME EXTENSION ENDED for $str1 by '$str2'; $int1 remaining extensions" }) } } private const val TAG = "NotifCollection" Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/NotifCollection.java +6 −0 Original line number Diff line number Diff line Loading @@ -504,6 +504,11 @@ public class NotifCollection implements Dumpable { extender)); } mLogger.logLifetimeExtensionEnded( entry.getKey(), extender, entry.mLifetimeExtenders.size()); if (!isLifetimeExtended(entry)) { if (tryRemoveNotification(entry)) { dispatchEventsAndRebuildList(); Loading @@ -529,6 +534,7 @@ public class NotifCollection implements Dumpable { mAmDispatchingToOtherCode = true; for (NotifLifetimeExtender extender : mLifetimeExtenders) { if (extender.shouldExtendLifetime(entry, entry.mCancellationReason)) { mLogger.logLifetimeExtended(entry.getKey(), extender); entry.mLifetimeExtenders.add(extender); } } Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/notifcollection/NotifCollectionLogger.kt +23 −0 Original line number Diff line number Diff line Loading @@ -111,6 +111,29 @@ class NotifCollectionLogger @Inject constructor( "RemoteException while attempting to clear all notifications:\n$str1" }) } fun logLifetimeExtended(key: String, extender: NotifLifetimeExtender) { buffer.log(TAG, INFO, { str1 = key str2 = extender.name }, { "LIFETIME EXTENDED: $str1 by $str2" }) } fun logLifetimeExtensionEnded( key: String, extender: NotifLifetimeExtender, totalExtenders: Int ) { buffer.log(TAG, INFO, { str1 = key str2 = extender.name int1 = totalExtenders }, { "LIFETIME EXTENSION ENDED for $str1 by '$str2'; $int1 remaining extensions" }) } } private const val TAG = "NotifCollection"