اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
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)
التعامل مع ملف proto لاختبار الاستدعاء الجزئي بعد حدوث invocationStarted(com.android.tradefed.invoker.IInvocationContext)
|
void
|
processTestCaseEnded(TestRecordProto.TestRecord testCaseRecord)
التعامل مع ملف proto لسجلّ حالة الاختبار النهائي بعد حدوث ITestLifeCycleReceiver.testEnded(com.android.tradefed.result.TestDescription, long, HashMap)
|
void
|
processTestCaseStarted(TestRecordProto.TestRecord testCaseStartedRecord)
التعامل مع ملف proto لسجلّ حالة الاختبار الجزئي بعد حدوث testStarted(com.android.tradefed.result.TestDescription, long)
|
void
|
processTestModuleEnd(TestRecordProto.TestRecord moduleRecord)
التعامل مع ملف proto لسجلّ الوحدة المكتمل بعد حدوث testModuleEnded()
|
void
|
processTestModuleStarted(TestRecordProto.TestRecord moduleStartRecord)
التعامل مع ملف proto لسجلّ الوحدة الجزئي بعد حدوث testModuleStarted(com.android.tradefed.invoker.IInvocationContext)
|
void
|
processTestRunEnded(TestRecordProto.TestRecord runRecord, boolean moduleInProgress)
التعامل مع ملف proto لسجلّ التشغيل النهائي بعد حدوث ITestLifeCycleReceiver.testRunEnded(long, HashMap)
|
void
|
processTestRunStarted(TestRecordProto.TestRecord runStartedRecord)
التعامل مع سجلّ التشغيل الجزئي للاختبار proto بعد حدوث 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)
المعلمات |
elapsedTime |
long |
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 : ملف proto النهائي الذي يتضمّن جميع نتائج الاستدعاء
|
processStartInvocation
public void processStartInvocation (TestRecordProto.TestRecord invocationStartRecord,
IInvocationContext invocationContext)
التعامل مع ملف proto لاختبار الاستدعاء الجزئي بعد حدوث invocationStarted(com.android.tradefed.invoker.IInvocationContext)
المعلمات |
invocationStartRecord |
TestRecordProto.TestRecord : تمّت تعبئة النموذج الجزئي بعد invocationStart. |
invocationContext |
IInvocationContext : طلب التنفيذ IInvocationContext .
|
processTestCaseStarted
public void processTestCaseStarted (TestRecordProto.TestRecord testCaseStartedRecord)
التعامل مع ملف proto لسجلّ حالة الاختبار الجزئي بعد حدوث testStarted(com.android.tradefed.result.TestDescription, long)
المعلمات |
testCaseStartedRecord |
TestRecordProto.TestRecord : ملف proto جزئي يمثّل نموذج الاختبار
|
processTestModuleEnd
public void processTestModuleEnd (TestRecordProto.TestRecord moduleRecord)
التعامل مع ملف proto لسجلّ الوحدة المكتمل بعد حدوث testModuleEnded()
المعلمات |
moduleRecord |
TestRecordProto.TestRecord : النموذج النهائي الذي يمثّل الوحدة
|
processTestRunEnded
public void processTestRunEnded (TestRecordProto.TestRecord runRecord,
boolean moduleInProgress)
التعامل مع ملف proto لسجلّ التشغيل النهائي بعد حدوث ITestLifeCycleReceiver.testRunEnded(long, HashMap)
المعلمات |
runRecord |
TestRecordProto.TestRecord : النموذج النهائي الذي يمثّل عملية التنفيذ |
moduleInProgress |
boolean : ما إذا كانت إحدى الوحدات قيد التنفيذ أم لا
|
processTestRunStarted
public void processTestRunStarted (TestRecordProto.TestRecord runStartedRecord)
التعامل مع سجلّ التشغيل الجزئي للاختبار proto بعد حدوث 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-03-26 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-03-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[]]