StreamProtoReceiver
public
class
StreamProtoReceiver
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.result.proto.StreamProtoReceiver
|
一个接收器,用于将收到的 proto 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, boolean reportLogs, String logNamePrefix)
|
StreamProtoReceiver(ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, boolean reportLogs, String logNamePrefix, boolean mergeInvocationMetrics)
Ctor.
|
StreamProtoReceiver(ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, String logNamePrefix)
Ctor.
|
公共构造函数
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing)
Ctor.
参数 |
listener |
ITestInvocationListener :用于报告结果的 ITestInvocationListener 。 |
mainContext |
IInvocationContext |
reportInvocation |
boolean :是否报告调用级别的事件。 |
quietParsing |
boolean :是否允许解析器记录调试信息。 |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing,
boolean reportLogs,
String logNamePrefix)
参数 |
listener |
ITestInvocationListener |
mainContext |
IInvocationContext |
reportInvocation |
boolean |
quietParsing |
boolean |
reportLogs |
boolean |
logNamePrefix |
String |
StreamProtoReceiver 类中的方法
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing,
boolean reportLogs,
String logNamePrefix,
boolean mergeInvocationMetrics)
Ctor.
参数 |
listener |
ITestInvocationListener :用于报告结果的 ITestInvocationListener 。 |
mainContext |
IInvocationContext |
reportInvocation |
boolean :是否报告调用级别的事件。 |
quietParsing |
boolean :是否允许解析器记录调试信息。 |
reportLogs |
boolean :是否报告日志 |
logNamePrefix |
String :通过解析器记录的文件的前缀。 |
mergeInvocationMetrics |
boolean |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener,
IInvocationContext mainContext,
boolean reportInvocation,
boolean quietParsing,
String logNamePrefix)
Ctor.
参数 |
listener |
ITestInvocationListener :报告结果的 ITestInvocationListener 。 |
mainContext |
IInvocationContext |
reportInvocation |
boolean :是否报告调用级别的事件。 |
quietParsing |
boolean :是否允许解析器记录调试信息。 |
logNamePrefix |
String :通过解析器记录的文件的前缀。 |
公共方法
completeModuleEvents
public void completeModuleEvents ()
如需确保报告一致,请根据需要完成模块的事件。
getError
public Throwable getError ()
返回接收器线程中的错误。如果没有,则返回 null。
getSocketServerPort
public int getSocketServerPort ()
返回已打开的套接字接收器。如果没有,则为 -1。
hasInvocationFailed
public boolean hasInvocationFailed ()
返回是否已报告调用失败。
joinReceiver
public boolean joinReceiver (long millis)
受保护的方法
getJoinTimeout
protected long getJoinTimeout (long millis)