Class ShadowEventLog


  • @Implements(android.util.EventLog.class)
    public class ShadowEventLog
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ShadowEventLog()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShadowEventLog

        public ShadowEventLog()
    • Method Detail

      • addEvent

        public static void addEvent​(android.util.EventLog.Event event)
        Add event to EventLog.
      • clearAll

        @Resetter
        public static void clearAll()
      • writeEvent

        @Implementation
        protected static int writeEvent​(int tag,
                                        java.lang.String str)
        Writes an event log message, returning an approximation of the bytes written.
      • writeEvent

        @Implementation
        protected static int writeEvent​(int tag,
                                        java.lang.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,
                                         java.util.Collection<android.util.EventLog.Event> output)