PushFilePreparer
public
class
PushFilePreparer
extends BaseTargetPreparer
implements
IAbiReceiver,
IDiscoverDependencies,
IInvocationContextReceiver
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.PushFilePreparer |
ऐसा ITargetPreparer
जो किसी भी होस्ट पाथ से किसी भी डिवाइस पाथ पर, जितनी चाहे उतनी फ़ाइलें पुश करने की कोशिश करता है.
यह कार्रवाई, नया बिल्ड फ़्लैश करने और DeviceSetup को चलाने (अगर चालू हो) *के बाद* की जानी चाहिए
खास जानकारी
पब्लिक कंस्ट्रक्टर | |
---|---|
PushFilePreparer()
|
सार्वजनिक तरीके | |
---|---|
IAbi
|
getAbi()
|
final
|
getPushSpecs(ITestDevice device)
उन फ़ाइलों की सूची बनाएं जिन्हें पुश करना है. |
boolean
|
isCleanUpEnabled()
|
|
reportDependencies()
|
File
|
resolveRelativeFilePath(IBuildInfo buildInfo, String fileName)
|
void
|
setAbi(IAbi abi)
|
void
|
setInvocationContext(IInvocationContext invocationContext)
|
void
|
setUp(TestInformation testInfo)
|
boolean
|
shouldAbortOnFailure()
पुश करने में गड़बड़ी होने पर, प्रोसेस को रोकना है या नहीं. |
boolean
|
shouldRemountSystem()
|
boolean
|
shouldRemountVendor()
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
पब्लिक कंस्ट्रक्टर
PushFilePreparer
public PushFilePreparer ()
सार्वजनिक तरीके
getPushSpecs
public finalgetPushSpecs (ITestDevice device)
उन फ़ाइलों की सूची बनाएं जिन्हें पुश करना है.
पैरामीटर | |
---|---|
device |
ITestDevice |
रिटर्न | |
---|---|
|
थ्रो | |
---|---|
TargetSetupError |
isCleanUpEnabled
public boolean isCleanUpEnabled ()
रिटर्न | |
---|---|
boolean |
reportDependencies
publicreportDependencies ()
रिटर्न | |
---|---|
|
resolveRelativeFilePath
public File resolveRelativeFilePath (IBuildInfo buildInfo, String fileName)
IBuildInfo
और टेस्ट केस डायरेक्ट्री की मदद से, रिलेटिव फ़ाइल पाथ को हल करें.
पैरामीटर | |
---|---|
buildInfo |
IBuildInfo : बिल्ड आर्टफ़ैक्ट की जानकारी |
fileName |
String : रिलेटिव फ़ाइल पाथ, जिसे हल करना है |
रिटर्न | |
---|---|
File |
बिल्ड की जानकारी या टेस्ट केस डायरेक्ट्री से ली गई फ़ाइल |
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
पैरामीटर | |
---|---|
invocationContext |
IInvocationContext |
setUp
public void setUp (TestInformation testInfo)
पैरामीटर | |
---|---|
testInfo |
TestInformation |
थ्रो | |
---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
shouldAbortOnFailure
public boolean shouldAbortOnFailure ()
पुश करने में गड़बड़ी होने पर, प्रोसेस को रोकना है या नहीं.
रिटर्न | |
---|---|
boolean |
shouldRemountSystem
public boolean shouldRemountSystem ()
रिटर्न | |
---|---|
boolean |
shouldRemountVendor
public boolean shouldRemountVendor ()
रिटर्न | |
---|---|
boolean |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
पैरामीटर | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
थ्रो | |
---|---|
DeviceNotAvailableException |