ProtoResultParser
public class ProtoResultParser
extends Object
java.lang.Object | |
↳ | com.android.tradefed.result.proto.ProtoResultParser |
Parser untuk format proto hasil Tradefed.
Ringkasan
Kelas bertingkat | |
---|---|
enum | ProtoResultParser.TestLevel Pencacahan mewakili tingkat proto saat ini yang sedang diproses. |
Konstruktor publik | |
---|---|
ProtoResultParser (ITestInvocationListener listener, IInvocationContext context, boolean reportInvocation) Ctor. | |
ProtoResultParser (ITestInvocationListener listener, IInvocationContext context, boolean reportInvocation, String prefixForFile) Ctor. |
Metode publik | |
---|---|
void | completeModuleEvents () Jika perlu untuk memastikan pelaporan yang konsisten, selesaikan kejadian di modul. |
String | getModuleInProgress () Mengembalikan id dari modul yang sedang berjalan. |
boolean | invocationEndedReached () Menampilkan apakah penguraian mencapai pemanggilan berakhir atau tidak. |
void | processFileProto (File protoFile) Dalam kasus penguraian file proto secara langsung, tangani penguraian langsung sebagai urutan. |
void | processFinalizedProto (TestRecordProto.TestRecord finalProto) Fungsi entri utama yang mengambil proto selesai yang diselesaikan dan memutar ulang hasilnya. |
ProtoResultParser.TestLevel | processNewProto (TestRecordProto.TestRecord currentProto) Fungsi entri utama di mana setiap proto disajikan untuk diurai ke dalam acara Tradefed. |
void | setQuiet (boolean quiet) Menyetel apakah akan mencetak atau tidak saat acara diterima. |
void | setReportLogs (boolean reportLogs) Menyetel apakah kita harus melaporkan log atau tidak. |
Konstruktor publik
ProtoResultParser
public ProtoResultParser (ITestInvocationListener listener, IInvocationContext context, boolean reportInvocation)
Ctor.
Parameter | |
---|---|
listener | ITestInvocationListener |
context | IInvocationContext |
reportInvocation | boolean |
ProtoResultParser
public ProtoResultParser (ITestInvocationListener listener, IInvocationContext context, boolean reportInvocation, String prefixForFile)
Ctor.
Parameter | |
---|---|
listener | ITestInvocationListener |
context | IInvocationContext |
reportInvocation | boolean |
prefixForFile | String |
Metode publik
completeModuleEvents
public void completeModuleEvents ()
Jika perlu untuk memastikan pelaporan yang konsisten, selesaikan kejadian di modul.
getModuleInProgress
public String getModuleInProgress ()
Mengembalikan id dari modul yang sedang berjalan. Mengembalikan nol jika tidak ada yang sedang berlangsung.
Kembali | |
---|---|
String |
invocationEndedReached
public boolean invocationEndedReached ()
Menampilkan apakah penguraian mencapai pemanggilan berakhir atau tidak.
Kembali | |
---|---|
boolean |
processFileProto
public void processFileProto (File protoFile).dll
Dalam kasus penguraian file proto secara langsung, tangani penguraian langsung sebagai urutan. Terkait dengan FileProtoResultReporter
saat melaporkan urutan file.
Parameter | |
---|---|
protoFile | File : File proto yang akan diurai. |
processFinalizedProto
public void processFinalizedProto (TestRecordProto.TestRecord finalProto)
Fungsi entri utama yang mengambil proto selesai yang diselesaikan dan memutar ulang hasilnya.
Parameter | |
---|---|
finalProto | TestRecordProto.TestRecord : The akhir TestRecord dapat dipecah. |
processNewProto
public ProtoResultParser.TestLevel processNewProto (TestRecordProto.TestRecord currentProto)
Fungsi entri utama di mana setiap proto disajikan untuk diurai ke dalam acara Tradefed.
Parameter | |
---|---|
currentProto | TestRecordProto.TestRecord : Arus TestRecord dapat dipecah. |
Kembali | |
---|---|
ProtoResultParser.TestLevel | Benar jika proto yang diproses adalah modul. |
setQuiet
public void setQuiet (boolean quiet)
Menyetel apakah akan mencetak atau tidak saat acara diterima.
Parameter | |
---|---|
quiet | boolean |
setReportLogs
public void setReportLogs (boolean reportLogs)
Menyetel apakah kita harus melaporkan log atau tidak.
Parameter | |
---|---|
reportLogs | boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.