Improve dumps/logs to diagnose mis-ordered group children

Fixes: 204817567
Test: dumpsysui NotifLog ShadeListBuilder NotifCollection
Change-Id: I4d7f0497451572a7660607cb83b4e08c39b04db7
This commit is contained in:
Jeff DeCew
2022-05-06 15:21:42 +00:00
parent 18e41351c9
commit 229b07808f
2 changed files with 9 additions and 6 deletions

View File

@@ -121,6 +121,12 @@ public class ListDumper {
sb.append(" (parent=")
.append(entry.getParent() != null ? entry.getParent().getKey() : null)
.append(")");
NotificationEntry notifEntry = entry.getRepresentativeEntry();
if (notifEntry != null) {
sb.append(" rank=")
.append(notifEntry.getRanking().getRank());
}
}
if (entry.getSection() != null) {

View File

@@ -25,12 +25,9 @@ data class NotifSection(
val sectioner: NotifSectioner,
val index: Int
) {
val label: String
get() = "Section($index, $bucket, \"${sectioner.name}\")"
@PriorityBucket
val bucket: Int = sectioner.bucket
val label: String = "$index:$bucket:${sectioner.name}"
val headerController: NodeController? = sectioner.headerNodeController
val comparator: NotifComparator? = sectioner.comparator
@PriorityBucket val bucket: Int = sectioner.bucket
}