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

貼文記錄

public void postLog (ITestInvocationListener listener)

參數
listener ITestInvocationListener

start

public void start ()

轉機 1 次

public void stop ()