summaryrefslogtreecommitdiffstats
path: root/core/java/android/util
diff options
context:
space:
mode:
authorJim Miller <jaggies@google.com>2009-07-01 18:03:41 -0700
committerJim Miller <jaggies@google.com>2009-07-06 18:31:07 -0700
commit95ff2401a9c6f0252aeedfa27ba0a9a5f0d7f55e (patch)
tree544c0c9984a1409ba068472f08c5de956a1682a7 /core/java/android/util
parent6a840aacc4e7ed7d4d15c4fd315b97b03d668e01 (diff)
downloadframeworks_base-95ff2401a9c6f0252aeedfa27ba0a9a5f0d7f55e.zip
frameworks_base-95ff2401a9c6f0252aeedfa27ba0a9a5f0d7f55e.tar.gz
frameworks_base-95ff2401a9c6f0252aeedfa27ba0a9a5f0d7f55e.tar.bz2
Add method to read events from a file. Remove unused method. Fixed after review.
Diffstat (limited to 'core/java/android/util')
-rw-r--r--core/java/android/util/EventLog.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/core/java/android/util/EventLog.java b/core/java/android/util/EventLog.java
index 7c87248..0f0be79 100644
--- a/core/java/android/util/EventLog.java
+++ b/core/java/android/util/EventLog.java
@@ -73,7 +73,7 @@ import java.util.List;
* </ul>
* </li>
* <li> '\n': 1 byte - an automatically generated newline, used to help detect and recover from log
- * corruption and enable stansard unix tools like grep, tail and wc to operate
+ * corruption and enable standard unix tools like grep, tail and wc to operate
* on event logs. </li>
* </ul>
*
@@ -289,4 +289,13 @@ public class EventLog {
*/
public static native void readEvents(int[] tags, Collection<Event> output)
throws IOException;
+
+ /**
+ * Read events from a file.
+ * @param path to read from
+ * @param output container to add events into
+ * @throws IOException if something goes wrong reading events
+ */
+ public static native void readEvents(String path, Collection<Event> output)
+ throws IOException;
}