日誌接收器

public class LogReceiver
extends Object

java.lang.Object
com.android.tradefed.log.LogReceiver


概括

公共構造函數

LogReceiver ( ITestDevice device, String cmd, String desc)
LogReceiver ( ITestDevice device, String cmd, String desc, long logcat_size, int delay_secs)

公共方法

void clear ()
InputStreamSource getData ()
String getDescriptor ()
InputStreamSource getLogcatData (int maxBytes)
void postLog ( ITestInvocationListener listener)
void start ()
void stop ()

公共構造函數

日誌接收器

public LogReceiver (ITestDevice device, 
                String cmd, 
                String desc)

參數
device ITestDevice

cmd String

desc String

日誌接收器

public LogReceiver (ITestDevice device, 
                String cmd, 
                String desc, 
                long logcat_size, 
                int delay_secs)

參數
device ITestDevice

cmd String

desc String

logcat_size long

delay_secs int

公共方法

清除

public void clear ()

取得數據

public InputStreamSource getData ()

退貨
InputStreamSource

取得描述符

public String getDescriptor ()

退貨
String

取得Logcat數據

public InputStreamSource getLogcatData (int maxBytes)

參數
maxBytes int

退貨
InputStreamSource

發布日誌

public void postLog (ITestInvocationListener listener)

參數
listener ITestInvocationListener

開始

public void start ()

停止

public void stop ()