StreamProtoResultReporter

public final class StreamProtoResultReporter
extends ProtoResultReporter

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


An implementation of ProtoResultReporter

Summary

Fields

public static final String PROTO_REPORT_PORT_OPTION

Public constructors

StreamProtoResultReporter()

Public methods

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

Use the invocation record to send one by one all the final logs of the invocation.

void processFinalProto(TestRecordProto.TestRecord finalRecord)

Handling of the final proto with all results.

void processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context)

Handling of the partial invocation test record proto after invocationStarted(com.android.tradefed.invoker.IInvocationContext) occurred.

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

Handling of the finalized test case record proto after ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) occurred.

void processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)

Handling of the partial test case record proto after testStarted(com.android.tradefed.result.TestDescription, long) occurred.

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

Handling of the finalized module record proto after testModuleEnded() occurred.

void processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)

Handling of the partial module record proto after testModuleStarted(com.android.tradefed.invoker.IInvocationContext) occurred.

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

Handling of the finalized run record proto after ERROR(/#testRunEnded(long,HashMap)) occurred.

void processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)

Handling of the partial test run record proto after testRunStarted(String, int) occurred.

void setProtoReportPort(Integer portValue)

Protected methods

void closeSocket()

Fields

PROTO_REPORT_PORT_OPTION

public static final String PROTO_REPORT_PORT_OPTION

Public constructors

StreamProtoResultReporter

public StreamProtoResultReporter ()

Public methods

getProtoReportPort

public Integer getProtoReportPort ()

Returns
Integer

processFinalInvocationLogs

public void processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs)

Use the invocation record to send one by one all the final logs of the invocation.

Parameters
invocationLogs TestRecordProto.TestRecord: The finalized proto representing the invocation.

processFinalProto

public void processFinalProto (TestRecordProto.TestRecord finalRecord)

Handling of the final proto with all results.

Parameters
finalRecord TestRecordProto.TestRecord: The finalized proto with all the invocation results.

processStartInvocation

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

Handling of the partial invocation test record proto after invocationStarted(com.android.tradefed.invoker.IInvocationContext) occurred.

Parameters
invocationStartRecord TestRecordProto.TestRecord: The partial proto populated after the invocationStart.

context IInvocationContext: The invocation IInvocationContext.

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

Handling of the finalized test case record proto after ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) occurred.

Parameters
testCaseRecord TestRecordProto.TestRecord: The finalized proto representing a test case.

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

Handling of the partial test case record proto after testStarted(com.android.tradefed.result.TestDescription, long) occurred.

Parameters
testCaseStartedRecord TestRecordProto.TestRecord: The partial proto representing the test case.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

Handling of the finalized module record proto after testModuleEnded() occurred.

Parameters
moduleRecord TestRecordProto.TestRecord: The finalized proto representing the module.

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

Handling of the partial module record proto after testModuleStarted(com.android.tradefed.invoker.IInvocationContext) occurred.

Parameters
moduleStartRecord TestRecordProto.TestRecord: The partial proto representing the module.

processTestRunEnded

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

Handling of the finalized run record proto after ERROR(/#testRunEnded(long,HashMap)) occurred.

Parameters
runRecord TestRecordProto.TestRecord: The finalized proto representing the run.

moduleInProgress boolean: whether or not a module is in progress.

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

Handling of the partial test run record proto after testRunStarted(String, int) occurred.

Parameters
runStartedRecord TestRecordProto.TestRecord: The partial proto representing the run.

setProtoReportPort

public void setProtoReportPort (Integer portValue)

Parameters
portValue Integer

Protected methods

closeSocket

protected void closeSocket ()