設定檔目標準備器

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

受保護的方法

可以創建其他用戶

protected boolean canCreateAdditionalUsers (ITestDevice device, 
                int numberOfUsers)

檢查是否可以建立所需數量的使用者。

參數
device ITestDevice

numberOfUsers int

退貨
boolean

投擲
DeviceNotAvailableException