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