GkiDeviceFlashPreparer
public class GkiDeviceFlashPreparer
extends BaseTargetPreparer
ผู้จัดเตรียมเป้าหมายที่แฟลชอุปกรณ์ด้วยอิมเมจทั่วไปเคอร์เนลทั่วไปของ Android โปรดดูรายละเอียดที่ https://source.android.com/devices/architecture/kernel/android-common
สรุป
วิธีการสาธารณะ |
---|
void | setUp (TestInformation testInfo) |
void | validateGkiBootImg (ITestDevice device, IBuildInfo buildInfo) คาดว่าจะตรวจสอบอิมเมจบูต GKI |
ผู้สร้างสาธารณะ
GkiDeviceFlashPreparer
public GkiDeviceFlashPreparer ()
วิธีการสาธารณะ
public void setUp (TestInformation testInfo)
พารามิเตอร์ |
---|
testInfo | TestInformation |
ขว้าง |
---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError | |
ตรวจสอบGkiBootImg
public void validateGkiBootImg (ITestDevice device,
IBuildInfo buildInfo)
คาดว่าจะตรวจสอบอิมเมจบูต GKI (ล้าสมัย กรุณาโทรแจ้งกับ tmpDir ที่ให้มา)
ขว้าง |
---|
TargetSetupError | หากไม่มี gki boot.img . ที่ถูกต้อง |
วิธีการป้องกัน
getHostOptions
protected IHostOptions getHostOptions ()
ได้รับการอ้างอิงถึง IHostOptions
getRunUtil
protected IRunUtil getRunUtil ()
รับ IRunUtil
เช่นกับการใช้งาน
คืนสินค้า |
---|
IRunUtil | IRunUtil กับการใช้งาน |
ตรวจสอบGkiBootImg
protected void validateGkiBootImg (ITestDevice device,
IBuildInfo buildInfo,
File tmpDir)
คาดว่าจะตรวจสอบอิมเมจบูต GKI โยนข้อยกเว้นหากไม่มี boot.img ที่ถูกต้อง
ขว้าง |
---|
TargetSetupError | หากไม่มี gki boot.img . ที่ถูกต้อง |