ProfileTargetPreparer

public abstract class ProfileTargetPreparer
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.ProfileTargetPreparer


Lớp cơ sở để thiết lập trình chuẩn bị mục tiêu cho mọi người dùng hồ sơ android.os.usertype.profile.XXX.

Tóm tắt

Phương thức công khai

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

Phương thức được bảo vệ

boolean canCreateAdditionalUsers(ITestDevice device, int numberOfUsers)

Kiểm tra xem có thể tạo số lượng người dùng mong muốn hay không.

Phương thức công khai

setUp

public void setUp (TestInformation testInfo)

Tham số
testInfo TestInformation

Gửi
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Tham số
testInfo TestInformation

e Throwable

Gửi
DeviceNotAvailableException

Phương thức được bảo vệ

canCreateAdditionalUsers

protected boolean canCreateAdditionalUsers (ITestDevice device, 
                int numberOfUsers)

Kiểm tra xem có thể tạo số lượng người dùng mong muốn hay không.

Tham số
device ITestDevice

numberOfUsers int

Giá trị trả về
boolean

Gửi
DeviceNotAvailableException