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 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)

เครื่องมือสร้างสาธารณะ

PushFilePreparer

public PushFilePreparer ()

เมธอดสาธารณะ

getAbi

public IAbi getAbi ()

การคืนสินค้า
IAbi

getPushSpecs

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

สร้างรายการไฟล์ที่จะพุช

พารามิเตอร์
device ITestDevice

การคืนสินค้า
Map<String, File>

ส่ง
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

ส่ง
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