FileProtoResultReporter
public
class
FileProtoResultReporter
extends ProtoResultReporter
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.proto.ProtoResultReporter | |
| ↳ | com.android.tradefed.result.proto.FileProtoResultReporter | |
Pelapor proto yang membuang TestRecord ke dalam file.
Ringkasan
Konstanta | |
|---|---|
String |
PERIODIC_PROTO_WRITING_OPTION
|
String |
PROTO_OUTPUT_FILE
|
String |
USE_DELIMITED_API
|
Konstruktor publik | |
|---|---|
FileProtoResultReporter()
|
|
Metode publik | |
|---|---|
File
|
getOutputFile()
|
boolean
|
isPeriodicWriting()
Apakah penulisan berkala diaktifkan atau tidak. |
void
|
processFinalProto(TestRecordProto.TestRecord finalRecord)
Penanganan proto akhir dengan semua hasil. |
void
|
processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)
Penanganan proto rekaman pengujian pemanggilan parsial 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 |
void
|
setDelimitedOutput(boolean delimitedOutput)
|
void
|
setOutputFile(File outputFile)
|
void
|
setPeriodicWriting(boolean enabled)
Aktifkan penulisan setiap modul satu per satu ke file. |
Metode yang dilindungi | |
|---|---|
TestRecordProto.ChildReference
|
createModuleChildReference(TestRecordProto.TestRecord record)
Membuat referensi turunan untuk modul. |
Konstanta
PERIODIC_PROTO_WRITING_OPTION
public static final String PERIODIC_PROTO_WRITING_OPTION
Nilai Konstanta: "periodic-proto-writing"
PROTO_OUTPUT_FILE
public static final String PROTO_OUTPUT_FILE
Nilai Konstanta: "proto-output-file"
USE_DELIMITED_API
public static final String USE_DELIMITED_API
Nilai Konstanta: "use-delimited-api"
Konstruktor publik
FileProtoResultReporter
public FileProtoResultReporter ()
Metode publik
getOutputFile
public File getOutputFile ()
| Hasil | |
|---|---|
File |
|
isPeriodicWriting
public boolean isPeriodicWriting ()
Apakah penulisan berkala diaktifkan atau tidak.
| Hasil | |
|---|---|
boolean |
|
processFinalProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
Penanganan proto akhir dengan semua hasil.
| Parameter | |
|---|---|
finalRecord |
TestRecordProto.TestRecord: Proto akhir dengan semua hasil pemanggilan. |
processStartInvocation
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord,
IInvocationContext invocationContext)Penanganan proto rekaman pengujian pemanggilan parsial setelah invocationStarted(com.android.tradefed.invoker.IInvocationContext) terjadi.
| Parameter | |
|---|---|
invocationStartRecord |
TestRecordProto.TestRecord: Proto parsial yang diisi setelah invocationStart. |
invocationContext |
IInvocationContext: Pemanggilan IInvocationContext. |
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. |
setDelimitedOutput
public void setDelimitedOutput (boolean delimitedOutput)
| Parameter | |
|---|---|
delimitedOutput |
boolean |
setOutputFile
public void setOutputFile (File outputFile)
| Parameter | |
|---|---|
outputFile |
File |
setPeriodicWriting
public void setPeriodicWriting (boolean enabled)
Aktifkan penulisan setiap modul satu per satu ke file.
| Parameter | |
|---|---|
enabled |
boolean |
Metode yang dilindungi
createModuleChildReference
protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)
Membuat referensi turunan untuk modul.
| Parameter | |
|---|---|
record |
TestRecordProto.TestRecord |
| Hasil | |
|---|---|
TestRecordProto.ChildReference |
|