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(IInvocationContext) 发生后处理部分调用测试记录 proto。

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

testEnded(TestDescription,long,HashMap) 发生后处理最终的测试用例记录 proto。

void processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)

testStarted(TestDescription,long) 发生后处理部分测试用例记录 proto。

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

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

void processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)

testModuleStarted(IInvocationContext) 发生后处理部分模块记录 proto。

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

在最终的运行记录 proto 发生后处理 testRunEnded(long,HashMap)

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(IInvocationContext) 发生后处理部分调用测试记录 proto。

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

context IInvocationContext:调用 IInvocationContext

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

testEnded(TestDescription,long,HashMap) 发生后处理最终的测试用例记录 proto。

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

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

testStarted(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(IInvocationContext) 发生后处理部分模块记录 proto。

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

processTestRunEnded

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

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