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 並剖析事件。