संग्रह की मदद से व्यवस्थित रहें अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.

पुशफाइल तैयार करने वाला

public class PushFilePreparer
extends BaseTargetPreparer implements IAbiReceiver , IInvocationContextReceiver , IDiscoverDependencies

java.lang.ऑब्जेक्ट
मैं com.android.tradefed.targetprep.BaseTargetPreparer
मैं com.android.tradefed.targetprep.PushFilePreparer


एक ITargetPreparer जो किसी भी होस्ट पथ से किसी भी डिवाइस पथ पर किसी भी संख्या में फ़ाइलों को पुश करने का प्रयास करता है।

एक नया बिल्ड फ्लैश होने के बाद * के बाद किया जाना चाहिए, और डिवाइससेटअप चलाने के बाद * के बाद (यदि सक्षम है)

सारांश

सार्वजनिक निर्माणकर्ता

PushFilePreparer ()

सार्वजनिक तरीके

IAbi getAbi ()

final getPushSpecs ( DeviceDescriptor descriptor)

पुश की जाने वाली फाइलों की सूची बनाएं।

reportDependencies ()
File resolveRelativeFilePath ( IBuildInfo buildInfo, String fileName)

IBuildInfo और परीक्षण केस निर्देशिकाओं के माध्यम से सापेक्ष फ़ाइल पथ को हल करें।

void setAbi ( IAbi abi)

void setInvocationContext ( IInvocationContext invocationContext)

void setUp ( TestInformation testInfo)

boolean shouldAbortOnFailure ()

पुश विफलता पर निरस्त करना है या नहीं।

void tearDown ( TestInformation testInfo, Throwable e)

सार्वजनिक निर्माणकर्ता

पुशफाइल तैयार करने वाला

public PushFilePreparer ()

सार्वजनिक तरीके

getAbi

public IAbi getAbi ()

रिटर्न
IAbi

getPushSpecs

public final  getPushSpecs (DeviceDescriptor descriptor)

पुश की जाने वाली फाइलों की सूची बनाएं।

मापदंडों
descriptor DeviceDescriptor

रिटर्न

फेंकता
TargetSetupError

रिपोर्ट निर्भरता

public  reportDependencies ()

रिटर्न

रिज़ॉल्व रिलेटिवफाइलपाथ

public File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

IBuildInfo और परीक्षण केस निर्देशिकाओं के माध्यम से सापेक्ष फ़ाइल पथ को हल करें।

मापदंडों
buildInfo IBuildInfo : बिल्ड आर्टिफैक्ट जानकारी

fileName String : सापेक्ष फ़ाइल पथ को हल किया जाना है

रिटर्न
File बिल्ड जानकारी या परीक्षण मामलों की निर्देशिका से फ़ाइल

सेटअबी

public void setAbi (IAbi abi)

मापदंडों
abi IAbi

सेटइनवोकेशनकॉन्टेक्स्ट

public void setInvocationContext (IInvocationContext invocationContext)

मापदंडों
invocationContext IInvocationContext

स्थापित करना

public void setUp (TestInformation testInfo)

मापदंडों
testInfo TestInformation

फेंकता
BuildError
DeviceNotAvailableException
TargetSetupError

shouldAbortOnFailure

public boolean shouldAbortOnFailure ()

पुश विफलता पर निरस्त करना है या नहीं।

रिटर्न
boolean

चीथड़े कर दो

public void tearDown (TestInformation testInfo, 
                Throwable e)

मापदंडों
testInfo TestInformation

e Throwable

फेंकता
DeviceNotAvailableException