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.

סיכום

‫methods ציבוריים

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

שיטות מוגנות

boolean canCreateAdditionalProfiles(ITestDevice device, int numberOfUsers)

בודקת אם אפשר ליצור את מספר המשתמשים הרצוי.

‫methods ציבוריים

setUp

public void setUp (TestInformation testInfo)

פרמטרים
testInfo TestInformation

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

פרמטרים
testInfo TestInformation

e Throwable

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException

שיטות מוגנות

canCreateAdditionalProfiles

protected boolean canCreateAdditionalProfiles (ITestDevice device, 
                int numberOfUsers)

בודקת אם אפשר ליצור את מספר המשתמשים הרצוי.

פרמטרים
device ITestDevice

numberOfUsers int

החזרות
boolean

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException