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)

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

公用方法

setUp

public void setUp (TestInformation testInfo)

參數
testInfo TestInformation

擲回
DeviceNotAvailableException
TargetSetupError

tearDown

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