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