ILogcatReceiver

public interface ILogcatReceiver

com.android.tradefed.device.ILogcatReceiver


A class that provides the output of a device's logcat as an InputStreamSource.

Summary

Public methods

abstract void clear()
default InputStreamSource getLogcatData(int maxBytes, int offset)

Returns the current logcat buffer given an offset.

abstract InputStreamSource getLogcatData(int maxBytes)
abstract InputStreamSource getLogcatData()
abstract void start()
abstract void stop()

Public methods

clear

public abstract void clear ()

getLogcatData

public InputStreamSource getLogcatData (int maxBytes, 
                int offset)

Returns the current logcat buffer given an offset.

Parameters
maxBytes int: The max size of the returned buffer

offset int: The offset of the full buffer.

Returns
InputStreamSource The logcat buffer starting at the offset.

getLogcatData

public abstract InputStreamSource getLogcatData (int maxBytes)

Parameters
maxBytes int

Returns
InputStreamSource

getLogcatData

public abstract InputStreamSource getLogcatData ()

Returns
InputStreamSource

start

public abstract void start ()

stop

public abstract void stop ()