StreamProtoResultReporter
public final class StreamProtoResultReporter
extends ProtoResultReporter
java.lang.Object | ||
↳ | com.android.tradefed.result.proto.ProtoResultReporter | |
↳ | com.android.tradefed.result.proto.StreamProtoResultReporter |
概括
字段 | |
---|---|
public static final String | PROTO_REPORT_PORT_OPTION
|
公共构造函数 | |
---|---|
StreamProtoResultReporter () |
公共方法 | |
---|---|
Integer | getProtoReportPort () |
void | processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs) 使用调用记录将调用的所有最终日志一一发送。 |
void | processFinalProto (TestRecordProto.TestRecord finalRecord) 处理带有所有结果的最终原型。 |
void | processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context) 发生 |
void | processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord) |
void | processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord) |
void | processTestModuleEnd (TestRecordProto.TestRecord moduleRecord) 在 |
void | processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord) 在 |
void | processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress) |
void | processTestRunStarted (TestRecordProto.TestRecord runStartedRecord) |
void | setProtoReportPort (Integer portValue) |
受保护的方法 | |
---|---|
void | closeSocket () |
字段
PROTO_REPORT_PORT_OPTION
public static final String PROTO_REPORT_PORT_OPTION
公共构造函数
StreamProtoResultReporter
public StreamProtoResultReporter ()
公共方法
getProtoReportPort
public Integer getProtoReportPort ()
退货 | |
---|---|
Integer |
processFinalInvocationLogs
public void processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs)
使用调用记录将调用的所有最终日志一一发送。
参数 | |
---|---|
invocationLogs | TestRecordProto.TestRecord :代表调用的最终原型。 |
processFinalProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
处理带有所有结果的最终原型。
参数 | |
---|---|
finalRecord | TestRecordProto.TestRecord :包含所有调用结果的最终原型。 |
进程启动调用
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context)
发生invocationStarted(com.android.tradefed.invoker.IInvocationContext)
后部分调用测试记录 proto 的处理。
参数 | |
---|---|
invocationStartRecord | TestRecordProto.TestRecord :invocationStart 后填充的部分原型。 |
context | IInvocationContext :调用IInvocationContext 。 |
进程TestCaseEnded
public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)
ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap))
发生后对最终测试用例记录原型的处理。
参数 | |
---|---|
testCaseRecord | TestRecordProto.TestRecord :代表测试用例的最终原型。 |
processTestCaseStarted
public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)
testStarted(com.android.tradefed.result.TestDescription, long)
发生后部分测试用例记录原型的处理。
参数 | |
---|---|
testCaseStartedRecord | TestRecordProto.TestRecord :代表测试用例的部分原型。 |
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
在testModuleEnded()
发生后处理最终的模块记录原型。
参数 | |
---|---|
moduleRecord | TestRecordProto.TestRecord :代表模块的最终原型。 |
processTestModuleStarted
public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)
在testModuleStarted(com.android.tradefed.invoker.IInvocationContext)
发生后处理部分模块记录原型。
参数 | |
---|---|
moduleStartRecord | TestRecordProto.TestRecord :代表模块的部分原型。 |
进程测试运行结束
public void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
ERROR(/#testRunEnded(long,HashMap))
发生后对最终运行记录原型的处理。
参数 | |
---|---|
runRecord | TestRecordProto.TestRecord :代表运行的最终原型。 |
moduleInProgress | boolean :模块是否正在进行中。 |
processTestRunStarted
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
testRunStarted(String, int)
发生后部分测试运行记录原型的处理。
参数 | |
---|---|
runStartedRecord | TestRecordProto.TestRecord :代表运行的部分原型。 |
setProtoReportPort
public void setProtoReportPort (Integer portValue)
参数 | |
---|---|
portValue | Integer |
受保护的方法
closeSocket
protected void closeSocket ()