ILogcatReceiver
public
interface
ILogcatReceiver
| com.android.tradefed.device.ILogcatReceiver |
這個類別會以 InputStreamSource 的形式提供裝置 Logcat 的輸出內容。
摘要
公用方法 | |
|---|---|
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 ()
getLogcatData
public InputStreamSource getLogcatData (int maxBytes, int offset)
在指定偏移量時,傳回目前的 Logcat 緩衝區。
| 參數 | |
|---|---|
maxBytes |
int:傳回緩衝區的最大大小 |
offset |
int:完整緩衝區的偏移量。 |
| 傳回 | |
|---|---|
InputStreamSource |
從偏移量開始的 Logcat 緩衝區。 |
getLogcatData
public abstract InputStreamSource getLogcatData (int maxBytes)
| 參數 | |
|---|---|
maxBytes |
int |
| 傳回 | |
|---|---|
InputStreamSource |
|
start
public abstract void start ()
轉機 1 次
public abstract void stop ()