Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release
, bukan aosp-main
, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
InvocationProtoResultReporter
public
class
InvocationProtoResultReporter
extends ModuleProtoResultReporter
Pelapor untuk menyimpan informasi penyimpanan dalam cache tingkat pemanggilan dan daftar modulnya
Ringkasan
Konstruktor publik
InvocationProtoResultReporter
public InvocationProtoResultReporter ()
InvocationProtoResultReporter
public InvocationProtoResultReporter (IInvocationContext mainInvocationContext,
boolean granularResults)
Parameter |
mainInvocationContext |
IInvocationContext |
granularResults |
boolean |
Metode publik
invocationFailed
public void invocationFailed (FailureDescription failure)
Melaporkan pemanggilan yang tidak lengkap karena beberapa kondisi error.
Akan otomatis dipanggil oleh framework TradeFederation.
Parameter |
failure |
FailureDescription : FailureDescription yang menjelaskan penyebab kegagalan |
invocationFailed
public void invocationFailed (Throwable cause)
Melaporkan pemanggilan yang tidak lengkap karena beberapa kondisi error.
Akan otomatis dipanggil oleh framework TradeFederation.
Parameter |
cause |
Throwable : Throwable penyebab kegagalan |
invocationStarted
public void invocationStarted (IInvocationContext context)
Melaporkan awal pemanggilan pengujian.
Akan otomatis dipanggil oleh framework TradeFederation. Pelapor perlu mengganti
metode ini untuk mendukung pelaporan beberapa perangkat.
Parameter |
context |
IInvocationContext : informasi tentang pemanggilan |
Metode yang dilindungi
beforeModuleStart
protected void beforeModuleStart ()
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],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"]]