自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
SubprocessEventHelper.TestEndedEventInfo
public
static
class
SubprocessEventHelper.TestEndedEventInfo
extends SubprocessEventHelper.BaseTestEventInfo
testEnded 信息的辅助程序。
摘要
字段
mEndTime
public Long mEndTime
mRunMetrics
public mRunMetrics
公共构造函数
TestEndedEventInfo
public TestEndedEventInfo (JSONObject jsonObject)
从 JSON 创建并填充 testEnded 的事件对象。
TestEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
Long endTime,
runMetrics)
创建一个事件对象来表示 testEnded 回调。
TestEndedEventInfo
public TestEndedEventInfo (String className,
String testName,
runMetrics)
参数 |
className |
String |
testName |
String |
runMetrics |
|
受保护的方法
getNewJson
protected JSONObject getNewJson ()
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-27。"],[],[],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 |"]]