PushFilePreparer
public
class
PushFilePreparer
extends BaseTargetPreparer
implements
IAbiReceiver,
IDiscoverDependencies,
IInvocationContextReceiver
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.PushFilePreparer |
İstenilen sayıda dosyayı herhangi bir ana makine yolundan herhangi bir cihaz yoluna göndermeye çalışan bir ITargetPreparer
.
Yeni bir derleme yüklendikten ve DeviceSetup çalıştırıldıktan (etkinse) *sonra* gerçekleştirilmelidir.
Özet
Herkese açık kurucular | |
---|---|
PushFilePreparer()
|
Herkese açık yöntemler | |
---|---|
IAbi
|
getAbi()
|
final
|
getPushSpecs(ITestDevice device)
Yayınlanacak dosyaların listesini oluşturun. |
boolean
|
isCleanUpEnabled()
|
|
reportDependencies()
|
File
|
resolveRelativeFilePath(IBuildInfo buildInfo, String fileName)
|
void
|
setAbi(IAbi abi)
|
void
|
setInvocationContext(IInvocationContext invocationContext)
|
void
|
setUp(TestInformation testInfo)
|
boolean
|
shouldAbortOnFailure()
İtme işlemi başarısız olduğunda işlemin iptal edilip edilmeyeceğini belirtir. |
boolean
|
shouldRemountSystem()
|
boolean
|
shouldRemountVendor()
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
Herkese açık kurucular
PushFilePreparer
public PushFilePreparer ()
Herkese açık yöntemler
getPushSpecs
public finalgetPushSpecs (ITestDevice device)
Yayınlanacak dosyaların listesini oluşturun.
Parametreler | |
---|---|
device |
ITestDevice |
İlerlemeler | |
---|---|
|
Atışlar | |
---|---|
TargetSetupError |
isCleanUpEnabled
public boolean isCleanUpEnabled ()
İlerlemeler | |
---|---|
boolean |
reportDependencies
publicreportDependencies ()
İlerlemeler | |
---|---|
|
resolveRelativeFilePath
public File resolveRelativeFilePath (IBuildInfo buildInfo, String fileName)
IBuildInfo
ve test durumları dizinleri aracılığıyla göreli dosya yolunu çözme.
Parametreler | |
---|---|
buildInfo |
IBuildInfo : derleme yapı bilgileri |
fileName |
String : Çözüme ulaştırılacak göreli dosya yolu |
İlerlemeler | |
---|---|
File |
derleme bilgileri veya test durumları dizinlerindeki dosya |
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
Parametreler | |
---|---|
invocationContext |
IInvocationContext |
setUp
public void setUp (TestInformation testInfo)
Parametreler | |
---|---|
testInfo |
TestInformation |
Atışlar | |
---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
shouldAbortOnFailure
public boolean shouldAbortOnFailure ()
İtme işlemi başarısız olduğunda işlemin iptal edilip edilmeyeceği.
İlerlemeler | |
---|---|
boolean |
shouldRemountSystem
public boolean shouldRemountSystem ()
İlerlemeler | |
---|---|
boolean |
shouldRemountVendor
public boolean shouldRemountVendor ()
İlerlemeler | |
---|---|
boolean |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
Parametreler | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
Atışlar | |
---|---|
DeviceNotAvailableException |