Trình phân bổ đồng hành

public abstract class CompanionAllocator
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.companion.CompanionAllocator


Lớp cơ sở đảm nhiệm việc phân bổ và giải phóng thiết bị đồng hành

getCompanionDeviceSelectionOptions() nên được triển khai để mô tả các tiêu chí cần thiết để phân bổ thiết bị đồng hành

Bản tóm tắt

Nhà thầu xây dựng công cộng

CompanionAllocator ()

Phương pháp công khai

void setUp ( ITestDevice device, IBuildInfo buildInfo)

Thiết lập thiết bị.

void tearDown ( ITestDevice device, IBuildInfo buildInfo, Throwable e)

Phương pháp được bảo vệ

abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions ()

Mô tả DeviceSelectionOptions cho thiết bị đồng hành

Nhà thầu xây dựng công cộng

Trình phân bổ đồng hành

public CompanionAllocator ()

Phương pháp công khai

cài đặt

public void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Thiết lập thiết bị.

Việc triển khai nội bộ phương pháp này sẽ yêu cầu một thiết bị đồng hành và phân bổ nó.

Thông số
device ITestDevice

buildInfo IBuildInfo

Ném
BuildError
DeviceNotAvailableException
TargetSetupError

phá bỏ

public void tearDown (ITestDevice device, 
                IBuildInfo buildInfo, 
                Throwable e)

Thông số
device ITestDevice

buildInfo IBuildInfo

e Throwable

Ném
DeviceNotAvailableException

Phương pháp được bảo vệ

getCompanionDeviceSelectionOptions

protected abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions ()

Mô tả DeviceSelectionOptions cho thiết bị đồng hành

Trả lại
DeviceSelectionOptions