LogReceiver

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

公共建設者

LogReceiver

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

參數
device ITestDevice

cmd String

desc String

LogReceiver

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

getData

public InputStreamSource getData ()

退貨
InputStreamSource

getDescriptor

public String getDescriptor ()

退貨
String

getLogcatData

public InputStreamSource getLogcatData (int maxBytes)

參數
maxBytes int

退貨
InputStreamSource

postLog

public void postLog (ITestInvocationListener listener)

參數
listener ITestInvocationListener

開始

public void start ()

停止

public void stop ()