DeviceOwnerTargetPreparer
public class DeviceOwnerTargetPreparer
extends BaseTargetPreparer
implements IConfigurationReceiver
java.lang.객체 | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.DeviceOwnerTargetPreparer |
장치 소유자 구성 요소를 설정하는 ITargetPreparer
입니다.
기존 장치 및 프로필 소유자와 보조 사용자는 새 장치 소유자가 설정되기 전에 제거됩니다.
분해 시 장치 소유자가 제거됩니다.
요약
공개 생성자 | |
---|---|
DeviceOwnerTargetPreparer () |
공개 방법 | |
---|---|
void | setConfiguration ( IConfiguration configuration) 사용 중인 |
void | setUp ( TestInformation testInfo) |
void | tearDown ( TestInformation testInfo, Throwable e) |
공개 생성자
DeviceOwnerTargetPreparer
public DeviceOwnerTargetPreparer ()
공개 방법
setConfiguration
public void setConfiguration (IConfiguration configuration)
사용 중인 IConfiguration
주입합니다.
매개변수 | |
---|---|
configuration | IConfiguration |
설정
public void setUp (TestInformation testInfo)
매개변수 | |
---|---|
testInfo | TestInformation |
던지기 | |
---|---|
DeviceNotAvailableException | |
TargetSetupError |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
매개변수 | |
---|---|
testInfo | TestInformation |
e | Throwable |
던지기 | |
---|---|
DeviceNotAvailableException |