Đồng hànhAllocator
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 công cộng | |
---|---|
CompanionAllocator () |
Phương thức 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ả |
nhà thầu công cộng
Đồng hànhAllocator
public CompanionAllocator ()
Phương thức 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ổ thiết bị đó.
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 |