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

เริ่มต้น

public void start ()

เริ่มฟัง logcat และแยกวิเคราะห์เหตุการณ์