summaryrefslogtreecommitdiff
path: root/libs/androidfw/ObbFile.cpp
diff options
context:
space:
mode:
author Jeff DeCew <jeffdq@google.com> 2023-04-28 10:34:20 -0400
committer Jeff DeCew <jeffdq@google.com> 2023-04-29 00:49:01 +0000
commit2887df96862f4985803a39dc78d879c027bfcfe2 (patch)
treed60870529b719180a0170ec45f3cc61abc165796 /libs/androidfw/ObbFile.cpp
parent4542c10c12ea54a6253d703da93666b063b85d93 (diff)
Small fixes to DumpManager
1) Use a TreeMap instead of an ArrayMap for dumpables and buffers to ensure consistent and predictable dump order across bugreports. 2) Instead of selecting just the first dumpable to match the target string, select the one with the shortest name; this guaruntees that an exact match will always be returned. Test: dumpsysui --list (observe: dumpables and buffers are in alphabetical order) Test: dumpsysui Log (observe: dumps QSLog instead of WifiTableLog) Test: atest DumpManagerTest Fixes: 252783246 Change-Id: Ifbdf3428b9343e1146e39e20f65a5897f6821f90
Diffstat (limited to 'libs/androidfw/ObbFile.cpp')
0 files changed, 0 insertions, 0 deletions