Logcat事件解析器

public class LogcatEventParser
extends Object

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


概括

公共构造函数

LogcatEventParser (ITestDevice device)

公共方法

void close ()

停止监听 logcat。

void parseEvents (String[] lines)

解析 logcat 行并将任何捕获的事件(使用registerEventTrigger(String, String, com.android.tradefed.util.LogcatEventType)注册的事件)添加到事件队列。

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

注册给定 logcat 标记的事件和具有所需响应的消息。

void start ()

开始监听logcat并解析事件。

公共构造函数

Logcat事件解析器

public LogcatEventParser (ITestDevice device)

参数
device ITestDevice

公共方法

关闭

public void close ()

停止监听 logcat。

解析事件

public void parseEvents (String[] lines)

解析 logcat 行并将任何捕获的事件(使用registerEventTrigger(String, String, com.android.tradefed.util.LogcatEventType)注册的事件)添加到事件队列。

参数
lines String

注册事件触发器

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

注册给定 logcat 标记的事件和具有所需响应的消息。消息可能不完整。

参数
tag String

msg String

response LogcatEventType

开始

public void start ()

开始监听logcat并解析事件。