PushFilePreparer

public class PushFilePreparer
extends BaseTargetPreparer implements IAbiReceiver , IInvocationContextReceiver , IDiscoverDependencies

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)

פתרו נתיב קובץ יחסי באמצעות 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)

בנאים ציבוריים

PushFilePreparer

public PushFilePreparer ()

שיטות ציבוריות

getAbi

public IAbi getAbi ()

החזרות
IAbi

getPushSpecs

public final  getPushSpecs (ITestDevice device)

צור את רשימת הקבצים שיש לדחוף.

פרמטרים
device ITestDevice

החזרות

זורק
TargetSetupError

isCleanUpEnabled

public boolean isCleanUpEnabled ()

החזרות
boolean

דווח על תלות

public  reportDependencies ()

החזרות

resolveRelativeFilePath

public File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

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

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

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

החזרות
File הקובץ מתוך ספריות ה-build info או מקרי בדיקה

setAbi

public void setAbi (IAbi abi)

פרמטרים
abi IAbi

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

פרמטרים
invocationContext IInvocationContext

להכין

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

לקרוע

public void tearDown (TestInformation testInfo, 
                Throwable e)

פרמטרים
testInfo TestInformation

e Throwable

זורק
DeviceNotAvailableException