StreamProtoReceiver
public class StreamProtoReceiver
extends Object
java.lang.Object | |
↳ | com.android.tradefed.result.proto.StreamProtoReceiver |
将原始的TestRecord转换为Tradefed事件的接收器。
概要
公共建设者 | |
---|---|
StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation) Ctor。 | |
StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing) Ctor。 | |
StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, String logNamePrefix) Ctor。 | |
StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, boolean reportLogs, String logNamePrefix) Ctor。 |
公开方法 | |
---|---|
void | close () |
void | completeModuleEvents () 如果需要确保一致的报告,请完成模块的事件。 |
Throwable | getError () 返回接收器线程中的错误消息。 |
int | getSocketServerPort () 返回打开的套接字接收器。 |
boolean | joinReceiver (long millis) |
公共建设者
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation)
Ctor。
参量 | |
---|---|
listener | ITestInvocationListener : ITestInvocationListener 报告结果的位置。 |
mainContext | IInvocationContext |
reportInvocation | boolean :是否报告调用级别的事件。 |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing)
Ctor。
参量 | |
---|---|
listener | ITestInvocationListener : ITestInvocationListener 报告结果的位置。 |
mainContext | IInvocationContext |
reportInvocation | boolean :是否报告调用级别的事件。 |
quietParsing | boolean :是否让解析器记录调试信息。 |
StreamProtoReceiver
第059章
Ctor。
参量 | |
---|---|
listener | ITestInvocationListener : ITestInvocationListener 报告结果的位置。 |
mainContext | IInvocationContext |
reportInvocation | boolean :是否报告调用级别的事件。 |
quietParsing | boolean :是否让解析器记录调试信息。 |
logNamePrefix | String :通过解析器记录的文件的前缀。 |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, boolean reportLogs, String logNamePrefix)
Ctor。
参量 | |
---|---|
listener | ITestInvocationListener : ITestInvocationListener 报告结果的位置。 |
mainContext | IInvocationContext |
reportInvocation | boolean :是否报告调用级别的事件。 |
quietParsing | boolean :是否让解析器记录调试信息。 |
reportLogs | boolean :是否报告日志 |
logNamePrefix | String :通过解析器记录的文件的前缀。 |
公开方法
关
public void close ()
completeModuleEvents
public void completeModuleEvents ()
如果需要确保一致的报告,请完成模块的事件。
getError
public Throwable getError ()
返回接收器线程中的错误消息。如果没有,它将返回null。
退货 | |
---|---|
Throwable |
getSocketServerPort
public int getSocketServerPort ()
返回打开的套接字接收器。如果没有则为-1。
退货 | |
---|---|
int |
joinReceiver
public boolean joinReceiver (long millis)
参量 | |
---|---|
millis | long |
退货 | |
---|---|
boolean |