自 2025 年 3 月 27 日起,我们建议您使用 android-latest-release
而非 aosp-main
构建 AOSP 并为其做出贡献。如需了解详情,请参阅 AOSP 的变更。
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
MoblyYamlResultParser
public
class
MoblyYamlResultParser
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.testtype.mobly.MoblyYamlResultParser
|
Mobly yaml 测试结果解析器。
摘要
公共构造函数
MoblyYamlResultParser
public MoblyYamlResultParser (ITestInvocationListener listener,
String runName,
boolean reportRunStart)
参数 |
listener |
ITestInvocationListener |
runName |
String |
reportRunStart |
boolean |
公共方法
getRunFailed
public boolean getRunFailed ()
public boolean parse (InputStream inputStream)
参数 |
inputStream |
InputStream |
受保护的方法
reportToListeners
protected void reportToListeners ( listeners,
resultCache)
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-27。
[null,null,["最后更新时间 (UTC):2025-07-27。"],[],[],null,["# MoblyYamlResultParser\n=====================\n\n\n`\npublic\n\n\nclass\nMoblyYamlResultParser\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.testtype.mobly.MoblyYamlResultParser |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nMobly yaml test results parser.\n\nSummary\n-------\n\n| ### Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| ` `[MoblyYamlResultParser](../../../../../../../reference/tradefed/com/android/tradefed/testtype/mobly/MoblyYamlResultParser.html#MoblyYamlResultParser(com.android.tradefed.result.ITestInvocationListener,%20java.lang.String,%20boolean))`(`[ITestInvocationListener](../../../../../../../reference/tradefed/com/android/tradefed/result/ITestInvocationListener.html)` listener, String runName, boolean reportRunStart) ` |\n\n| ### Public methods ||\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` boolean` | ` `[getRunFailed](../../../../../../../reference/tradefed/com/android/tradefed/testtype/mobly/MoblyYamlResultParser.html#getRunFailed())`() ` |\n| ` boolean` | ` `[parse](../../../../../../../reference/tradefed/com/android/tradefed/testtype/mobly/MoblyYamlResultParser.html#parse(InputStream))`(InputStream inputStream) ` |\n\n| ### Protected methods ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` `[IMoblyYamlResultHandler.ITestResult](../../../../../../../reference/tradefed/com/android/tradefed/testtype/mobly/IMoblyYamlResultHandler.ITestResult.html) | ` `[parseDocumentMap](../../../../../../../reference/tradefed/com/android/tradefed/testtype/mobly/MoblyYamlResultParser.html#parseDocumentMap(\u003cany\u003e))`(` docMap) |\n| ` void` | ` `[reportToListeners](../../../../../../../reference/tradefed/com/android/tradefed/testtype/mobly/MoblyYamlResultParser.html#reportToListeners(\u003cany\u003e,%20\u003cany\u003e))`(` listeners, resultCache) |\n\nPublic constructors\n-------------------\n\n### MoblyYamlResultParser\n\n```\npublic MoblyYamlResultParser (ITestInvocationListener listener, \n String runName, \n boolean reportRunStart)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------------|----------------------------------|\n| `listener` | `ITestInvocationListener` \u003cbr /\u003e |\n| `runName` | `String` \u003cbr /\u003e |\n| `reportRunStart` | `boolean` \u003cbr /\u003e |\n\nPublic methods\n--------------\n\n### getRunFailed\n\n```\npublic boolean getRunFailed ()\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n### parse\n\n```\npublic boolean parse (InputStream inputStream)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|----------------------|\n| `inputStream` | `InputStream` \u003cbr /\u003e |\n\n| Returns ||\n|-----------|--------|\n| `boolean` | \u003cbr /\u003e |\n\n| Throws ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [MoblyYamlResultHandlerFactory.InvalidResultTypeException](../../../../../../../reference/tradefed/com/android/tradefed/testtype/mobly/MoblyYamlResultHandlerFactory.InvalidResultTypeException.html) | |\n\nProtected methods\n-----------------\n\n### parseDocumentMap\n\n```\nprotected IMoblyYamlResultHandler.ITestResult parseDocumentMap ( docMap)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|----------|--------|\n| `docMap` | \u003cbr /\u003e |\n\n| Returns ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------|--------|\n| [IMoblyYamlResultHandler.ITestResult](../../../../../../../reference/tradefed/com/android/tradefed/testtype/mobly/IMoblyYamlResultHandler.ITestResult.html) | \u003cbr /\u003e |\n\n| Throws ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [MoblyYamlResultHandlerFactory.InvalidResultTypeException](../../../../../../../reference/tradefed/com/android/tradefed/testtype/mobly/MoblyYamlResultHandlerFactory.InvalidResultTypeException.html) | |\n\n### reportToListeners\n\n```\nprotected void reportToListeners ( listeners, \n resultCache)\n```\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|--------|\n| `listeners` | \u003cbr /\u003e |\n| `resultCache` | \u003cbr /\u003e |"]]