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 ()
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 ()
停止
public abstract void stop ()