ILogcat接收器

public interface ILogcatReceiver

com.android.tradefed.device.ILogcatReceiver


提供设备 logcat 输出作为InputStreamSource类。

概括

公共方法

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

返回给定偏移量的当前 logcat 缓冲区。

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

公共方法

清除

public abstract void clear ()

获取Logcat数据

public InputStreamSource getLogcatData (int maxBytes, 
                int offset)

返回给定偏移量的当前 logcat 缓冲区。

参数
maxBytes int : 返回缓冲区的最大大小

offset int :完整缓冲区的偏移量。

退货
InputStreamSource logcat 缓冲区从偏移量开始。

获取Logcat数据

public abstract InputStreamSource getLogcatData (int maxBytes)

参数
maxBytes int

退货
InputStreamSource

获取Logcat数据

public abstract InputStreamSource getLogcatData ()

退货
InputStreamSource

开始

public abstract void start ()

停止

public abstract void stop ()