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

受保護的方法

canCreateAdditionalProfiles

protected boolean canCreateAdditionalProfiles (ITestDevice device, 
                int numberOfUsers)

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

參數
device ITestDevice

numberOfUsers int

傳回
boolean

擲回
DeviceNotAvailableException