Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.

PushFilePreparer

public class PushFilePreparer
extends BaseTargetPreparer implements IAbiReceiver , IInvocationContextReceiver , IDiscoverDependencies

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


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

Nên thực hiện * sau khi * một bản dựng mới được hiển thị và * sau khi * Thiết lập thiết bị được chạy (nếu được bật)

Bản tóm tắt

Các nhà xây dựng công cộng

PushFilePreparer ()

Phương pháp công khai

IAbi getAbi ()

final getPushSpecs ( DeviceDescriptor descriptor)

Tạo danh sách các tệp sẽ được đẩy.

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

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

void setAbi ( IAbi abi)

void setInvocationContext ( IInvocationContext invocationContext)

void setUp ( TestInformation testInfo)

boolean shouldAbortOnFailure ()

Có hay không hủy bỏ khi đẩy thất bại.

void tearDown ( TestInformation testInfo, Throwable e)

Các nhà xây dựng công cộng

PushFilePreparer

public PushFilePreparer ()

Phương pháp công khai

getAbi

public IAbi getAbi ()

Lợi nhuận
IAbi

getPushSpecs

public final  getPushSpecs (DeviceDescriptor descriptor)

Tạo danh sách các tệp sẽ được đẩy.

Thông số
descriptor DeviceDescriptor

Lợi nhuận

Ném
TargetSetupError

reportDependencies

public  reportDependencies ()

Lợi nhuận

giải quyếtRelativeFilePath

public File resolveRelativeFilePath (IBuildInfo buildInfo, 
                String fileName)

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

Thông số
buildInfo IBuildInfo : thông tin tạo tác bản dựng

fileName String : đường dẫn tệp tương đối sẽ được giải quyết

Lợi nhuận
File tệp từ thông tin bản dựng hoặc thư mục trường hợp thử nghiệm

setAbi

public void setAbi (IAbi abi)

Thông số
abi IAbi

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

Thông số
invocationContext IInvocationContext

thành lập

public void setUp (TestInformation testInfo)

Thông số
testInfo TestInformation

Ném
BuildError
DeviceNotAvailableException
TargetSetupError

shouldAbortOnFailure

public boolean shouldAbortOnFailure ()

Có hay không hủy bỏ khi đẩy thất bại.

Lợi nhuận
boolean

phá bỏ

public void tearDown (TestInformation testInfo, 
                Throwable e)

Thông số
testInfo TestInformation

e Throwable

Ném
DeviceNotAvailableException