DeviceOwnerTargetPreparer

public class DeviceOwnerTargetPreparer
extends BaseTargetPreparer implements IConfigurationReceiver

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.DeviceOwnerTargetPreparer


ITargetPreparer thiết lập thành phần chủ sở hữu thiết bị.

Chủ sở hữu thiết bị và hồ sơ hiện tại cũng như người dùng phụ sẽ bị xoá trước khi thiết lập chủ sở hữu thiết bị mới.

Trong quá trình phân tích, chủ sở hữu thiết bị sẽ bị xoá.

Tóm tắt

Hàm khởi tạo công khai

DeviceOwnerTargetPreparer()

Phương thức công khai

void setConfiguration(IConfiguration configuration)

Chèn IConfiguration đang sử dụng.

void setUp(TestInformation testInfo)
void tearDown(TestInformation testInfo, Throwable e)

Hàm khởi tạo công khai

DeviceOwnerTargetPreparer

public DeviceOwnerTargetPreparer ()

Phương thức công khai

setConfiguration

public void setConfiguration (IConfiguration configuration)

Chèn IConfiguration đang sử dụng.

Tham số
configuration IConfiguration

setUp

public void setUp (TestInformation testInfo)

Tham số
testInfo TestInformation

Gửi
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Tham số
testInfo TestInformation

e Throwable

Gửi
DeviceNotAvailableException