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.
SubprocessEventHelper.TestEndedEventInfo
public
static
class
SubprocessEventHelper.TestEndedEventInfo
extends SubprocessEventHelper.BaseTestEventInfo
Auxiliar para informações de testEnded.
Resumo
Construtores públicos |
TestEndedEventInfo(JSONObject jsonObject)
Crie e preencha um objeto de evento para testEnded usando um JSON.
|
TestEndedEventInfo(String className, String testName, Long endTime, runMetrics)
Crie um objeto de evento para representar o callback de testEnded.
|
TestEndedEventInfo(String className, String testName, runMetrics)
|
Campos
mEndTime
public Long mEndTime
mRunMetrics
public mRunMetrics
Construtores públicos
TestEndedEventInfo
public TestEndedEventInfo (JSONObject jsonObject)
Crie e preencha um objeto de evento para testEnded usando um JSON.
Parâmetros |
jsonObject |
JSONObject |
TestEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
Long endTime,
runMetrics)
Crie um objeto de evento para representar o callback de testEnded.
Parâmetros |
className |
String : a classe dos testes |
testName |
String : o nome dos testes |
endTime |
Long : o carimbo de data/hora em que o teste foi encerrado (de System.currentTimeMillis() ) |
runMetrics |
: as métricas informadas pelo teste. |
TestEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
runMetrics)
Parâmetros |
className |
String |
testName |
String |
runMetrics |
|
Métodos protegidos
getNewJson
protected JSONObject getNewJson ()
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 2025-07-27 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 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 |"]]