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 | ||
Pelapor hasil yang dimaksudkan untuk melaporkan hanya hasil tingkat modul. Tidak ada entri ulang yang didukung dalam modul ini. Tujuan pelapor ini terutama untuk melakukan caching di tingkat modul.
Ringkasan
Konstanta | |
|---|---|
String |
INVOCATION_ID_KEY
|
Konstruktor publik | |
|---|---|
ModuleProtoResultReporter()
|
|
ModuleProtoResultReporter(IInvocationContext mainInvocationContext, boolean granularResults)
|
|
Metode publik | |
|---|---|
static
|
parseResultsMetadata(File protoResults)
Utilitas parsing untuk mengekstrak metadata yang mungkin telah kita transfer |
void
|
processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)
Penanganan proto rekaman kasus pengujian yang telah diselesaikan setelah |
void
|
processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)
Penanganan proto rekaman modul yang telah diselesaikan setelah |
void
|
processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
Penanganan proto rekaman proses yang diselesaikan setelah |
boolean
|
reportGranularResults()
|
void
|
reportStopCaching()
|
boolean
|
stopCaching()
|
Metode yang dilindungi | |
|---|---|
void
|
afterModuleEnd()
|
void
|
beforeModuleStart()
|
IInvocationContext
|
createCachedContext()
|
Konstanta
INVOCATION_ID_KEY
public static final String INVOCATION_ID_KEY
Nilai Konstanta: "invocation_id"
Konstruktor publik
ModuleProtoResultReporter
public ModuleProtoResultReporter ()
ModuleProtoResultReporter
public ModuleProtoResultReporter (IInvocationContext mainInvocationContext, boolean granularResults)
| Parameter | |
|---|---|
mainInvocationContext |
IInvocationContext |
granularResults |
boolean |
Metode publik
parseResultsMetadata
public staticparseResultsMetadata (File protoResults)
Utilitas parsing untuk mengekstrak metadata yang mungkin telah kita transfer
| Parameter | |
|---|---|
protoResults |
File |
| Hasil | |
|---|---|
|
|
processTestCaseEnded
public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)
Penanganan proto rekaman kasus pengujian yang telah diselesaikan setelah ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) terjadi.
| Parameter | |
|---|---|
testCaseRecord |
TestRecordProto.TestRecord: Proto akhir yang merepresentasikan kasus pengujian. |
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
Penanganan proto rekaman modul yang telah diselesaikan setelah testModuleEnded() terjadi.
| Parameter | |
|---|---|
moduleRecord |
TestRecordProto.TestRecord: Proto akhir yang merepresentasikan modul. |
processTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord,
boolean moduleInProgress)Penanganan proto rekaman proses yang diselesaikan setelah ERROR(/#testRunEnded(long,HashMap))
terjadi.
| Parameter | |
|---|---|
runRecord |
TestRecordProto.TestRecord: Proto akhir yang merepresentasikan proses. |
moduleInProgress |
boolean: apakah modul sedang dalam progres atau tidak. |
reportGranularResults
public boolean reportGranularResults ()
| Hasil | |
|---|---|
boolean |
|
reportStopCaching
public void reportStopCaching ()
stopCaching
public boolean stopCaching ()
| Hasil | |
|---|---|
boolean |
|
Metode yang dilindungi
afterModuleEnd
protected void afterModuleEnd ()
beforeModuleStart
protected void beforeModuleStart ()