2026년부터 트렁크 안정 개발 모델과 일치하고 생태계의 플랫폼 안정성을 보장하기 위해 2분기와 4분기에 AOSP에 소스 코드를 게시합니다. AOSP를 빌드하고 기여하려면 aosp-main 대신 android-latest-release를 사용하는 것이 좋습니다. android-latest-release 매니페스트 브랜치는 항상 AOSP에 푸시된 최신 버전을 참조합니다. 자세한 내용은 AOSP 변경사항을 참고하세요.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
ProtoResultReporter
public
abstract
class
ProtoResultReporter
extends Object
implements
ITestInvocationListener,
ILogSaverListener,
ISupportGranularResults
| java.lang.Object
|
| ↳ |
com.android.tradefed.result.proto.ProtoResultReporter
|
결과 보고자는 모든 결과가 포함된 TestRecord protobuf를 빌드합니다. processFinalProto(com.android.tradefed.result.proto.TestRecordProto.TestRecord)의 최종 프로토를 처리하는 작업을 처리하도록 확장해야 합니다.
요약
공개 메서드 |
final
void
|
invocationEnded(long elapsedTime)
|
void
|
invocationFailed(FailureDescription failure)
|
void
|
invocationFailed(Throwable cause)
|
final
void
|
invocationStarted(IInvocationContext context)
|
final
void
|
logAssociation(String dataName, LogFile logFile)
|
void
|
processFinalProto(TestRecordProto.TestRecord finalRecord)
모든 결과가 포함된 최종 프로토 처리
|
void
|
processStartInvocation(TestRecordProto.TestRecord invocationStartRecord, IInvocationContext invocationContext)
invocationStarted(com.android.tradefed.invoker.IInvocationContext) 발생 후 부분 호출 테스트 레코드 프로토 처리
|
void
|
processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)
ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap) 발생 후 완료된 테스트 사례 레코드 프로토 처리
|
void
|
processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)
testStarted(com.android.tradefed.result.TestDescription, long)가 발생한 후 부분 테스트 사례 레코드 프로토를 처리합니다.
|
void
|
processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)
testModuleEnded()가 발생한 후 최종 모듈 레코드 프로토 처리
|
void
|
processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)
testModuleStarted(com.android.tradefed.invoker.IInvocationContext)가 발생한 후 부분 모듈 레코드 프로토를 처리합니다.
|
void
|
processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
ITestLifeCycleReceiver.testRunEnded(long, HashMap)이 발생한 후 완료된 실행 기록 프로토를 처리합니다.
|
void
|
processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)
testRunStarted(String, int)이 발생한 후 부분 테스트 실행 레코드 프로토를 처리합니다.
|
boolean
|
supportGranularResults()
|
final
void
|
testAssumptionFailure(TestDescription test, String trace)
|
final
void
|
testAssumptionFailure(TestDescription test, FailureDescription failure)
|
final
void
|
testEnded(TestDescription test, long endTime, testMetrics)
|
void
|
testEnded(TestDescription test, testMetrics)
|
final
void
|
testFailed(TestDescription test, FailureDescription failure)
|
final
void
|
testFailed(TestDescription test, String trace)
|
final
void
|
testIgnored(TestDescription test)
|
final
void
|
testModuleEnded()
|
final
void
|
testModuleStarted(IInvocationContext moduleContext)
|
final
void
|
testRunEnded(long elapsedTimeMillis, runMetrics)
|
final
void
|
testRunFailed(FailureDescription failure)
|
final
void
|
testRunFailed(String errorMessage)
|
void
|
testRunStarted(String runName, int testCount, int attemptNumber)
|
final
void
|
testRunStarted(String runName, int testCount)
|
void
|
testRunStarted(String runName, int testCount, int attemptNumber, long startTime)
|
final
void
|
testStarted(TestDescription test, long startTime)
|
final
void
|
testStarted(TestDescription test)
|
공개 생성자
ProtoResultReporter
public ProtoResultReporter ()
공개 메서드
invocationEnded
public final void invocationEnded (long elapsedTime)
invocationFailed
public void invocationFailed (FailureDescription failure)
| 매개변수 |
failure |
FailureDescription |
invocationFailed
public void invocationFailed (Throwable cause)
invocationStarted
public final void invocationStarted (IInvocationContext context)
| 매개변수 |
context |
IInvocationContext |
logAssociation
public final void logAssociation (String dataName,
LogFile logFile)
| 매개변수 |
dataName |
String |
logFile |
LogFile |
processFinalProto
public void processFinalProto (TestRecordProto.TestRecord finalRecord)
모든 결과가 포함된 최종 프로토 처리
| 매개변수 |
finalRecord |
TestRecordProto.TestRecord: 모든 호출 결과가 포함된 최종 프로토입니다.
|
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
testModuleEnded()가 발생한 후 최종 모듈 레코드 프로토 처리
| 매개변수 |
moduleRecord |
TestRecordProto.TestRecord: 모듈을 나타내는 최종 프로토입니다.
|
processTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord,
boolean moduleInProgress)
ITestLifeCycleReceiver.testRunEnded(long, HashMap)이 발생한 후 완료된 실행 기록 프로토를 처리합니다.
| 매개변수 |
runRecord |
TestRecordProto.TestRecord: 실행을 나타내는 최종 프로토입니다. |
moduleInProgress |
boolean: 모듈이 진행 중인지 여부입니다.
|
processTestRunStarted
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
testRunStarted(String, int)이 발생한 후 부분 테스트 실행 레코드 프로토를 처리합니다.
| 매개변수 |
runStartedRecord |
TestRecordProto.TestRecord: 실행을 나타내는 부분 프로토입니다.
|
supportGranularResults
public boolean supportGranularResults ()
testAssumptionFailure
public final void testAssumptionFailure (TestDescription test,
String trace)
| 매개변수 |
test |
TestDescription |
trace |
String |
testAssumptionFailure
public final void testAssumptionFailure (TestDescription test,
FailureDescription failure)
| 매개변수 |
test |
TestDescription |
failure |
FailureDescription |
testEnded
public final void testEnded (TestDescription test,
long endTime,
testMetrics)
| 매개변수 |
test |
TestDescription |
endTime |
long |
testMetrics |
|
testEnded
public void testEnded (TestDescription test,
testMetrics)
| 매개변수 |
test |
TestDescription |
testMetrics |
|
testFailed
public final void testFailed (TestDescription test,
FailureDescription failure)
| 매개변수 |
test |
TestDescription |
failure |
FailureDescription |
testFailed
public final void testFailed (TestDescription test,
String trace)
| 매개변수 |
test |
TestDescription |
trace |
String |
testIgnored
public final void testIgnored (TestDescription test)
| 매개변수 |
test |
TestDescription |
testModuleEnded
public final void testModuleEnded ()
testModuleStarted
public final void testModuleStarted (IInvocationContext moduleContext)
| 매개변수 |
moduleContext |
IInvocationContext |
testRunEnded
public final void testRunEnded (long elapsedTimeMillis,
runMetrics)
| 매개변수 |
elapsedTimeMillis |
long |
runMetrics |
|
testRunFailed
public final void testRunFailed (FailureDescription failure)
| 매개변수 |
failure |
FailureDescription |
testRunFailed
public final void testRunFailed (String errorMessage)
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber)
| 매개변수 |
runName |
String |
testCount |
int |
attemptNumber |
int |
testRunStarted
public final void testRunStarted (String runName,
int testCount)
| 매개변수 |
runName |
String |
testCount |
int |
testRunStarted
public void testRunStarted (String runName,
int testCount,
int attemptNumber,
long startTime)
| 매개변수 |
runName |
String |
testCount |
int |
attemptNumber |
int |
startTime |
long |
testStarted
public final void testStarted (TestDescription test,
long startTime)
| 매개변수 |
test |
TestDescription |
startTime |
long |
testStarted
public final void testStarted (TestDescription test)
| 매개변수 |
test |
TestDescription |
보호된 메서드
createModuleChildReference
protected TestRecordProto.ChildReference createModuleChildReference (TestRecordProto.TestRecord record)
모듈의 하위 참조를 만듭니다.
| 매개변수 |
record |
TestRecordProto.TestRecord |
| 반환 값 |
TestRecordProto.ChildReference |
|
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2025-07-27(UTC)
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-07-27(UTC)"],[],[]]