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


การปรับแต่ง DeviceFlashPreparer ที่รองรับขั้นตอนที่กำหนดเองซึ่งจำเป็นสำหรับการแฟลชอุปกรณ์ Google

ระบบจะจัดการเรื่องนี้โดยการสร้าง IDeviceFlasher ที่เหมาะสมตามประเภทสินค้า

สรุป

เครื่องมือสร้างสาธารณะ

GoogleDeviceFlashPreparer()

เมธอดสาธารณะ

IBuildInfo getBuild(TestInformation testInfo)

ห่อ getBuildInfo เพื่อให้เรามีโอกาสที่จะลบล้างในบางสถานการณ์

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

void setUp(TestInformation testInfo)

เมธอดที่ได้รับการปกป้อง

void checkDeviceProductType(ITestDevice device, IDeviceBuildInfo deviceBuild)

การตรวจสอบที่เป็นไปได้ก่อนการแฟลชเพื่อให้แน่ใจว่าอุปกรณ์เป็นไปตามที่คาดไว้เมื่อเทียบกับข้อมูลบิลด์

IDeviceFlasher createFlasher(ITestDevice device)

สร้าง IDeviceFlasher ที่จะใช้

FlashingResourcesRetrieverCacheWrapper createFlashingResources(String productType)

เครื่องมือสร้างสาธารณะ

GoogleDeviceFlashPreparer

public GoogleDeviceFlashPreparer ()

เมธอดสาธารณะ

getBuild

public IBuildInfo getBuild (TestInformation testInfo)

ห่อ getBuildInfo เพื่อให้เรามีโอกาสที่จะลบล้างในบางสถานการณ์

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

การคืนสินค้า
IBuildInfo

setAltStaticDeviceInfoClass

public void setAltStaticDeviceInfoClass (String altStaticDeviceInfoClass)

พารามิเตอร์
altStaticDeviceInfoClass String

setInvocationContext

public void setInvocationContext (IInvocationContext invocationContext)

พารามิเตอร์
invocationContext IInvocationContext

setUp

public void setUp (TestInformation testInfo)

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

ส่ง
BuildError
DeviceNotAvailableException
TargetSetupError

เมธอดที่ได้รับการปกป้อง

checkDeviceProductType

protected void checkDeviceProductType (ITestDevice device, 
                IDeviceBuildInfo deviceBuild)

การตรวจสอบที่เป็นไปได้ก่อนการแฟลชเพื่อให้แน่ใจว่าอุปกรณ์เป็นไปตามที่คาดไว้เมื่อเทียบกับข้อมูลบิลด์

พารามิเตอร์
device ITestDevice: ITestDevice ที่จะแฟลช

deviceBuild IDeviceBuildInfo: IDeviceBuildInfo ที่ใช้แฟลช

ส่ง
BuildError
DeviceNotAvailableException

createFlasher

protected IDeviceFlasher createFlasher (ITestDevice device)

สร้าง IDeviceFlasher ที่จะใช้

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

การคืนสินค้า
IDeviceFlasher

ส่ง
com.android.tradefed.device.DeviceNotAvailableException
DeviceNotAvailableException

createFlashingResources

protected FlashingResourcesRetrieverCacheWrapper createFlashingResources (String productType)

พารามิเตอร์
productType String

การคืนสินค้า
FlashingResourcesRetrieverCacheWrapper