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

วิธีการสาธารณะ

รับอาบี

public IAbi getAbi ()

การส่งคืน
IAbi

getPushSpecs

public final  getPushSpecs (ITestDevice device)

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

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

การส่งคืน

ขว้าง
TargetSetupError

คือ CleanUpEnabled

public boolean isCleanUpEnabled ()

การส่งคืน
boolean

รายงานการพึ่งพา

public  reportDependencies ()

การส่งคืน

แก้ไข RelativeFilePath

public File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

แก้ไขเส้นทางไฟล์สัมพันธ์ผ่าน IBuildInfo และไดเร็กทอรีกรณีทดสอบ

พารามิเตอร์
buildInfo IBuildInfo : ข้อมูลการสร้างสิ่งประดิษฐ์

fileName String : เส้นทางไฟล์สัมพัทธ์ที่จะแก้ไข

การส่งคืน
File ไฟล์จากไดเร็กทอรีข้อมูลบิลด์หรือกรณีทดสอบ

เซตอาบี

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

ควรยกเลิกความล้มเหลว

public boolean shouldAbortOnFailure ()

ไม่ว่าจะยกเลิกเมื่อพุชล้มเหลวหรือไม่

การส่งคืน
boolean

ควร RemountSystem

public boolean shouldRemountSystem ()

การส่งคืน
boolean

ควร RemountVendor

public boolean shouldRemountVendor ()

การส่งคืน
boolean

การถอดออก

public void tearDown (TestInformation testInfo, 
                Throwable e)

พารามิเตอร์
testInfo TestInformation

e Throwable

ขว้าง
DeviceNotAvailableException