A partir del 27 de marzo de 2025, te recomendamos que uses android-latest-release
en lugar de aosp-main
para compilar y contribuir a AOSP. Para obtener más información, consulta Cambios en AOSP.
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
TestOption
public
class
TestOption
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.util.testmapping.TestOption
|
Almacena los detalles de la opción de prueba establecidos en un archivo TEST_MAPPING.
Resumen
Constructores públicos |
TestOption(String name, String value)
|
Constructores públicos
TestOption
public TestOption (String name,
String value)
Parámetros |
name |
String |
value |
String |
Métodos públicos
compareTo
public int compareTo (TestOption option)
Parámetros |
option |
TestOption |
equals
public boolean equals (Object obj)
getName
public String getName ()
getValue
public String getValue ()
hashCode
public int hashCode ()
isExclusive
public boolean isExclusive ()
Verifica si la opción se usa solo para excluir ciertas pruebas.
Estas son algunas opciones exclusivas de muestra:
exclude-filter
negative-testname-filter (GTest)
test-file-exclude-filter (AndroidJUnitTest)
exclude-annotation (AndroidJUnitTest)
Muestra |
boolean |
Es verdadero si la opción se usa solo para excluir ciertas pruebas. |
isInclusive
public boolean isInclusive ()
Verifica si la opción se usa para incluir solo ciertas pruebas.
Estas son algunas opciones inclusivas de muestra:
include-filter
positive-testname-filter (GTest)
test-file-include-filter (AndroidJUnitTest)
include-annotation (AndroidJUnitTest)
Muestra |
boolean |
Es verdadero si la opción se usa para incluir solo ciertas pruebas. |
toString
public String toString ()
El contenido y las muestras de código que aparecen en esta página están sujetas a las licencias que se describen en la Licencia de Contenido. Java y OpenJDK son marcas registradas de Oracle o sus afiliados.
Última actualización: 2025-07-27 (UTC)
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Falta la información que necesito","missingTheInformationINeed","thumb-down"],["Muy complicado o demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Desactualizado","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema con las muestras o los códigos","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-07-27 (UTC)"],[],[],null,["# TestOption\n==========\n\n\n`\npublic\n\n\nclass\nTestOption\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.util.testmapping.TestOption |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nStores the test option details set in a TEST_MAPPING file.\n\nSummary\n-------\n\n| ### Public constructors ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[TestOption](../../../../../../../reference/tradefed/com/android/tradefed/util/testmapping/TestOption.html#TestOption(java.lang.String,%20java.lang.String))`(String name, String value) ` |\n\n| ### Public methods ||\n|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` int` | ` `[compareTo](../../../../../../../reference/tradefed/com/android/tradefed/util/testmapping/TestOption.html#compareTo(com.android.tradefed.util.testmapping.TestOption))`(`[TestOption](../../../../../../../reference/tradefed/com/android/tradefed/util/testmapping/TestOption.html)` option) ` |\n| ` boolean` | ` `[equals](../../../../../../../reference/tradefed/com/android/tradefed/util/testmapping/TestOption.html#equals(java.lang.Object))`(Object obj) ` |\n| ` String` | ` `[getName](../../../../../../../reference/tradefed/com/android/tradefed/util/testmapping/TestOption.html#getName())`() ` |\n| ` String` | ` `[getValue](../../../../../../../reference/tradefed/com/android/tradefed/util/testmapping/TestOption.html#getValue())`() ` |\n| ` int` | ` `[hashCode](../../../../../../../reference/tradefed/com/android/tradefed/util/testmapping/TestOption.html#hashCode())`() ` |\n| ` boolean` | ` `[isExclusive](../../../../../../../reference/tradefed/com/android/tradefed/util/testmapping/TestOption.html#isExclusive())`() ` Check if the option is used to only exclude certain tests. |\n| ` boolean` | ` `[isInclusive](../../../../../../../reference/tradefed/com/android/tradefed/util/testmapping/TestOption.html#isInclusive())`() ` Check if the option is used to only include certain tests. |\n| ` String` | ` `[toString](../../../../../../../reference/tradefed/com/android/tradefed/util/testmapping/TestOption.html#toString())`() ` |\n\nPublic constructors\n-------------------\n\n### TestOption\n\n```\npublic TestOption (String name, \n String value)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|-----------------|\n| `name` | `String` \u003cbr /\u003e |\n| `value` | `String` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### compareTo\n\n```\npublic int compareTo (TestOption option)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|---------------------|\n| `option` | `TestOption` \u003cbr /\u003e |\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### equals\n\n```\npublic boolean equals (Object obj)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-------|-----------------|\n| `obj` | `Object` \u003cbr /\u003e |\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### getName\n\n```\npublic String getName ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### getValue\n\n```\npublic String getValue ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------|--------|\n| `String` | \u003cbr /\u003e |\n\n### hashCode\n\n```\npublic int hashCode ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-------|--------|\n| `int` | \u003cbr /\u003e |\n\n### isExclusive\n\n```\npublic boolean isExclusive ()\n```\n\nCheck if the option is used to only exclude certain tests.\n\nSome sample exclusive options are:\n\nexclude-filter\n\nnegative-testname-filter (GTest)\n\ntest-file-exclude-filter (AndroidJUnitTest)\n\nexclude-annotation (AndroidJUnitTest)\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|------------------------------------------------------------------|\n| `boolean` | true if the option is used to only exclude certain tests. \u003cbr /\u003e |\n\n### isInclusive\n\n```\npublic boolean isInclusive ()\n```\n\nCheck if the option is used to only include certain tests.\n\nSome sample inclusive options are:\n\ninclude-filter\n\npositive-testname-filter (GTest)\n\ntest-file-include-filter (AndroidJUnitTest)\n\ninclude-annotation (AndroidJUnitTest)\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|------------------------------------------------------------------|\n| `boolean` | true if the option is used to only include certain tests. \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 |"]]