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.

Đẩy tập tinPreparer

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 sang bất kỳ đường dẫn thiết bị nào.

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

Bản tóm tắt

nhà thầu công cộng

PushFilePreparer ()

Phương thức công khai

IAbi getAbi ()

final getPushSpecs ( DeviceDescriptor descriptor)

Tạo danh sách các tệp sẽ được đẩ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 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ỏ lỗi đẩy.

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

nhà thầu công cộng

Đẩy tập tinPreparer

public PushFilePreparer ()

Phương thức công khai

getAbi

public IAbi getAbi ()

trả lại
IAbi

getPushSpecs

public final  getPushSpecs (DeviceDescriptor descriptor)

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

Thông số
descriptor DeviceDescriptor

trả lại

ném
TargetSetupError

isCleanUpEnabled

public boolean isCleanUpEnabled ()

trả lại
boolean

báo cáo phụ thuộc

public  reportDependencies ()

trả lại

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 xây dựng

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

trả lại
File tệp từ thư mục thông tin bản dựng hoặ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

cài đặt

public void setUp (TestInformation testInfo)

Thông số
testInfo TestInformation

ném
BuildError
DeviceNotAvailableException
TargetSetupError

nên hủy bỏ khi thất bại

public boolean shouldAbortOnFailure ()

Có hay không hủy bỏ lỗi đẩy.

trả lại
boolean

nênRemountSystem

public boolean shouldRemountSystem ()

trả lại
boolean

nênRemountVendor

public boolean shouldRemountVendor ()

trả lại
boolean

phá bỏ

public void tearDown (TestInformation testInfo, 
                Throwable e)

Thông số
testInfo TestInformation

e Throwable

ném
DeviceNotAvailableException