Ensure buffers are parsed by using standard divider

This also adds back the colon that caused b/292275180

Test: adb bugreport -> ABT
Bug: 292221335
Change-Id: I823efa1b0ef751725a35053ea54b4dd04e801de9
This commit is contained in:
Jeff DeCew
2023-07-24 11:24:58 -04:00
parent 2dc4aac2aa
commit fb620579f7

View File

@@ -382,13 +382,6 @@ constructor(
const val DUMPSYS_DUMPABLE_DIVIDER =
"----------------------------------------------------------------------------"
/**
* Important: do not change this divider without updating any bug report processing tools
* (e.g. ABT), since this divider is used to determine boundaries for bug report views
*/
const val DUMPSYS_BUFFER_DIVIDER =
"============================================================================"
private fun findBestTargetMatch(c: Collection<DumpsysEntry>, target: String) =
c.asSequence().filter { it.name.endsWith(target) }.minByOrNull { it.name.length }
@@ -409,14 +402,14 @@ constructor(
is DumpableEntry,
is TableLogBufferEntry -> {
println()
println(entry.name)
println("${entry.name}:")
println(DUMPSYS_DUMPABLE_DIVIDER)
}
is LogBufferEntry -> {
println()
println()
println("BUFFER ${entry.name}:")
println(DUMPSYS_BUFFER_DIVIDER)
println(DUMPSYS_DUMPABLE_DIVIDER)
}
}