StreamProtoResultReporter

public final class StreamProtoResultReporter
extends ProtoResultReporter

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


ProtoResultReporter 的实现

摘要

字段

public static final 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

公共构造函数

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 ()