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 (אם הוא מופעל)

סיכום

‫constructors ציבוריים

PushFilePreparer()

‫methods ציבוריים

IAbi getAbi()

final Map<String, File> getPushSpecs(ITestDevice device)

יוצרים את רשימת הקבצים שרוצים להעביר.

boolean isCleanUpEnabled()
Set<String> reportDependencies()
File resolveRelativeFilePath(IBuildInfo buildInfo, String fileName)

פתרון נתיב קובץ יחסי באמצעות IBuildInfo וספריות של תרחישי בדיקה.

void setAbi(IAbi abi)

void setInvocationContext(IInvocationContext invocationContext)

void setUp(TestInformation testInfo)

boolean shouldAbortOnFailure()

האם לבטל את הפעולה במקרה של כשל בדחיפה.

boolean shouldRemountSystem()
boolean shouldRemountVendor()
void tearDown(TestInformation testInfo, Throwable e)

‫constructors ציבוריים

PushFilePreparer

public PushFilePreparer ()

‫methods ציבוריים

getAbi

public IAbi getAbi ()

החזרות
IAbi

getPushSpecs

public final Map<String, File> getPushSpecs (ITestDevice device)

יוצרים את רשימת הקבצים שרוצים להעביר.

פרמטרים
device ITestDevice

החזרות
Map<String, File>

הקפצת הודעות שגיאה (throw)
TargetSetupError

isCleanUpEnabled

public boolean isCleanUpEnabled ()

החזרות
boolean

reportDependencies

public Set<String> reportDependencies ()

החזרות
Set<String>

resolveRelativeFilePath

public File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

פתרון נתיב קובץ יחסי באמצעות IBuildInfo וספריות של תרחישי בדיקה.

פרמטרים
buildInfo IBuildInfo: פרטי פריט המידע שנוצר בתהליך הפיתוח

fileName String: נתיב יחסי לקובץ שצריך לפתור

החזרות
File הקובץ מהספריות של פרטי הגרסה או של תרחישי הבדיקה

setAbi

public void setAbi (IAbi abi)

פרמטרים
abi IAbi

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

פרמטרים
invocationContext IInvocationContext

setUp

public void setUp (TestInformation testInfo)

פרמטרים
testInfo TestInformation

הקפצת הודעות שגיאה (throw)
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

הקפצת הודעות שגיאה (throw)
DeviceNotAvailableException