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