CompanionAllocator

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()

وصف DeviceSelectionOptions للجهاز المصاحب

وظائف الإنشاء العامة

CompanionAllocator

public CompanionAllocator ()

الطرق العامة

setUp

public void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

لإعداد الجهاز

سيؤدي التنفيذ الداخلي لهذه الطريقة إلى طلب جهاز مصاحب وتخصيصه.

المعلمات
device ITestDevice

buildInfo IBuildInfo

عمليات الرمي
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

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

المعلمات
device ITestDevice

buildInfo IBuildInfo

e Throwable

عمليات الرمي
DeviceNotAvailableException

الطرق المحمية

getCompanionDeviceSelectionOptions

protected abstract DeviceSelectionOptions getCompanionDeviceSelectionOptions ()

وصف DeviceSelectionOptions للجهاز المصاحب

المرتجعات
DeviceSelectionOptions