StreamProtoResultReporter

public final class StreamProtoResultReporter
extends ProtoResultReporter

java.lang.Object
   ↳ com.android.tradefed.result.proto.ProtoResultReporter
     ↳ com.android.tradefed.result.proto.StreamProtoResultReporter


ProtoResultReporter 的实现

摘要

常量

String PROTO_REPORT_PORT_OPTION

公共构造函数

StreamProtoResultReporter()

公共方法

Integer getProtoReportPort()
void processFinalInvocationLogs(TestRecordProto.TestRecord invocationLogs)

使用调用记录逐个发送调用的所有最终日志。

void processFinalProto(TestRecordProto.TestRecord finalRecord)

处理包含所有结果的最终 proto。

void processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context)

在发生 invocationStarted(com.android.tradefed.invoker.IInvocationContext) 后,处理部分调用测试记录 proto。

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

在发生 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) 后,对最终确定的测试用例记录 proto 的处理。

void processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)

处理发生 testStarted(com.android.tradefed.result.TestDescription, long) 后的部分测试用例记录 proto。

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

在发生 testModuleEnded() 后,处理最终确定的模块记录 proto。

void processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)

在发生 testModuleStarted(com.android.tradefed.invoker.IInvocationContext) 后处理部分模块记录 proto。

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ERROR(/#testRunEnded(long,HashMap)) 发生后处理最终确定的跑步记录 proto。

void processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)

处理 testRunStarted(String, int) 发生后的部分测试运行记录 proto。

void setProtoReportPort(Integer portValue)

受保护的方法

void closeSocket()

常量

PROTO_REPORT_PORT_OPTION

public static final String PROTO_REPORT_PORT_OPTION

常量值: “proto-report-port”

公共构造函数

StreamProtoResultReporter

public StreamProtoResultReporter ()

公共方法

getProtoReportPort

public Integer getProtoReportPort ()

返回
Integer

processFinalInvocationLogs

public void processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs)

使用调用记录逐个发送调用的所有最终日志。

参数
invocationLogs TestRecordProto.TestRecord:表示调用的最终版 proto。

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

处理包含所有结果的最终 proto。

参数
finalRecord TestRecordProto.TestRecord:包含所有调用结果的最终 proto。

processStartInvocation

public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, 
                IInvocationContext context)

在发生 invocationStarted(com.android.tradefed.invoker.IInvocationContext) 后,处理部分调用测试记录 proto。

参数
invocationStartRecord TestRecordProto.TestRecord:在 invocationStart 之后填充的部分 proto。

context IInvocationContext:调用 IInvocationContext

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

在发生 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) 后,对最终确定的测试用例记录 proto 的处理。

参数
testCaseRecord TestRecordProto.TestRecord:表示测试用例的最终版 proto。

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

处理 testStarted(com.android.tradefed.result.TestDescription, long) 发生后的部分测试用例记录 proto。

参数
testCaseStartedRecord TestRecordProto.TestRecord:表示测试用例的部分 proto。

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

在发生 testModuleEnded() 后,对最终确定的模块记录 proto 的处理。

参数
moduleRecord TestRecordProto.TestRecord:表示模块的最终 proto。

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

处理 testModuleStarted(com.android.tradefed.invoker.IInvocationContext) 发生后的部分模块记录 proto。

参数
moduleStartRecord TestRecordProto.TestRecord:表示模块的部分 proto。

processTestRunEnded

public void processTestRunEnded (TestRecordProto.TestRecord runRecord, 
                boolean moduleInProgress)

ERROR(/#testRunEnded(long,HashMap)) 发生后处理最终确定的跑步记录 proto。

参数
runRecord TestRecordProto.TestRecord:表示运行的最终版 proto。

moduleInProgress boolean:模块是否正在进行中。

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

处理 testRunStarted(String, int) 发生后的部分测试运行记录 proto。

参数
runStartedRecord TestRecordProto.TestRecord:表示运行的部分 proto。

setProtoReportPort

public void setProtoReportPort (Integer portValue)

参数
portValue Integer

受保护的方法

closeSocket

protected void closeSocket ()