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 Map<String, String> parseResultsMetadata(File protoResults)

전송된 메타데이터를 추출하는 파싱 유틸리티

void processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)

testEnded(TestDescription,long,HashMap) 발생 후 완료된 테스트 사례 레코드 프로토콜 처리

void processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)

testModuleEnded() 발생 후 최종 모듈 레코드 프로토 처리

void processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)

testRunEnded(long,HashMap)가 발생한 후 최종 실행 기록 프로토콜 처리

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 Map<String, String> parseResultsMetadata (File protoResults)

전송된 메타데이터를 추출하는 파싱 유틸리티

매개변수
protoResults File

반환
Map<String, String>

processTestCaseEnded

public void processTestCaseEnded (TestRecordProto.TestRecord testCaseRecord)

testEnded(TestDescription,long,HashMap) 발생 후 완료된 테스트 사례 레코드 프로토콜 처리

매개변수
testCaseRecord TestRecordProto.TestRecord: 테스트 사례를 나타내는 최종 프로토콜입니다.

processTestModuleEnd

public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)

testModuleEnded() 발생 후 최종 모듈 레코드 프로토 처리

매개변수
moduleRecord TestRecordProto.TestRecord: 모듈을 나타내는 최종 proto입니다.

processTestRunEnded

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

testRunEnded(long,HashMap)가 발생한 후 최종 실행 기록 프로토콜 처리

매개변수
runRecord TestRecordProto.TestRecord: 실행을 나타내는 최종 프로토콜입니다.

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