Tweak LockSettingsService dump output
Increase width for file size field to account for files of 16384 bytes, and sort files by default. Bug: 177641879 Test: dumpsys lock_settings Change-Id: Ief732476fa28014a56b4e0e895cd6345ea2ca2c9
This commit is contained in:
@@ -753,8 +753,9 @@ class LockSettingsStorage {
|
||||
pw.increaseIndent();
|
||||
File[] files = userPath.listFiles();
|
||||
if (files != null) {
|
||||
Arrays.sort(files);
|
||||
for (File file : files) {
|
||||
pw.println(String.format("%4d %s %s", file.length(),
|
||||
pw.println(String.format("%6d %s %s", file.length(),
|
||||
LockSettingsService.timestampToString(file.lastModified()),
|
||||
file.getName()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user