diff options
| author | Chris Wren <cwren@android.com> | 2016-12-02 17:43:23 -0500 |
|---|---|---|
| committer | Chris Wren <cwren@android.com> | 2017-01-23 11:40:52 -0500 |
| commit | d09bf8271eea566ed064bd333f9564c4dd718c5b (patch) | |
| tree | 7b0895b2fa77503ab58c0aaff55d3ff1d170f634 /core/java/android/util/EventLog.java | |
| parent | 8652d71982dc0dada3143d1c4d30c35859143afc (diff) | |
add a signaled reader to the eventlog
Test: manual using a logspammer app
Change-Id: I89e3dda82d4d1d3fc6d343b634642687e550f70a
Diffstat (limited to 'core/java/android/util/EventLog.java')
| -rw-r--r-- | core/java/android/util/EventLog.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/core/java/android/util/EventLog.java b/core/java/android/util/EventLog.java index 79d16fbfaee8..92c70bde5bb2 100644 --- a/core/java/android/util/EventLog.java +++ b/core/java/android/util/EventLog.java @@ -16,6 +16,8 @@ package android.util; +import android.annotation.SystemApi; + import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; @@ -253,6 +255,19 @@ public class EventLog { throws IOException; /** + * Read events from the log, filtered by type, blocking until logs are about to be overwritten. + * @param tags to search for + * @param timestamp timestamp allow logs before this time to be overwritten. + * @param output container to add events into + * @throws IOException if something goes wrong reading events + * @hide + */ + @SystemApi + public static native void readEventsOnWrapping(int[] tags, long timestamp, + Collection<Event> output) + throws IOException; + + /** * Get the name associated with an event type tag code. * @param tag code to look up * @return the name of the tag, or null if no tag has that number |
