Loading services/core/java/com/android/server/power/ShutdownCheckPoints.java +4 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ public final class ShutdownCheckPoints { private static final int MAX_DUMP_FILES = 20; private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); private static final File[] EMPTY_FILE_ARRAY = {}; private final ArrayList<CheckPoint> mCheckPoints; private final Injector mInjector; Loading Loading @@ -381,6 +382,9 @@ public final class ShutdownCheckPoints { return true; } }); if (files == null) { return EMPTY_FILE_ARRAY; } Arrays.sort(files); return files; } Loading Loading
services/core/java/com/android/server/power/ShutdownCheckPoints.java +4 −0 Original line number Diff line number Diff line Loading @@ -54,6 +54,7 @@ public final class ShutdownCheckPoints { private static final int MAX_DUMP_FILES = 20; private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS z"); private static final File[] EMPTY_FILE_ARRAY = {}; private final ArrayList<CheckPoint> mCheckPoints; private final Injector mInjector; Loading Loading @@ -381,6 +382,9 @@ public final class ShutdownCheckPoints { return true; } }); if (files == null) { return EMPTY_FILE_ARRAY; } Arrays.sort(files); return files; } Loading