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 |