StreamProtoResultReporter

public final class StreamProtoResultReporter
extends ProtoResultReporter

java.lang.Object
   ↳ com.android.tradefed.result.proto.ProtoResultReporter
     ↳ com.android.tradefed.result.proto.StreamProtoResultReporter


ProtoResultReporter 的實作

摘要

欄位

public static final 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)

在發生 invocationStarted(com.android.tradefed.invoker.IInvocationContext) 後,處理部分叫用測試記錄的 proto。

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

在發生 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) 後,處理已定案的測試案例記錄 proto。

void processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)

在發生 testStarted(com.android.tradefed.result.TestDescription, long) 後,處理部分測試案例記錄的 proto。

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

在發生 testModuleEnded() 後,處理已定義的模組記錄 proto。

void processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)

在發生 testModuleStarted(com.android.tradefed.invoker.IInvocationContext) 後,處理部分模組記錄 proto。

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ERROR(/#testRunEnded(long,HashMap)) 發生後,處理已定案的執行記錄 proto。

void processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)

testRunStarted(String, int) 發生後,處理部分測試執行記錄的 proto。

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:代表叫用作業的最終版 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:在呼叫開始後填入的部分 Proto。

context IInvocationContext:叫用 IInvocationContext

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

發生 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) 後,處理已定案的測試案例記錄 proto。

參數
testCaseRecord TestRecordProto.TestRecord:代表測試案例的最終版 proto。

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

發生 testStarted(com.android.tradefed.result.TestDescription, long) 後,處理部分測試案例記錄 proto。

參數
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)) 發生後,處理已定案的執行記錄 proto。

參數
runRecord TestRecordProto.TestRecord:代表執行作業的最終版 proto。

moduleInProgress boolean:模組是否正在執行中。

processTestRunStarted

public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)

testRunStarted(String, int) 發生後,處理部分測試執行記錄的 proto。

參數
runStartedRecord TestRecordProto.TestRecord:代表執行作業的部分 Proto。

setProtoReportPort

public void setProtoReportPort (Integer portValue)

參數
portValue Integer

受保護的方法

closeSocket

protected void closeSocket ()