日志接收器

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 ()