A partire dal 27 marzo 2025, ti consigliamo di utilizzare android-latest-release
anziché aosp-main
per compilare e contribuire ad AOSP. Per ulteriori informazioni, vedi Modifiche ad AOSP.
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
KnownFailurePreparer
public
class
KnownFailurePreparer
extends BaseTargetPreparer
implements
IConfigurationReceiver
Preparatore target per saltare la ripetizione di un errore noto.
Riepilogo
Costruttori pubblici
KnownFailurePreparer
public KnownFailurePreparer ()
Metodi pubblici
setConfiguration
public void setConfiguration (IConfiguration configuration)
Invia il IConfiguration
in uso.
Parametri |
configuration |
IConfiguration |
public void setUp (TestInformation testInfo)
Parametri |
testInfo |
TestInformation |
I campioni di contenuti e codice in questa pagina sono soggetti alle licenze descritte nella Licenza per i contenuti. Java e OpenJDK sono marchi o marchi registrati di Oracle e/o delle sue società consociate.
Ultimo aggiornamento 2025-07-27 UTC.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Mancano le informazioni di cui ho bisogno","missingTheInformationINeed","thumb-down"],["Troppo complicato/troppi passaggi","tooComplicatedTooManySteps","thumb-down"],["Obsoleti","outOfDate","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Problema relativo a esempi/codice","samplesCodeIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-07-27 UTC."],[],[],null,["# KnownFailurePreparer\n====================\n\n\n`\npublic\n\n\nclass\nKnownFailurePreparer\n`\n\n\n`\n\n\n`\n\n`\n\nextends `[BaseTargetPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseTargetPreparer.html)`\n\n\n`\n\n`\n\n\nimplements\n\n`[IConfigurationReceiver](../../../../../../reference/tradefed/com/android/tradefed/config/IConfigurationReceiver.html)`\n\n\n`\n\n|---|---|------------------------------------------------------|\n| java.lang.Object |||\n| ↳ | [com.android.tradefed.targetprep.BaseTargetPreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BaseTargetPreparer.html) ||\n| | ↳ | com.android.tradefed.targetprep.KnownFailurePreparer |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nTarget preparer to skip retrying known failure.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[KnownFailurePreparer](../../../../../../reference/tradefed/com/android/tradefed/targetprep/KnownFailurePreparer.html#KnownFailurePreparer())`() ` |\n\n| ### Public methods ||\n|---------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` void` | ` `[setConfiguration](../../../../../../reference/tradefed/com/android/tradefed/targetprep/KnownFailurePreparer.html#setConfiguration(com.android.tradefed.config.IConfiguration))`(`[IConfiguration](../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html)` configuration) ` Injects the [IConfiguration](../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html) in use. |\n| ` void` | ` `[setUp](../../../../../../reference/tradefed/com/android/tradefed/targetprep/KnownFailurePreparer.html#setUp(com.android.tradefed.invoker.TestInformation))`(`[TestInformation](../../../../../../reference/tradefed/com/android/tradefed/invoker/TestInformation.html)` testInfo) ` |\n\nPublic constructors\n-------------------\n\n### KnownFailurePreparer\n\n```\npublic KnownFailurePreparer ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic methods\n--------------\n\n### setConfiguration\n\n```\npublic void setConfiguration (IConfiguration configuration)\n```\n\nInjects the [IConfiguration](../../../../../../reference/tradefed/com/android/tradefed/config/IConfiguration.html) in use.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------------|-------------------------|\n| `configuration` | `IConfiguration` \u003cbr /\u003e |\n\n### setUp\n\n```\npublic void setUp (TestInformation testInfo)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|--------------------------|\n| `testInfo` | `TestInformation` \u003cbr /\u003e |\n\n| Throws ||\n|----------------------------------------------------------------------------------------------------------------------------------|---|\n| [BuildError](../../../../../../reference/tradefed/com/android/tradefed/targetprep/BuildError.html) | |\n| [DeviceNotAvailableException](../../../../../../reference/tradefed/com/android/tradefed/device/DeviceNotAvailableException.html) | |\n| [TargetSetupError](../../../../../../reference/tradefed/com/android/tradefed/targetprep/TargetSetupError.html) | |"]]