StreamProtoResultReporter
public final class StreamProtoResultReporter
extends ProtoResultReporter
java.lang.Object | ||
↳ | com.android.tradefed.result.proto.ProtoResultReporter | |
↳ | com.android.tradefed.result.proto.StreamProtoResultReporter |
概括
字段 | |
---|---|
public static final String | PROTO_REPORT_PORT_OPTION
|
公共構造函數 | |
---|---|
StreamProtoResultReporter () |
公共方法 | |
---|---|
Integer | getProtoReportPort () |
void | processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs) 使用調用記錄將調用的所有最終日誌一一發送。 |
void | processFinalProto (TestRecordProto.TestRecord finalRecord) 處理帶有所有結果的最終原型。 |
void | processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context) 發生 |
void | processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord) |
void | processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord) |
void | processTestModuleEnd (TestRecordProto.TestRecord moduleRecord) 在 |
void | processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord) 在 |
void | processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress) |
void | processTestRunStarted (TestRecordProto.TestRecord runStartedRecord) |
void | setProtoReportPort (Integer portValue) |
受保護的方法 | |
---|---|
void | closeSocket () |
字段
PROTO_REPORT_PORT_OPTION
public static final String PROTO_REPORT_PORT_OPTION
公共構造函數
StreamProtoResultReporter
public StreamProtoResultReporter ()
公共方法
getProtoReportPort
public Integer getProtoReportPort ()
退貨 | |
---|---|
Integer |
processFinalInvocationLogs
public void processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs)
使用調用記錄將調用的所有最終日誌一一發送。
參數 | |
---|---|
invocationLogs | TestRecordProto.TestRecord :代表調用的最終原型。 |
processFinalProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
處理帶有所有結果的最終原型。
參數 | |
---|---|
finalRecord | TestRecordProto.TestRecord :包含所有調用結果的最終原型。 |
進程啟動調用
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord, IInvocationContext context)
發生invocationStarted(com.android.tradefed.invoker.IInvocationContext)
後部分調用測試記錄 proto 的處理。
參數 | |
---|---|
invocationStartRecord | TestRecordProto.TestRecord :invocationStart 後填充的部分原型。 |
context | IInvocationContext :調用IInvocationContext 。 |
進程TestCaseEnded
public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)
ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap))
發生後對最終測試用例記錄原型的處理。
參數 | |
---|---|
testCaseRecord | TestRecordProto.TestRecord :代表測試用例的最終原型。 |
processTestCaseStarted
public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)
testStarted(com.android.tradefed.result.TestDescription, long)
發生後部分測試用例記錄原型的處理。
參數 | |
---|---|
testCaseStartedRecord | TestRecordProto.TestRecord :代表測試用例的部分原型。 |
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
在testModuleEnded()
發生後處理最終的模塊記錄原型。
參數 | |
---|---|
moduleRecord | TestRecordProto.TestRecord :代表模塊的最終原型。 |
processTestModuleStarted
public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)
在testModuleStarted(com.android.tradefed.invoker.IInvocationContext)
發生後處理部分模塊記錄原型。
參數 | |
---|---|
moduleStartRecord | TestRecordProto.TestRecord :代表模塊的部分原型。 |
進程測試運行結束
public void processTestRunEnded (TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
ERROR(/#testRunEnded(long,HashMap))
發生後對最終運行記錄原型的處理。
參數 | |
---|---|
runRecord | TestRecordProto.TestRecord :代表運行的最終原型。 |
moduleInProgress | boolean :模塊是否正在進行中。 |
processTestRunStarted
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
testRunStarted(String, int)
發生後部分測試運行記錄原型的處理。
參數 | |
---|---|
runStartedRecord | TestRecordProto.TestRecord :代表運行的部分原型。 |
setProtoReportPort
public void setProtoReportPort (Integer portValue)
參數 | |
---|---|
portValue | Integer |
受保護的方法
closeSocket
protected void closeSocket ()