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