ModuleProtoResultReporter
public
class
ModuleProtoResultReporter
extends FileProtoResultReporter
java.lang.Object | |||
↳ | com.android.tradefed.result.proto.ProtoResultReporter | ||
↳ | com.android.tradefed.result.proto.FileProtoResultReporter | ||
↳ | com.android.tradefed.result.proto.ModuleProtoResultReporter |
A result reporter meant to report only the module level results. No re-entry is supported in this module. The intent of this reporter is primarily for caching at module level.
Summary
Fields | |
---|---|
public
static
final
String |
INVOCATION_ID_KEY
|
Public constructors | |
---|---|
ModuleProtoResultReporter()
|
|
ModuleProtoResultReporter(IInvocationContext mainInvocationContext)
|
Public methods | |
---|---|
static
|
parseResultsMetadata(File protoResults)
Parsing util to extract metadata we might have transferred |
void
|
processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)
Handling of the finalized test case record proto after |
void
|
processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)
Handling of the finalized module record proto after |
void
|
processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
Handling of the finalized run record proto after |
boolean
|
stopCaching()
|
Protected methods | |
---|---|
void
|
afterModuleEnd()
|
void
|
beforeModuleStart()
|
Fields
INVOCATION_ID_KEY
public static final String INVOCATION_ID_KEY
Public constructors
ModuleProtoResultReporter
public ModuleProtoResultReporter ()
ModuleProtoResultReporter
public ModuleProtoResultReporter (IInvocationContext mainInvocationContext)
Parameters | |
---|---|
mainInvocationContext |
IInvocationContext |
Public methods
parseResultsMetadata
public staticparseResultsMetadata (File protoResults)
Parsing util to extract metadata we might have transferred
Parameters | |
---|---|
protoResults |
File |
Returns | |
---|---|
|
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. |
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. |
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. |
stopCaching
public boolean stopCaching ()
Returns | |
---|---|
boolean |
Protected methods
afterModuleEnd
protected void afterModuleEnd ()
beforeModuleStart
protected void beforeModuleStart ()