Loading packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coalescer/GroupCoalescer.java +3 −2 Original line number Diff line number Diff line Loading @@ -260,7 +260,8 @@ public class GroupCoalescer implements Dumpable { } events.sort(mEventComparator); mLogger.logEmitBatch(batch.mGroupKey); long batchAge = mClock.uptimeMillis() - batch.mCreatedTimestamp; mLogger.logEmitBatch(batch.mGroupKey, batch.mMembers.size(), batchAge); mHandler.onNotificationBatchPosted(events); } Loading Loading @@ -337,6 +338,6 @@ public class GroupCoalescer implements Dumpable { void onNotificationBatchPosted(List<CoalescedEvent> events); } private static final int MIN_GROUP_LINGER_DURATION = 50; private static final int MIN_GROUP_LINGER_DURATION = 200; private static final int MAX_GROUP_LINGER_DURATION = 500; } packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coalescer/GroupCoalescerLogger.kt +4 −2 Original line number Diff line number Diff line Loading @@ -32,11 +32,13 @@ class GroupCoalescerLogger @Inject constructor( }) } fun logEmitBatch(groupKey: String) { fun logEmitBatch(groupKey: String, batchSize: Int, batchAgeMs: Long) { buffer.log(TAG, LogLevel.DEBUG, { str1 = groupKey int1 = batchSize long1 = batchAgeMs }, { "Emitting event batch for group $str1" "Emitting batch for group $str1 size=$int1 age=${long1}ms" }) } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coalescer/GroupCoalescer.java +3 −2 Original line number Diff line number Diff line Loading @@ -260,7 +260,8 @@ public class GroupCoalescer implements Dumpable { } events.sort(mEventComparator); mLogger.logEmitBatch(batch.mGroupKey); long batchAge = mClock.uptimeMillis() - batch.mCreatedTimestamp; mLogger.logEmitBatch(batch.mGroupKey, batch.mMembers.size(), batchAge); mHandler.onNotificationBatchPosted(events); } Loading Loading @@ -337,6 +338,6 @@ public class GroupCoalescer implements Dumpable { void onNotificationBatchPosted(List<CoalescedEvent> events); } private static final int MIN_GROUP_LINGER_DURATION = 50; private static final int MIN_GROUP_LINGER_DURATION = 200; private static final int MAX_GROUP_LINGER_DURATION = 500; }
packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coalescer/GroupCoalescerLogger.kt +4 −2 Original line number Diff line number Diff line Loading @@ -32,11 +32,13 @@ class GroupCoalescerLogger @Inject constructor( }) } fun logEmitBatch(groupKey: String) { fun logEmitBatch(groupKey: String, batchSize: Int, batchAgeMs: Long) { buffer.log(TAG, LogLevel.DEBUG, { str1 = groupKey int1 = batchSize long1 = batchAgeMs }, { "Emitting event batch for group $str1" "Emitting batch for group $str1 size=$int1 age=${long1}ms" }) } Loading