LogcatEventParser

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 并解析事件。

公共构造函数

LogcatEventParser

public LogcatEventParser (ITestDevice device)

参数
device ITestDevice

公共方法

关闭

public void close ()

停止监听 logcat。

parseEvents

public void parseEvents (String[] lines)

解析 Logcat 行,并将所有捕获的事件(已通过 registerEventTrigger(String, String, com.android.tradefed.util.LogcatEventType) 注册)添加到事件队列。

参数
lines String

registerEventTrigger

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

注册给定 Logcat 标记和消息的事件,并提供所需的响应。消息可能只有部分内容。

参数
tag String

msg String

response LogcatEventType

start

public void start ()

开始监听 Logcat 并解析事件。