PushFilePreparer

public class PushFilePreparer
extends BaseTargetPreparer implements IAbiReceiver, IDiscoverDependencies, IInvocationContextReceiver

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.PushFilePreparer


ITargetPreparer cố gắng đẩy số lượng tệp bất kỳ từ đường dẫn máy chủ bất kỳ đến đường dẫn thiết bị bất kỳ.

Nên thực hiện *sau* khi cài đặt ROM bản dựng mới và *sau* khi chạy DeviceSetup (nếu được bật)

Tóm tắt

Hàm khởi tạo công khai

PushFilePreparer()

Phương thức công khai

IAbi getAbi()

final getPushSpecs(ITestDevice device)

Tạo danh sách tệp cần đẩy.

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

Giải quyết đường dẫn tệp tương đối thông qua thư mục IBuildInfo và thư mục trường hợp kiểm thử.

void setAbi(IAbi abi)

void setInvocationContext(IInvocationContext invocationContext)

void setUp(TestInformation testInfo)

boolean shouldAbortOnFailure()

Có huỷ khi đẩy không thành công hay không.

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

Hàm khởi tạo công khai

PushFilePreparer

public PushFilePreparer ()

Phương thức công khai

getAbi

public IAbi getAbi ()

Giá trị trả về
IAbi

getPushSpecs

public final  getPushSpecs (ITestDevice device)

Tạo danh sách tệp cần đẩy.

Tham số
device ITestDevice

Giá trị trả về

Gửi
TargetSetupError

isCleanUpEnabled

public boolean isCleanUpEnabled ()

Giá trị trả về
boolean

reportDependencies

public  reportDependencies ()

Giá trị trả về

resolveRelativeFilePath

public File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

Giải quyết đường dẫn tệp tương đối thông qua thư mục IBuildInfo và thư mục trường hợp kiểm thử.

Tham số
buildInfo IBuildInfo: thông tin cấu phần phần mềm bản dựng

fileName String: đường dẫn tệp tương đối cần được phân giải

Giá trị trả về
File tệp từ thư mục thông tin bản dựng hoặc thư mục trường hợp kiểm thử

setAbi

public void setAbi (IAbi abi)

Tham số
abi IAbi

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

Tham số
invocationContext IInvocationContext

setUp

public void setUp (TestInformation testInfo)

Tham số
testInfo TestInformation

Gửi
BuildError
DeviceNotAvailableException
TargetSetupError

shouldAbortOnFailure

public boolean shouldAbortOnFailure ()

Có huỷ khi đẩy không thành công hay không.

Giá trị trả về
boolean

shouldRemountSystem

public boolean shouldRemountSystem ()

Giá trị trả về
boolean

shouldRemountVendor

public boolean shouldRemountVendor ()

Giá trị trả về
boolean

tearDown

public void tearDown (TestInformation testInfo, 
                Throwable e)

Tham số
testInfo TestInformation

e Throwable

Gửi
DeviceNotAvailableException