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.
Organízate con las colecciones
Guarda y clasifica el contenido según tus preferencias.
SubprocesoEventHelper.TestEndedEventInfo
public static class SubprocessEventHelper.TestEndedEventInfo
extends SubprocessEventHelper.BaseTestEventInfo
Ayudante para información testEnded.
Resumen
Constructores públicos |
---|
TestEndedEventInfo (String className, String testName, runMetrics) TestEndedEventInfo (String className, String testName, runMetrics) |
TestEndedEventInfo (String className, String testName, Long endTime, runMetrics) TestEndedEventInfo (String className, String testName, Long endTime, runMetrics) Cree un objeto de evento para representar la devolución de llamada testEnded. |
TestEndedEventInfo (JSONObject jsonObject) Cree y complete un objeto de evento para testEnded desde un JSON. |
Campos
mEndTime
public Long mEndTime
mRunMetrics
public mRunMetrics
Constructores públicos
PruebaEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
runMetrics)
Parámetros |
---|
className | String |
testName | String |
runMetrics | |
PruebaEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
Long endTime,
runMetrics)
Cree un objeto de evento para representar la devolución de llamada testEnded.
Parámetros |
---|
className | String : el nombre de clase de las pruebas. |
testName | String : el nombre de las pruebas. |
endTime | Long : la marca de tiempo en la que finalizó la prueba (de System.currentTimeMillis() ) |
runMetrics | : las métricas reportadas por la prueba. |
PruebaEndedEventInfo
public TestEndedEventInfo (JSONObject jsonObject)
Cree y complete un objeto de evento para testEnded desde un JSON.
Parámetros |
---|
jsonObject | JSONObject |
Métodos protegidos
obtenerNewJson
protected JSONObject getNewJson ()
El contenido y el código de ejemplo de esta página están sujetos a las licencias que se describen en la licencia de contenido. Java y OpenJDK son marcas registradas de Oracle o sus entidades asociadas.
Última actualización: 2023-12-01 (UTC).
[[["Es fácil de entender","easyToUnderstand","thumb-up"],["Me ofreció una solución al problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Me falta la información que necesito","missingTheInformationINeed","thumb-down"],["Es demasiado complicado o hay demasiados pasos","tooComplicatedTooManySteps","thumb-down"],["Está obsoleto","outOfDate","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Problema de muestras o código","samplesCodeIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2023-12-01 (UTC)."],[],[],null,["# SubprocessEventHelper.TestEndedEventInfo\n========================================\n\n\n`\npublic\nstatic\n\n\nclass\nSubprocessEventHelper.TestEndedEventInfo\n`\n\n\n`\n\n\n`\n\n`\n\nextends `[SubprocessEventHelper.BaseTestEventInfo](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.BaseTestEventInfo.html)`\n\n\n`\n\n`\n\n\n`\n\n|---|---|--------------------------------------------------------------------|\n| java.lang.Object |||\n| ↳ | [com.android.tradefed.util.SubprocessEventHelper.BaseTestEventInfo](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.BaseTestEventInfo.html) ||\n| | ↳ | com.android.tradefed.util.SubprocessEventHelper.TestEndedEventInfo |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nHelper for testEnded information.\n\nSummary\n-------\n\n| ### Fields ||\n|----------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| ` public Long` | [mEndTime](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#mEndTime) |\n| ` public ` | [mRunMetrics](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#mRunMetrics) |\n\n| ### Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[TestEndedEventInfo](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#TestEndedEventInfo(org.json.JSONObject))`(JSONObject jsonObject) ` Create and populate and event object for testEnded from a JSON. |\n| ` `[TestEndedEventInfo](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#TestEndedEventInfo(java.lang.String,%20java.lang.String,%20java.lang.Long,%20\u003cany\u003e))`(String className, String testName, Long endTime, ` runMetrics) Create an event object to represent the testEnded callback. |\n| ` `[TestEndedEventInfo](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#TestEndedEventInfo(java.lang.String,%20java.lang.String,%20\u003cany\u003e))`(String className, String testName, ` runMetrics) |\n\n| ### Protected methods ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` JSONObject` | ` `[getNewJson](../../../../../../reference/tradefed/com/android/tradefed/util/SubprocessEventHelper.TestEndedEventInfo.html#getNewJson())`() ` |\n\nFields\n------\n\n### mEndTime\n\n```\npublic Long mEndTime\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n### mRunMetrics\n\n```\npublic mRunMetrics\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nPublic constructors\n-------------------\n\n### TestEndedEventInfo\n\n```\npublic TestEndedEventInfo (JSONObject jsonObject)\n```\n\nCreate and populate and event object for testEnded from a JSON.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|---------------------|\n| `jsonObject` | `JSONObject` \u003cbr /\u003e |\n\n| Throws ||\n|-----------------|---|\n| `JSONException` | |\n\n### TestEndedEventInfo\n\n```\npublic TestEndedEventInfo (String className, \n String testName, \n Long endTime, \n runMetrics)\n```\n\nCreate an event object to represent the testEnded callback.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `className` | `String`: the classname of the tests \u003cbr /\u003e |\n| `testName` | `String`: the name of the tests \u003cbr /\u003e |\n| `endTime` | `Long`: the timestamp at which the test ended (from [System.currentTimeMillis()](../../../../../../reference/tradefed/java/lang/System.html#currentTimeMillis())) \u003cbr /\u003e |\n| `runMetrics` | : the metrics reported by the test. \u003cbr /\u003e |\n\n### TestEndedEventInfo\n\n```\npublic TestEndedEventInfo (String className, \n String testName, \n runMetrics)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|--------------|-----------------|\n| `className` | `String` \u003cbr /\u003e |\n| `testName` | `String` \u003cbr /\u003e |\n| `runMetrics` | \u003cbr /\u003e |\n\nProtected methods\n-----------------\n\n### getNewJson\n\n```\nprotected JSONObject getNewJson ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|--------------|--------|\n| `JSONObject` | \u003cbr /\u003e |"]]