Google 致力于为黑人社区推动种族平等。查看具体举措
此页面由 Cloud Translation API 翻译。
Switch to English

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