ProtoResultParser

public class ProtoResultParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.result.proto.ProtoResultParser


Parser for the Tradefed results proto format.

Summary

Nested classes

enum ProtoResultParser.TestLevel

Enumeration representing the current level of the proto being processed. 

Public constructors

ProtoResultParser(ITestInvocationListener listener, IInvocationContext context, boolean reportInvocation)

Ctor.

ProtoResultParser(ITestInvocationListener listener, IInvocationContext context, boolean reportInvocation, String prefixForFile)

Ctor.

Public methods

void processFinalizedProto(TestRecordProto.TestRecord finalProto)

Main entry function that takes the finalized completed proto and replay its results.

ProtoResultParser.TestLevel processNewProto(TestRecordProto.TestRecord currentProto)

Main entry function where each proto is presented to get parsed into Tradefed events.

void setQuiet(boolean quiet)

Sets whether or not to print when events are received.

Public constructors

ProtoResultParser

public ProtoResultParser (ITestInvocationListener listener, 
                IInvocationContext context, 
                boolean reportInvocation)

Ctor.

Parameters
listener ITestInvocationListener

context IInvocationContext

reportInvocation boolean

ProtoResultParser

public ProtoResultParser (ITestInvocationListener listener, 
                IInvocationContext context, 
                boolean reportInvocation, 
                String prefixForFile)

Ctor.

Parameters
listener ITestInvocationListener

context IInvocationContext

reportInvocation boolean

prefixForFile String

Public methods

processFinalizedProto

public void processFinalizedProto (TestRecordProto.TestRecord finalProto)

Main entry function that takes the finalized completed proto and replay its results.

Parameters
finalProto TestRecordProto.TestRecord: The final TestRecord to be parsed.

processNewProto

public ProtoResultParser.TestLevel processNewProto (TestRecordProto.TestRecord currentProto)

Main entry function where each proto is presented to get parsed into Tradefed events.

Parameters
currentProto TestRecordProto.TestRecord: The current TestRecord to be parsed.

Returns
ProtoResultParser.TestLevel True if the proto processed was a module.

setQuiet

public void setQuiet (boolean quiet)

Sets whether or not to print when events are received.

Parameters
quiet boolean