切换用户目标准备器
public class SwitchUserTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.SwitchUserTargetPreparer |
一个ITargetPreparer
,用于在setUp中切换到指定的用户类型。默认保留当前用户,不进行切换。
尝试通过切换回执行前的当前用户来恢复设备用户状态。
概括
公共构造函数 | |
---|---|
SwitchUserTargetPreparer () |
公共方法 | |
---|---|
void | setUp ( TestInformation testInformation) |
void | tearDown ( TestInformation testInformation, Throwable e) |
公共构造函数
切换用户目标准备器
public SwitchUserTargetPreparer ()
公共方法
设置
public void setUp (TestInformation testInformation)
参数 | |
---|---|
testInformation | TestInformation |
投掷 | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInformation, Throwable e)
参数 | |
---|---|
testInformation | TestInformation |
e | Throwable |
投掷 | |
---|---|
DeviceNotAvailableException |