@Implements(android.util.EventLog.class) public class ShadowEventLog extends Object
Modifier and Type | Class | Description |
---|---|---|
static class |
ShadowEventLog.EventBuilder |
Class to build
EventLog.Event |
static class |
ShadowEventLog.ShadowEvent |
Constructor | Description |
---|---|
ShadowEventLog() |
Modifier and Type | Method | Description |
---|---|---|
static void |
addEvent(EventLog.Event event) |
Add event to
EventLog . |
static void |
clearAll() |
|
protected static void |
readEvents(int[] tags,
Collection<EventLog.Event> output) |
|
protected static int |
writeEvent(int tag,
float value) |
Writes an event log message, returning an approximation of the bytes written.
|
protected static int |
writeEvent(int tag,
int value) |
Writes an event log message, returning an approximation of the bytes written.
|
protected static int |
writeEvent(int tag,
long value) |
Writes an event log message, returning an approximation of the bytes written.
|
protected static int |
writeEvent(int tag,
Object... list) |
Writes an event log message, returning an approximation of the bytes written.
|
protected static int |
writeEvent(int tag,
String str) |
Writes an event log message, returning an approximation of the bytes written.
|
public static void addEvent(EventLog.Event event)
EventLog
.@Resetter public static void clearAll()
@Implementation protected static int writeEvent(int tag, String str)
@Implementation protected static int writeEvent(int tag, Object... list)
@Implementation protected static int writeEvent(int tag, int value)
@Implementation(minSdk=23) protected static int writeEvent(int tag, float value)
@Implementation protected static int writeEvent(int tag, long value)
@Implementation protected static void readEvents(int[] tags, Collection<EventLog.Event> output)