رفيق التخصيص
public abstract class CompanionAllocator
extends BaseTargetPreparer
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.companion.CompanionAllocator |
فئة أساسية تهتم بتخصيص وتحرير الجهاز المرافق
يجب تنفيذ getCompanionDeviceSelectionOptions()
لوصف المعايير اللازمة لتخصيص الجهاز المصاحب
ملخص
المنشأت العامة | |
---|---|
CompanionAllocator () |
الأساليب العامة | |
---|---|
void | setUp ( ITestDevice device, IBuildInfo buildInfo) يجهز الجهاز. |
void | tearDown ( ITestDevice device, IBuildInfo buildInfo, Throwable e) |
الطرق المحمية | |
---|---|
abstract DeviceSelectionOptions | getCompanionDeviceSelectionOptions () صِف خيار |
المنشأت العامة
رفيق التخصيص
public CompanionAllocator ()
الأساليب العامة
يثبت
public void setUp (ITestDevice device, IBuildInfo buildInfo)
يجهز الجهاز.
سيطلب التطبيق الداخلي لهذه الطريقة جهازًا مصاحبًا ويخصصه.
حدود | |
---|---|
device | ITestDevice |
buildInfo | IBuildInfo |
رميات | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
تمزيق
public void tearDown (ITestDevice device, IBuildInfo buildInfo, Throwable e)
حدود | |
---|---|
device | ITestDevice |
buildInfo | IBuildInfo |
e | Throwable |
رميات | |
---|---|
DeviceNotAvailableException |
الطرق المحمية
getCompanionDeviceSelectionOptions
protected abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions ()
صِف خيار DeviceSelectionOptions
للجهاز المرافق
عائدات | |
---|---|
DeviceSelectionOptions |