LogcatEventParser

public class LogcatEventParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.LogcatEventParser


Summary

Public constructors

LogcatEventParser(ITestDevice device)

Public methods

void close()

Stop listening to logcat.

void parseEvents(String[] lines)

Parse logcat lines and add any captured events (that were registered with registerEventTrigger(String, String, com.android.tradefed.util.LogcatEventType)) to the event queue.

void registerEventTrigger(String tag, String msg, LogcatEventType response)

Register an event of given logcat tag and message with the desired response.

void start()

Start listening to logcat and parsing events.

Public constructors

LogcatEventParser

public LogcatEventParser (ITestDevice device)

Parameters
device ITestDevice

Public methods

close

public void close ()

Stop listening to logcat.

parseEvents

public void parseEvents (String[] lines)

Parse logcat lines and add any captured events (that were registered with registerEventTrigger(String, String, com.android.tradefed.util.LogcatEventType)) to the event queue.

Parameters
lines String

registerEventTrigger

public void registerEventTrigger (String tag, 
                String msg, 
                LogcatEventType response)

Register an event of given logcat tag and message with the desired response. Message may be partial.

Parameters
tag String

msg String

response LogcatEventType

start

public void start ()

Start listening to logcat and parsing events.