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.
SkipReason
public
class
SkipReason
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.result.skipped.SkipReason
|
Fornisci un motivo e i relativi metadati per saltare un test.
Riepilogo
Costruttori pubblici
SkipReason
public SkipReason (String message,
SkipReason.DemotionTrigger trigger)
Parametri |
message |
String |
trigger |
SkipReason.DemotionTrigger |
SkipReason
public SkipReason (String message,
SkipReason.DemotionTrigger trigger,
String bugId)
Parametri |
message |
String |
trigger |
SkipReason.DemotionTrigger |
bugId |
String |
SkipReason
public SkipReason (String message,
String trigger)
Parametri |
message |
String |
trigger |
String |
SkipReason
public SkipReason (String message,
String trigger,
String bugId)
Parametri |
message |
String |
trigger |
String |
bugId |
String |
Metodi pubblici
getBugId
public String getBugId ()
Restituisce l'ID bug associato allo stato di ignoramento. Facoltativo.
getReason
public String getReason ()
Restituisce il motivo associato allo stato di ignoramento.
getTrigger
public String getTrigger ()
Restituisce l'attivatore associato allo stato di ignoramento.
toString
public String toString ()
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,["# SkipReason\n==========\n\n\n`\npublic\n\n\nclass\nSkipReason\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|------------------------------------------------|\n| java.lang.Object ||\n| ↳ | com.android.tradefed.result.skipped.SkipReason |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nProvide a reason and its metadata for skipping a test.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20com.android.tradefed.result.skipped.SkipReason.DemotionTrigger))`(String message, `[SkipReason.DemotionTrigger](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.DemotionTrigger.html)` trigger) ` |\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20com.android.tradefed.result.skipped.SkipReason.DemotionTrigger,%20java.lang.String))`(String message, `[SkipReason.DemotionTrigger](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.DemotionTrigger.html)` trigger, String bugId) ` |\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20java.lang.String))`(String message, String trigger) ` |\n| ` `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#SkipReason(java.lang.String,%20java.lang.String,%20java.lang.String))`(String message, String trigger, String bugId) ` |\n\n| ### Public methods ||\n|---------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` static `[SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html) | ` `[fromString](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#fromString(java.lang.String))`(String skipReasonMessage) ` Parses [toString()](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#toString()) into a [SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html). |\n| ` String` | ` `[getBugId](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#getBugId())`() ` Returns the bug id associated with skip status. |\n| ` String` | ` `[getReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#getReason())`() ` Returns the reason associated with the skip status. |\n| ` String` | ` `[getTrigger](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#getTrigger())`() ` Returns the trigger associated with the skip status. |\n| ` String` | ` `[toString](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#toString())`() ` |\n\nPublic constructors\n-------------------\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n SkipReason.DemotionTrigger trigger)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-------------------------------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `SkipReason.DemotionTrigger` \u003cbr /\u003e |\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n SkipReason.DemotionTrigger trigger, \n String bugId)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-------------------------------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `SkipReason.DemotionTrigger` \u003cbr /\u003e |\n| `bugId` | `String` \u003cbr /\u003e |\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n String trigger)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `String` \u003cbr /\u003e |\n\n### SkipReason\n\n```\npublic SkipReason (String message, \n String trigger, \n String bugId)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------|\n| `message` | `String` \u003cbr /\u003e |\n| `trigger` | `String` \u003cbr /\u003e |\n| `bugId` | `String` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### fromString\n\n```\npublic static SkipReason fromString (String skipReasonMessage)\n```\n\nParses [toString()](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html#toString()) into a [SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------------|-----------------|\n| `skipReasonMessage` | `String` \u003cbr /\u003e |\n\n| Returns ||\n|-----------------------------------------------------------------------------------------------------------|--------|\n| [SkipReason](../../../../../../../reference/tradefed/com/android/tradefed/result/skipped/SkipReason.html) | \u003cbr /\u003e |\n\n### getBugId\n\n```\npublic String getBugId ()\n```\n\nReturns the bug id associated with skip status. Optional.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getReason\n\n```\npublic String getReason ()\n```\n\nReturns the reason associated with the skip status.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getTrigger\n\n```\npublic String getTrigger ()\n```\n\nReturns the trigger associated with the skip status.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### toString\n\n```\npublic String toString ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |"]]