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 のリッスンとイベントの解析を開始します。