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.
SubprocessEventHelper.TestEndedEventInfo
public
static
class
SubprocessEventHelper.TestEndedEventInfo
extends SubprocessEventHelper.BaseTestEventInfo
Ayuda para la información de testEnded.
Resumen
Constructores públicos |
TestEndedEventInfo(JSONObject jsonObject)
Crea y propaga un objeto de evento para testEnded a partir de un JSON.
|
TestEndedEventInfo(String className, String testName, Long endTime, runMetrics)
Crea un objeto de evento para representar la devolución de llamada de testEnded.
|
TestEndedEventInfo(String className, String testName, runMetrics)
|
Campos
mEndTime
public Long mEndTime
mRunMetrics
public mRunMetrics
Constructores públicos
TestEndedEventInfo
public TestEndedEventInfo (JSONObject jsonObject)
Crea y propaga un objeto de evento para testEnded a partir de un JSON.
Parámetros |
jsonObject |
JSONObject |
TestEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
Long endTime,
runMetrics)
Crea un objeto de evento para representar la devolución de llamada de testEnded.
Parámetros |
className |
String : Es el nombre de la clase de las pruebas. |
testName |
String : Es el nombre de las pruebas. |
endTime |
Long : La marca de tiempo en la que finalizó la prueba (de System.currentTimeMillis() ) |
runMetrics |
: Las métricas que informa la prueba. |
TestEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
runMetrics)
Parámetros |
className |
String |
testName |
String |
runMetrics |
|
Métodos protegidos
getNewJson
protected JSONObject getNewJson ()
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,["# 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 |"]]