StreamProtoResultReporter

public final class StreamProtoResultReporter
extends ProtoResultReporter

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


ProtoResultReporter 的實作

摘要

常數

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(IInvocationContext) 發生後,處理部分叫用檢測記錄 Proto。

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

testEnded(TestDescription,long,HashMap) 發生後,處理最終測試案例記錄原型。

void processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)

處理 testStarted(TestDescription,long) 後的部分測試案例記錄原型。

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

testModuleEnded() 發生後,處理最終的模組記錄 Proto。

void processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)

處理 testModuleStarted(IInvocationContext) 發生後的模組記錄部分原型。

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

testRunEnded(long,HashMap) 發生後,處理最終的執行記錄原型。

void processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)

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

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(IInvocationContext) 發生後處理部分叫用測試記錄原型。

參數
invocationStartRecord TestRecordProto.TestRecord:在 invocationStart 後填入的部分 proto。

context IInvocationContext:叫用 IInvocationContext

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

testEnded(TestDescription,long,HashMap) 發生後,處理最終測試案例記錄原型。

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

processTestCaseStarted

public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)

testStarted(TestDescription,long) 發生後,處理部分測試案例記錄原型。

參數
testCaseStartedRecord TestRecordProto.TestRecord:代表測試案例的部分 proto。

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded() 發生後,處理最終的模組記錄原型。

參數
moduleRecord TestRecordProto.TestRecord:代表模組的最終 proto。

processTestModuleStarted

public void processTestModuleStarted (TestRecordProto.TestRecord moduleStartRecord)

testModuleStarted(IInvocationContext) 發生後處理部分模組記錄原型。

參數
moduleStartRecord TestRecordProto.TestRecord:代表模組的部分 proto。

processTestRunEnded

public void processTestRunEnded (TestRecordProto.TestRecord runRecord, 
                boolean moduleInProgress)

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 ()