ModuleProtoResultReporter

public class ModuleProtoResultReporter
extends FileProtoResultReporter

java.lang.Object
   ↳ com.android.tradefed.result.proto.ProtoResultReporter
     ↳ com.android.tradefed.result.proto.FileProtoResultReporter
       ↳ com.android.tradefed.result.proto.ModuleProtoResultReporter


モジュール レベルの結果のみを報告するための結果レポーター。このモジュールでは再入はサポートされていません。このレポートの主な目的は、モジュール レベルでのキャッシュ保存です。

概要

定数

String INVOCATION_ID_KEY

パブリック コンストラクタ

ModuleProtoResultReporter()
ModuleProtoResultReporter(IInvocationContext mainInvocationContext, boolean granularResults)

パブリック メソッド

static parseResultsMetadata(File protoResults)

転送された可能性のあるメタデータを抽出する解析ユーティリティ

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) の発生後の最終テストケース レコード proto の処理。

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

testModuleEnded() の発生後の最終的なモジュール レコード proto の処理。

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

ERROR(/#testRunEnded(long,HashMap)) の発生後の最終的な実行レコード proto の処理。

boolean reportGranularResults()
void reportStopCaching()
boolean stopCaching()

保護されたメソッド

void afterModuleEnd()
void beforeModuleStart()
IInvocationContext createCachedContext()

定数

INVOCATION_ID_KEY

public static final String INVOCATION_ID_KEY

定数値: "invocation_id"

パブリック コンストラクタ

ModuleProtoResultReporter

public ModuleProtoResultReporter ()

ModuleProtoResultReporter

public ModuleProtoResultReporter (IInvocationContext mainInvocationContext, 
                boolean granularResults)

パラメータ
mainInvocationContext IInvocationContext

granularResults boolean

パブリック メソッド

parseResultsMetadata

public static  parseResultsMetadata (File protoResults)

転送された可能性のあるメタデータを抽出する解析ユーティリティ

パラメータ
protoResults File

戻り値

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,HashMap)) の発生後の確定済みテストケース レコード proto の処理。

パラメータ
testCaseRecord TestRecordProto.TestRecord: テストケースを表す最終的な proto。

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded() の発生後の最終的なモジュール レコード proto の処理。

パラメータ
moduleRecord TestRecordProto.TestRecord: モジュールを表す最終的な proto。

processTestRunEnded

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

ERROR(/#testRunEnded(long,HashMap)) の発生後の最終的な実行レコード proto の処理。

パラメータ
runRecord TestRecordProto.TestRecord: 実行を表すファイナライズされた proto。

moduleInProgress boolean: モジュールが進行中かどうか。

reportGranularResults

public boolean reportGranularResults ()

戻り値
boolean

reportStopCaching

public void reportStopCaching ()

stopCaching

public boolean stopCaching ()

戻り値
boolean

保護されたメソッド

afterModuleEnd

protected void afterModuleEnd ()

beforeModuleStart

protected void beforeModuleStart ()

createCachedContext

protected IInvocationContext createCachedContext ()

戻り値
IInvocationContext