@Implements(value=android.util.EventLog.class) public class ShadowEventLog extends 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(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)
Add event to EventLog
.
@Resetter public static void clearAll()
@Implementation protected static int writeEvent(int tag, String str)
Writes an event log message, returning an approximation of the bytes written.
@Implementation protected static int writeEvent(int tag, 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, Collection<EventLog.Event> output)