DeviceSettingChecker
public class DeviceSettingChecker
extends Object
implements ISystemStatusChecker
java.lang.Object |
↳ | com.android.tradefed.suite.checker.DeviceSettingChecker |
检查在模块运行期间设备设置是否已更改。
概括
公共建设者
DeviceSettingChecker
public DeviceSettingChecker ()
公开方法
postExecutionCheck
public StatusCheckerResult postExecutionCheck (ITestDevice device)
执行测试模块后,请检查系统状况。如果需要进行检查,则子类应重写此方法。实现必须返回一个boolean
值,以指示状态检查是否通过或失败。
投掷 |
---|
DeviceNotAvailableException | |
执行前检查
public StatusCheckerResult preExecutionCheck (ITestDevice device)
在执行测试模块之前,请检查系统状况。如果需要进行检查,则子类应重写此方法。实现必须返回一个boolean
值,以指示状态检查是否通过或失败。
强烈建议在模块执行后检查系统状态,此方法可用于在模块执行前缓存某些系统状态。
投掷 |
---|
DeviceNotAvailableException | |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]