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