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 수신 및 이벤트 구문 분석을 시작합니다.