ProfileTargetPreparer

public abstract class ProfileTargetPreparer
extends BaseTargetPreparer

java.lang.object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.ProfileTargetPreparer


کلاس پایه برای تنظیم آماده‌کننده هدف برای هر کاربر نمایه android.os.usertype.profile.XXX .

خلاصه

روش های عمومی

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

روش های محافظت شده

boolean canCreateAdditionalUsers ( ITestDevice device, int numberOfUsers)

بررسی می کند که آیا امکان ایجاد تعداد مورد نظر کاربر وجود دارد یا خیر.

روش های عمومی

برپایی

public void setUp (TestInformation testInfo)

مولفه های
testInfo TestInformation

پرتاب می کند
DeviceNotAvailableException
TargetSetupError

پاره کردن

public void tearDown (TestInformation testInfo, 
                Throwable e)

مولفه های
testInfo TestInformation

e Throwable

پرتاب می کند
DeviceNotAvailableException

روش های محافظت شده

canCreateAdditionalUsers

protected boolean canCreateAdditionalUsers (ITestDevice device, 
                int numberOfUsers)

بررسی می کند که آیا امکان ایجاد تعداد مورد نظر کاربر وجود دارد یا خیر.

مولفه های
device ITestDevice

numberOfUsers int

برمی گرداند
boolean

پرتاب می کند
DeviceNotAvailableException