Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.

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ị xóa trước khi chủ sở hữu thiết bị mới được đặt.

Trong giọt nước mắt, chủ sở hữu thiết bị sẽ bị xóa.

Bản tóm tắt

Các nhà xây dựng công cộng

DeviceOwnerTargetPreparer ()

Phương pháp công khai

void setConfiguration ( IConfiguration configuration)

IConfiguration đang sử dụng.

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

Các nhà xây dựng công cộng

DeviceOwnerTargetPreparer

public DeviceOwnerTargetPreparer ()

Phương pháp công khai

setConfiguration

public void setConfiguration (IConfiguration configuration)

IConfiguration đang sử dụng.

Thông số
configuration IConfiguration

thành lập

public void setUp (TestInformation testInfo)

Thông số
testInfo TestInformation

Ném
DeviceNotAvailableException
TargetSetupError

phá bỏ

public void tearDown (TestInformation testInfo, 
                Throwable e)

Thông số
testInfo TestInformation

e Throwable

Ném
DeviceNotAvailableException