PushFilePreparer
public
class
PushFilePreparer
extends BaseTargetPreparer
implements
IAbiReceiver,
IDiscoverDependencies,
IInvocationContextReceiver
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.PushFilePreparer | |
ITargetPreparer שמנסה לדחוף מספר כלשהו של קבצים מכל נתיב מארח לכל נתיב מכשיר.
צריך לבצע את הפעולה הזו *אחרי* שמיישמים את הקובץ החדש של ה-build, ו *אחרי* שמריצים את 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()
האם לבטל את הפעולה במקרה של כשל בהעברה (push). |
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: פרטי הארטיפקט של ה-build |
fileName |
String: נתיב הקובץ היחסי שצריך לפתור |
| החזרות | |
|---|---|
File |
הקובץ מהספריות של פרטי ה-build או של תרחישי הבדיקה |
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
| פרמטרים | |
|---|---|
invocationContext |
IInvocationContext |
setUp
public void setUp (TestInformation testInfo)
| פרמטרים | |
|---|---|
testInfo |
TestInformation |
| זריקות | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
shouldAbortOnFailure
public boolean shouldAbortOnFailure ()
האם לבטל את הפעולה במקרה של כשל בהעברה (push).
| החזרות | |
|---|---|
boolean |
|
shouldRemountSystem
public boolean shouldRemountSystem ()
| החזרות | |
|---|---|
boolean |
|
shouldRemountVendor
public boolean shouldRemountVendor ()
| החזרות | |
|---|---|
boolean |
|
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
| פרמטרים | |
|---|---|
testInfo |
TestInformation |
e |
Throwable |
| זריקות | |
|---|---|
DeviceNotAvailableException |
|