Loading packages/SystemUI/src/com/android/systemui/log/RichEvent.java +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ public abstract class RichEvent extends Event { private B mBuilder = getBuilder(); protected int mType = UNINITIALIZED; protected String mReason; protected @Level int mLogLevel; protected @Level int mLogLevel = VERBOSE; /** * Get the log-specific builder. Loading packages/SystemUI/src/com/android/systemui/log/SysuiLog.java +10 −3 Original line number Diff line number Diff line Loading @@ -120,9 +120,9 @@ public class SysuiLog implements Dumpable { } /** * @return user-readable string of the given event * @return user-readable string of the given event with timestamp */ public String eventToString(Event event) { public String eventToTimestampedString(Event event) { StringBuilder sb = new StringBuilder(); sb.append(SysuiLog.DATE_FORMAT.format(event.getTimestamp())); sb.append(" "); Loading @@ -130,6 +130,13 @@ public class SysuiLog implements Dumpable { return sb.toString(); } /** * @return user-readable string of the given event without a timestamp */ public String eventToString(Event event) { return event.getMessage(); } /** * only call on this method if you have the mDataLock */ Loading @@ -137,7 +144,7 @@ public class SysuiLog implements Dumpable { pw.println("\tTimeline:"); for (Event event : mTimeline) { pw.println("\t" + eventToString(event)); pw.println("\t" + eventToTimestampedString(event)); } } Loading Loading
packages/SystemUI/src/com/android/systemui/log/RichEvent.java +1 −1 Original line number Diff line number Diff line Loading @@ -67,7 +67,7 @@ public abstract class RichEvent extends Event { private B mBuilder = getBuilder(); protected int mType = UNINITIALIZED; protected String mReason; protected @Level int mLogLevel; protected @Level int mLogLevel = VERBOSE; /** * Get the log-specific builder. Loading
packages/SystemUI/src/com/android/systemui/log/SysuiLog.java +10 −3 Original line number Diff line number Diff line Loading @@ -120,9 +120,9 @@ public class SysuiLog implements Dumpable { } /** * @return user-readable string of the given event * @return user-readable string of the given event with timestamp */ public String eventToString(Event event) { public String eventToTimestampedString(Event event) { StringBuilder sb = new StringBuilder(); sb.append(SysuiLog.DATE_FORMAT.format(event.getTimestamp())); sb.append(" "); Loading @@ -130,6 +130,13 @@ public class SysuiLog implements Dumpable { return sb.toString(); } /** * @return user-readable string of the given event without a timestamp */ public String eventToString(Event event) { return event.getMessage(); } /** * only call on this method if you have the mDataLock */ Loading @@ -137,7 +144,7 @@ public class SysuiLog implements Dumpable { pw.println("\tTimeline:"); for (Event event : mTimeline) { pw.println("\t" + eventToString(event)); pw.println("\t" + eventToTimestampedString(event)); } } Loading