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