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)
在 |
void
|
processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)
處理 |
void
|
processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
在 |
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 staticparseResultsMetadata (File protoResults)
剖析公用程式,擷取我們可能已轉移的中繼資料
| 參數 | |
|---|---|
protoResults |
File |
| 傳回 | |
|---|---|
|
|
processTestCaseEnded
public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)
在 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) 發生後,處理最終測試案例記錄原型。
| 參數 | |
|---|---|
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)) 發生後,處理最終的執行記錄原型。
| 參數 | |
|---|---|
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 ()