RunOnSystemUserTargetPreparer
public class RunOnSystemUserTargetPreparer
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.RunOnSystemUserTargetPreparer |
標記應在用戶(而不是當前用戶)上運行測試的ITargetPreparer
。
默認情況下,這將切換用戶,因此系統用戶位於前台。
在具有無頭系統用戶的設備上運行時,默認情況下不會切換用戶,但測試仍會在該用戶上運行。
概括
公共構造函數 | |
---|---|
RunOnSystemUserTargetPreparer () |
公共方法 | |
---|---|
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e) |
公共構造函數
RunOnSystemUserTargetPreparer
public RunOnSystemUserTargetPreparer ()
公共方法
設置
public void setUp (TestInformation testInfo)
參數 | |
---|---|
testInfo | TestInformation |
投擲 | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
拆除
public void tearDown (TestInformation testInfo, Throwable e)
參數 | |
---|---|
testInfo | TestInformation |
e | Throwable |
投擲 | |
---|---|
DeviceNotAvailableException |