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)

แก้ปัญหาเส้นทางไฟล์แบบสัมพัทธ์ผ่านไดเรกทอรี 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

reportDependencies

public  reportDependencies ()

คิกรีเทิร์น

resolveRelativeFilePath

public File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

แก้ปัญหาเส้นทางไฟล์แบบสัมพัทธ์ผ่านไดเรกทอรี IBuildInfo และไดเรกทอรี Test Case

พารามิเตอร์
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

การโยน
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