ProfileTargetPreparer

public abstract class ProfileTargetPreparer
extends BaseTargetPreparer

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


Podstawowa klasa do konfigurowania przygotowującego docelowego dla dowolnego użytkownika profilu android.os.usertype.profile.XXX.

Podsumowanie

Metody publiczne

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

Chronione metody

boolean canCreateAdditionalUsers(ITestDevice device, int numberOfUsers)

Sprawdzanie, czy można utworzyć żądaną liczbę użytkowników.

Metody publiczne

setUp

public void setUp (TestInformation testInfo)

Parametry
testInfo TestInformation

Rzuty
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Parametry
testInfo TestInformation

e Throwable

Rzuty
DeviceNotAvailableException

Chronione metody

canCreateAdditionalUsers

protected boolean canCreateAdditionalUsers (ITestDevice device, 
                int numberOfUsers)

Sprawdzanie, czy można utworzyć żądaną liczbę użytkowników.

Parametry
device ITestDevice

numberOfUsers int

Zwroty
boolean

Rzuty
DeviceNotAvailableException