החל משנת 2026, כדי להתאים את התהליך למודל הפיתוח היציב שלנו ולשמור על יציבות הפלטפורמה בסביבה העסקית, נפרסם קוד מקור ב-AOSP ברבעון השני וברבעון הרביעי. כדי ליצור תוספים ל-AOSP ולתרום לו, מומלץ להשתמש ב-android-latest-release במקום ב-aosp-main. ענף המניפסט 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
|
דיווח על תוצאות יוצר protobuf של TestRecord עם כל התוצאות בפנים. צריך להרחיב את הקוד כדי לטפל בבעיה של הטיפול ב-proto הסופי ב-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)
טיפול ב-proto הסופי עם כל התוצאות.
|
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)
טיפול ב-proto של רשומת הריצה הסופית אחרי 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)
|
שיטות מוגנות |
TestRecordProto.ChildReference
|
createModuleChildReference(TestRecordProto.TestRecord record)
יצירת הפניה לילד של מודול.
|
קונסטרוקטורים גלויים לכולם
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)
טיפול ב-proto הסופי עם כל התוצאות.
| פרמטרים |
finalRecord |
TestRecordProto.TestRecord: קובץ ה-proto הסופי עם כל תוצאות ההפעלה.
|
processStartInvocation
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord,
IInvocationContext invocationContext)
טיפול בפרוטו של רשומת הבדיקה של הקריאה החלקית לאחר אירוע invocationStarted(com.android.tradefed.invoker.IInvocationContext).
| פרמטרים |
invocationStartRecord |
TestRecordProto.TestRecord: ה-proto החלקי מאוכלס אחרי invocationStart. |
invocationContext |
IInvocationContext: הקריאה IInvocationContext.
|
processTestCaseStarted
public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)
טיפול בפרוטו של רשומת מקרה הבדיקה החלקי אחרי שאירוע testStarted(com.android.tradefed.result.TestDescription, long) התרחש.
| פרמטרים |
testCaseStartedRecord |
TestRecordProto.TestRecord: ה-proto החלקי שמייצג את מקרה הבדיקה.
|
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
טיפול בפרוטו של רשומת המודול הסופית אחרי שאירוע testModuleEnded() התרחש.
| פרמטרים |
moduleRecord |
TestRecordProto.TestRecord: קובץ ה-proto הסופי שמייצג את המודול.
|
processTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord,
boolean moduleInProgress)
טיפול ב-proto של רשומת הריצה הסופית אחרי ITestLifeCycleReceiver.testRunEnded(long, HashMap).
| פרמטרים |
runRecord |
TestRecordProto.TestRecord: קובץ ה-proto הסופי שמייצג את ההרצה. |
moduleInProgress |
boolean: אם מודול מסוים נמצא בטיפול או לא.
|
processTestRunStarted
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
טיפול בפרוטו של רשומת הרצת הבדיקה החלקית אחרי testRunStarted(String, int).
| פרמטרים |
runStartedRecord |
TestRecordProto.TestRecord: ה-proto החלקי שמייצג את ההרצה.
|
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)
| פרמטרים |
errorMessage |
String |
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 |
|
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת 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)."],[],[]]