اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release
بدلاً من aosp-main
لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
InvocationProtoResultReporter
public
class
InvocationProtoResultReporter
extends ModuleProtoResultReporter
أدوات إعداد التقارير لتخزين معلومات التخزين المؤقت على مستوى الطلب وقائمة الوحدات
ملخّص
وظائف الإنشاء العامة
InvocationProtoResultReporter
public InvocationProtoResultReporter ()
InvocationProtoResultReporter
public InvocationProtoResultReporter (IInvocationContext mainInvocationContext,
boolean granularResults)
المعلمات |
mainInvocationContext |
IInvocationContext |
granularResults |
boolean |
الطرق العامة
invocationFailed
public void invocationFailed (FailureDescription failure)
الإبلاغ عن طلب غير مكتمل بسبب بعض حالات الخطأ
سيتم استدعاؤه تلقائيًا من خلال إطار عمل TradeFederation.
invocationFailed
public void invocationFailed (Throwable cause)
الإبلاغ عن طلب غير مكتمل بسبب بعض حالات الخطأ
سيتم استدعاؤه تلقائيًا من خلال إطار عمل TradeFederation.
المعلمات |
cause |
Throwable : Throwable سبب الخطأ |
invocationStarted
public void invocationStarted (IInvocationContext context)
الإبلاغ عن بدء استدعاء الاختبار
سيتم استدعاؤه تلقائيًا من خلال إطار عمل TradeFederation. على مُرسِلي البلاغات إلغاء
هذه الطريقة للسماح بإعداد تقارير عن أجهزة متعددة.
المعلمات |
context |
IInvocationContext : معلومات عن الاستدعاء |
الطرق المحمية
beforeModuleStart
protected void beforeModuleStart ()
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# InvocationProtoResultReporter\n=============================\n\n\n`\npublic\n\n\nclass\nInvocationProtoResultReporter\n`\n\n\n`\n\n\n`\n\n`\n\n\n`\n\n`\n\n\n`\n\n`\n\nextends `[ModuleProtoResultReporter](../../../../../../../reference/tradefed/com/android/tradefed/result/proto/ModuleProtoResultReporter.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|---|---|-----------------------------------------------------------------|\n| java.lang.Object |||||\n| ↳ | [com.android.tradefed.result.proto.ProtoResultReporter](../../../../../../../reference/tradefed/com/android/tradefed/result/proto/ProtoResultReporter.html) ||||\n| | ↳ | [com.android.tradefed.result.proto.FileProtoResultReporter](../../../../../../../reference/tradefed/com/android/tradefed/result/proto/FileProtoResultReporter.html) |||\n| | | ↳ | [com.android.tradefed.result.proto.ModuleProtoResultReporter](../../../../../../../reference/tradefed/com/android/tradefed/result/proto/ModuleProtoResultReporter.html) ||\n| | | | ↳ | com.android.tradefed.result.proto.InvocationProtoResultReporter |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nReporters to store invocation level caching information and its list of modules\n\nSummary\n-------\n\n| ### Public constructors ||\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[InvocationProtoResultReporter](../../../../../../../reference/tradefed/com/android/tradefed/result/proto/InvocationProtoResultReporter.html#InvocationProtoResultReporter())`() ` |\n| ` `[InvocationProtoResultReporter](../../../../../../../reference/tradefed/com/android/tradefed/result/proto/InvocationProtoResultReporter.html#InvocationProtoResultReporter(com.android.tradefed.invoker.IInvocationContext,%20boolean))`(`[IInvocationContext](../../../../../../../reference/tradefed/com/android/tradefed/invoker/IInvocationContext.html)` mainInvocationContext, boolean granularResults) ` |\n\n| ### Public methods ||\n|---------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[invocationFailed](../../../../../../../reference/tradefed/com/android/tradefed/result/proto/InvocationProtoResultReporter.html#invocationFailed(com.android.tradefed.result.FailureDescription))`(`[FailureDescription](../../../../../../../reference/tradefed/com/android/tradefed/result/FailureDescription.html)` failure) ` Reports an incomplete invocation due to some error condition. |\n| ` void` | ` `[invocationFailed](../../../../../../../reference/tradefed/com/android/tradefed/result/proto/InvocationProtoResultReporter.html#invocationFailed(java.lang.Throwable))`(Throwable cause) ` Reports an incomplete invocation due to some error condition. |\n| ` void` | ` `[invocationStarted](../../../../../../../reference/tradefed/com/android/tradefed/result/proto/InvocationProtoResultReporter.html#invocationStarted(com.android.tradefed.invoker.IInvocationContext))`(`[IInvocationContext](../../../../../../../reference/tradefed/com/android/tradefed/invoker/IInvocationContext.html)` context) ` Reports the start of the test invocation. |\n\n| ### Protected methods ||\n|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[beforeModuleStart](../../../../../../../reference/tradefed/com/android/tradefed/result/proto/InvocationProtoResultReporter.html#beforeModuleStart())`() ` |\n\nPublic constructors\n-------------------\n\n### InvocationProtoResultReporter\n\n```\npublic InvocationProtoResultReporter ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### InvocationProtoResultReporter\n\n```\npublic InvocationProtoResultReporter (IInvocationContext mainInvocationContext, \n boolean granularResults)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------------------------|-----------------------------|\n| `mainInvocationContext` | `IInvocationContext` \u003cbr /\u003e |\n| `granularResults` | `boolean` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### invocationFailed\n\n```\npublic void invocationFailed (FailureDescription failure)\n```\n\nReports an incomplete invocation due to some error condition.\n\nWill be automatically called by the TradeFederation framework.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `failure` | `FailureDescription`: the [FailureDescription](../../../../../../../reference/tradefed/com/android/tradefed/result/FailureDescription.html) describing the cause of the failure \u003cbr /\u003e |\n\n### invocationFailed\n\n```\npublic void invocationFailed (Throwable cause)\n```\n\nReports an incomplete invocation due to some error condition.\n\n\u003cbr /\u003e\n\nWill be automatically called by the TradeFederation framework.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|----------------------------------------------------------------------------------------------------------------------------|\n| `cause` | `Throwable`: the [Throwable](../../../../../../../reference/tradefed/java/lang/Throwable.html) cause of the failure \u003cbr /\u003e |\n\n### invocationStarted\n\n```\npublic void invocationStarted (IInvocationContext context)\n```\n\nReports the start of the test invocation.\n\nWill be automatically called by the TradeFederation framework. Reporters need to override\nthis method to support multiple devices reporting.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|---------------------------------------------------------------|\n| `context` | `IInvocationContext`: information about the invocation \u003cbr /\u003e |\n\nProtected methods\n-----------------\n\n### beforeModuleStart\n\n```\nprotected void beforeModuleStart ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e"]]