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


一种旨在仅报告模块级结果的结果报告程序。此模块不支持重新进入。此报告器的用途主要是用于模块级缓存。

摘要

常量

String INVOCATION_ID_KEY

公共构造函数

ModuleProtoResultReporter()
ModuleProtoResultReporter(IInvocationContext mainInvocationContext, boolean granularResults)

公共方法

static parseResultsMetadata(File protoResults)

用于提取可能已转移的元数据的解析实用程序

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

在发生 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) 后,对最终确定的测试用例记录 proto 的处理。

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

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

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ERROR(/#testRunEnded(long,HashMap)) 发生后处理最终确定的跑步记录 proto。

boolean reportGranularResults()
void reportStopCaching()
boolean stopCaching()

受保护的方法

void afterModuleEnd()
void beforeModuleStart()
IInvocationContext createCachedContext()

常量

INVOCATION_ID_KEY

public static final String INVOCATION_ID_KEY

常量值: "invocation_id"

公共构造函数

ModuleProtoResultReporter

public ModuleProtoResultReporter ()

ModuleProtoResultReporter

public ModuleProtoResultReporter (IInvocationContext mainInvocationContext, 
                boolean granularResults)

参数
mainInvocationContext IInvocationContext

granularResults boolean

公共方法

parseResultsMetadata

public static  parseResultsMetadata (File protoResults)

用于提取可能已转移的元数据的解析实用程序

参数
protoResults File

返回

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

在发生 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) 后,对最终确定的测试用例记录 proto 的处理。

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

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

在发生 testModuleEnded() 后,对最终确定的模块记录 proto 的处理。

参数
moduleRecord TestRecordProto.TestRecord:表示模块的最终 proto。

processTestRunEnded

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

ERROR(/#testRunEnded(long,HashMap)) 发生后处理最终确定的跑步记录 proto。

参数
runRecord TestRecordProto.TestRecord:表示运行的最终版 proto。

moduleInProgress boolean:模块是否正在进行中。

reportGranularResults

public boolean reportGranularResults ()

返回
boolean

reportStopCaching

public void reportStopCaching ()

stopCaching

public boolean stopCaching ()

返回
boolean

受保护的方法

afterModuleEnd

protected void afterModuleEnd ()

beforeModuleStart

protected void beforeModuleStart ()

createCachedContext

protected IInvocationContext createCachedContext ()

返回
IInvocationContext