StreamProtoResultReporter
public
final
class
StreamProtoResultReporter
extends ProtoResultReporter
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.proto.ProtoResultReporter | |
| ↳ | com.android.tradefed.result.proto.StreamProtoResultReporter | |
摘要
常數 | |
|---|---|
String |
PROTO_REPORT_PORT_OPTION
|
公用建構函式 | |
|---|---|
StreamProtoResultReporter()
|
|
公用方法 | |
|---|---|
Integer
|
getProtoReportPort()
|
void
|
processFinalInvocationLogs(TestRecordProto.TestRecord invocationLogs)
使用叫用記錄逐一傳送叫用的所有最終記錄。 |
void
|
processFinalProto(TestRecordProto.TestRecord finalRecord)
處理包含所有結果的最終 Proto。 |
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
常數值: "proto-report-port"
公用建構函式
StreamProtoResultReporter
public StreamProtoResultReporter ()
公用方法
getProtoReportPort
public Integer getProtoReportPort ()
| 傳回 | |
|---|---|
Integer |
|
processFinalInvocationLogs
public void processFinalInvocationLogs (TestRecordProto.TestRecord invocationLogs)
使用叫用記錄逐一傳送叫用的所有最終記錄。
| 參數 | |
|---|---|
invocationLogs |
TestRecordProto.TestRecord:代表呼叫的最終 proto。 |
processFinalProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
處理包含所有結果的最終 Proto。
| 參數 | |
|---|---|
finalRecord |
TestRecordProto.TestRecord:最終的 proto,包含所有叫用結果。 |
processStartInvocation
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord,
IInvocationContext context)在 invocationStarted(com.android.tradefed.invoker.IInvocationContext) 發生後,處理部分叫用測試記錄 Proto。
| 參數 | |
|---|---|
invocationStartRecord |
TestRecordProto.TestRecord:在 invocationStart 後填入的部分 proto。 |
context |
IInvocationContext:叫用 IInvocationContext。 |
processTestCaseEnded
public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)
在 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) 發生後,處理最終測試案例記錄原型。
| 參數 | |
|---|---|
testCaseRecord |
TestRecordProto.TestRecord:代表測試案例的最終 proto。 |
processTestCaseStarted
public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)
在 testStarted(com.android.tradefed.result.TestDescription, long) 發生後,處理部分測試案例記錄原型。
| 參數 | |
|---|---|
testCaseStartedRecord |
TestRecordProto.TestRecord:代表測試案例的部分 proto。 |
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
testModuleEnded() 發生後,處理最終的模組記錄 Proto。
| 參數 | |
|---|---|
moduleRecord |
TestRecordProto.TestRecord:代表模組的最終 proto。 |
processTestModuleStarted
public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)
testModuleStarted(com.android.tradefed.invoker.IInvocationContext) 發生後,如何處理部分模組記錄 Proto。
| 參數 | |
|---|---|
moduleStartRecord |
TestRecordProto.TestRecord:代表模組的部分 proto。 |
processTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord,
boolean moduleInProgress)在 ERROR(/#testRunEnded(long,HashMap)) 發生後,處理最終的執行記錄原型。
| 參數 | |
|---|---|
runRecord |
TestRecordProto.TestRecord:代表執行作業的最終 proto。 |
moduleInProgress |
boolean:模組是否正在進行中。 |
processTestRunStarted
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
在 testRunStarted(String, int) 之後處理部分測試執行記錄原型。
| 參數 | |
|---|---|
runStartedRecord |
TestRecordProto.TestRecord:代表執行的部分 proto。 |
setProtoReportPort
public void setProtoReportPort (Integer portValue)
| 參數 | |
|---|---|
portValue |
Integer |
受保護的方法
closeSocket
protected void closeSocket ()