summaryrefslogtreecommitdiffstats
path: root/core/java/android/util
diff options
context:
space:
mode:
authorRobert Greenwalt <rgreenwalt@google.com>2015-06-23 15:03:33 -0700
committerRobert Greenwalt <rgreenwalt@google.com>2015-06-26 11:12:39 -0700
commit22b4c6a027d72ec90dc91d150bee007cb8167eed (patch)
tree5bb61ab136e9fb2ec69438339971c3d9d0e82dfc /core/java/android/util
parent0d99d43e819c90f009077b234572e353f2e453fa (diff)
downloadframeworks_base-22b4c6a027d72ec90dc91d150bee007cb8167eed.zip
frameworks_base-22b4c6a027d72ec90dc91d150bee007cb8167eed.tar.gz
frameworks_base-22b4c6a027d72ec90dc91d150bee007cb8167eed.tar.bz2
Add Validation logging.
Persist the last 20 lines of validation info for the last 10 networks. bug: 21599856 Change-Id: I8124480cc9181eea2adb7eb6eabcd07c9506b6d3
Diffstat (limited to 'core/java/android/util')
-rw-r--r--core/java/android/util/LocalLog.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/java/android/util/LocalLog.java b/core/java/android/util/LocalLog.java
index cab5d19..4862f01 100644
--- a/core/java/android/util/LocalLog.java
+++ b/core/java/android/util/LocalLog.java
@@ -54,4 +54,18 @@ public final class LocalLog {
pw.println(itr.next());
}
}
+
+ public static class ReadOnlyLocalLog {
+ private final LocalLog mLog;
+ ReadOnlyLocalLog(LocalLog log) {
+ mLog = log;
+ }
+ public void dump(FileDescriptor fd, PrintWriter pw, String[] args) {
+ mLog.dump(fd, pw, args);
+ }
+ }
+
+ public ReadOnlyLocalLog readOnlyLocalLog() {
+ return new ReadOnlyLocalLog(this);
+ }
}