ILogcatReceiver

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

獲取日誌數據

public InputStreamSource getLogcatData (int maxBytes, 
                int offset)

返回給定偏移量的當前 logcat 緩衝區。

參數
maxBytes int : 返回緩衝區的最大大小

offset int :完整緩衝區的偏移量。

退貨
InputStreamSource從偏移量開始的 logcat 緩衝區。

獲取日誌數據

public abstract InputStreamSource getLogcatData (int maxBytes)

參數
maxBytes int

退貨
InputStreamSource

獲取日誌數據

public abstract InputStreamSource getLogcatData ()

退貨
InputStreamSource

開始

public abstract void start ()

停止

public abstract void stop ()