LogReceiver

public class LogReceiver
extends Object

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


Summary

Public constructors

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

Public methods

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

Public constructors

LogReceiver

LogReceiver (ITestDevice device, 
                String cmd, 
                String desc)

Parameters
device ITestDevice
cmd String
desc String

LogReceiver

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

Parameters
device ITestDevice
cmd String
desc String
logcat_size long
delay_secs int

Public methods

clear

void clear ()

getData

InputStreamSource getData ()

Returns
InputStreamSource

getDescriptor

String getDescriptor ()

Returns
String

getLogcatData

InputStreamSource getLogcatData (int maxBytes)

Parameters
maxBytes int
Returns
InputStreamSource

postLog

void postLog (ITestInvocationListener listener)

Parameters
listener ITestInvocationListener

start

void start ()

stop

void stop ()