Od 27 marca 2025 r. zalecamy używanie android-latest-release
zamiast aosp-main
do kompilowania i wspołtworzenia AOSP. Więcej informacji znajdziesz w artykule o zmianach w AOSP.
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
InvocationProtoResultReporter
public
class
InvocationProtoResultReporter
extends ModuleProtoResultReporter
Reporters to store invocation level caching information and its list of modules
Podsumowanie
Konstruktory publiczne
InvocationProtoResultReporter
public InvocationProtoResultReporter ()
InvocationProtoResultReporter
public InvocationProtoResultReporter (IInvocationContext mainInvocationContext,
boolean granularResults)
Parametry |
mainInvocationContext |
IInvocationContext |
granularResults |
boolean |
Metody publiczne
invocationFailed
public void invocationFailed (FailureDescription failure)
zgłasza niepełne wywołanie z powodu błędu.
Będzie wywoływany automatycznie przez platformę TradeFederation.
Parametry |
failure |
FailureDescription : FailureDescription opisujący przyczynę niepowodzenia |
invocationFailed
public void invocationFailed (Throwable cause)
zgłasza niepełne wywołanie z powodu błędu.
Będzie wywoływany automatycznie przez platformę TradeFederation.
Parametry |
cause |
Throwable : przyczyna niepowodzenia Throwable |
invocationStarted
public void invocationStarted (IInvocationContext context)
Raportuje rozpoczęcie wywołania testu.
Będzie wywoływany automatycznie przez platformę TradeFederation. Aby umożliwić raportowanie z kilku urządzeń, autorzy raportów muszą zastąpić tę metodę.
Parametry |
context |
IInvocationContext : informacje o wywołaniu; |
Chronione metody
beforeModuleStart
protected void beforeModuleStart ()
Treść strony i umieszczone na niej fragmenty kodu podlegają licencjom opisanym w Licencji na treści. Java i OpenJDK są znakami towarowymi lub zastrzeżonymi znakami towarowymi należącymi do firmy Oracle lub jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-27 UTC.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 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"]]