GoogleDeviceFlashPreparer

public class GoogleDeviceFlashPreparer
extends DeviceFlashPreparer implements IInvocationContextReceiver, ILabPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.DeviceFlashPreparer
       ↳ com.google.android.tradefed.targetprep.GoogleDeviceFlashPreparer


Một chuyên môn của DeviceFlashPreparer hỗ trợ các bước tuỳ chỉnh cần thiết để flash các thiết bị của Google.

Thao tác này được xử lý bằng cách tạo IDeviceFlasher thích hợp dựa trên loại sản phẩm

Tóm tắt

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

GoogleDeviceFlashPreparer()

Phương thức công khai

IBuildInfo getBuild(TestInformation testInfo)

Bọc getBuildInfo để chúng ta có thể ghi đè nó cho các trường hợp cụ thể.

void setAltStaticDeviceInfoClass(String altStaticDeviceInfoClass)
void setInvocationContext(IInvocationContext invocationContext)

void setUp(TestInformation testInfo)

Phương thức được bảo vệ

void checkDeviceProductType(ITestDevice device, IDeviceBuildInfo deviceBuild)

Có thể kiểm tra trước khi cài đặt để đảm bảo thiết bị như mong đợi so với thông tin bản dựng.

IDeviceFlasher createFlasher(ITestDevice device)

Tạo IDeviceFlasher để sử dụng

FlashingResourcesRetrieverCacheWrapper createFlashingResources(String productType)

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

GoogleDeviceFlashPreparer

public GoogleDeviceFlashPreparer ()

Phương thức công khai

getBuild

public IBuildInfo getBuild (TestInformation testInfo)

Bọc getBuildInfo để chúng ta có thể ghi đè nó cho các trường hợp cụ thể.

Tham số
testInfo TestInformation

Giá trị trả về
IBuildInfo

setAltStaticDeviceInfoClass

public void setAltStaticDeviceInfoClass (String altStaticDeviceInfoClass)

Tham số
altStaticDeviceInfoClass String

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

Phương thức được bảo vệ

checkDeviceProductType

protected void checkDeviceProductType (ITestDevice device, 
                IDeviceBuildInfo deviceBuild)

Có thể kiểm tra trước khi cài đặt để đảm bảo thiết bị như mong đợi so với thông tin bản dựng.

Tham số
device ITestDevice: ITestDevice cần cài đặt ROM.

deviceBuild IDeviceBuildInfo: IDeviceBuildInfo được dùng để cài đặt ROM.

Gửi
BuildError
DeviceNotAvailableException

createFlasher

protected IDeviceFlasher createFlasher (ITestDevice device)

Tạo IDeviceFlasher để sử dụng

Tham số
device ITestDevice

Giá trị trả về
IDeviceFlasher

Gửi
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

createFlashingResources

protected FlashingResourcesRetrieverCacheWrapper createFlashingResources (String productType)

Tham số
productType String

Trả về
FlashingResourcesRetrieverCacheWrapper