Improve dumps/logs to diagnose mis-ordered group children
Fixes: 204817567 Test: dumpsysui NotifLog ShadeListBuilder NotifCollection Change-Id: I4d7f0497451572a7660607cb83b4e08c39b04db7
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user