A partir de 27 de março de 2025, recomendamos usar android-latest-release
em vez de aosp-main
para criar e contribuir com o AOSP. Para mais informações, consulte Mudanças no AOSP.
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
InvocationProtoResultReporter
public
class
InvocationProtoResultReporter
extends ModuleProtoResultReporter
Relatórios para armazenar informações de armazenamento em cache no nível de invocação e a lista de módulos
Resumo
Construtores públicos
InvocationProtoResultReporter
public InvocationProtoResultReporter ()
InvocationProtoResultReporter
public InvocationProtoResultReporter (IInvocationContext mainInvocationContext,
boolean granularResults)
Parâmetros |
mainInvocationContext |
IInvocationContext |
granularResults |
boolean |
Métodos públicos
invocationFailed
public void invocationFailed (FailureDescription failure)
Informa uma invocação incompleta devido a uma condição de erro.
Será chamado automaticamente pelo framework TradeFederation.
invocationFailed
public void invocationFailed (Throwable cause)
Informa uma invocação incompleta devido a uma condição de erro.
Será chamado automaticamente pelo framework TradeFederation.
Parâmetros |
cause |
Throwable : a causa Throwable da falha |
invocationStarted
public void invocationStarted (IInvocationContext context)
Informa o início da invocação do teste.
Será chamado automaticamente pelo framework TradeFederation. Os repórteres precisam substituir
esse método para oferecer suporte a vários dispositivos.
Parâmetros |
context |
IInvocationContext : informações sobre a invocação |
Métodos protegidos
beforeModuleStart
protected void beforeModuleStart ()
O conteúdo e os exemplos de código nesta página estão sujeitos às licenças descritas na Licença de conteúdo. Java e OpenJDK são marcas registradas da Oracle e/ou suas afiliadas.
Última atualização 2025-07-27 UTC.
[[["Fácil de entender","easyToUnderstand","thumb-up"],["Meu problema foi resolvido","solvedMyProblem","thumb-up"],["Outro","otherUp","thumb-up"]],[["Não contém as informações de que eu preciso","missingTheInformationINeed","thumb-down"],["Muito complicado / etapas demais","tooComplicatedTooManySteps","thumb-down"],["Desatualizado","outOfDate","thumb-down"],["Problema na tradução","translationIssue","thumb-down"],["Problema com as amostras / o código","samplesCodeIssue","thumb-down"],["Outro","otherDown","thumb-down"]],["Última atualização 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"]]