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.
Ignorar Razão
public class SkipReason
extends Object
java.lang.Object |
↳ | com.android.tradefed.result.skipped.SkipReason |
Forneça um motivo e seus metadados para ignorar um teste.
Resumo
Construtores públicos
Ignorar Razão
public SkipReason (String message,
String trigger)
Parâmetros |
---|
message | String |
trigger | String |
Ignorar Razão
public SkipReason (String message,
SkipReason.DemotionTrigger trigger)
Parâmetros |
---|
message | String |
trigger | SkipReason.DemotionTrigger |
Ignorar Razão
public SkipReason (String message,
SkipReason.DemotionTrigger trigger,
String bugId)
Parâmetros |
---|
message | String |
trigger | SkipReason.DemotionTrigger |
bugId | String |
Ignorar Razão
public SkipReason (String message,
String trigger,
String bugId)
Parâmetros |
---|
message | String |
trigger | String |
bugId | String |
Métodos públicos
getBugId
public String getBugId ()
Retorna o ID do bug associado ao status de salto. Opcional.
getReason
public String getReason ()
Retorna o motivo associado ao status de salto.
getTrigger
public String getTrigger ()
Retorna o gatilho associado ao status de salto.
para sequenciar
public String toString ()
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 2024-03-01 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 2024-03-01 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 |"]]