GkiDeviceFlashPreparer

public class GkiDeviceFlashPreparer
extends BaseTargetPreparer implements ILabPreparer

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


ตัวเตรียมเป้าหมายที่แฟลชอุปกรณ์ด้วยอิมเมจทั่วไปของเคอร์เนลทั่วไปของ Android โปรดดู https://source.android.com/devices/architecture/kernel/android-common สำหรับรายละเอียด

สรุป

ผู้สร้างสาธารณะ

GkiDeviceFlashPreparer ()

วิธีการสาธารณะ

void setUp ( TestInformation testInfo)

ดำเนินการตั้งค่าเป้าหมายสำหรับการทดสอบ

void validateGkiBootImg ( ITestDevice device, IBuildInfo buildInfo)

ตรวจสอบอิมเมจสำหรับบูต GKI ที่คาดหวังไว้

วิธีการป้องกัน

void addHashFooter ( ITestDevice device, IBuildInfo buildInfo, File tmpDir)

ตรวจสอบอิมเมจสำหรับบูต GKI ที่คาดหวังไว้

IHostOptions getHostOptions ()

รับการอ้างอิงถึง IHostOptions

IRunUtil getRunUtil ()

รับอินสแตนซ์ IRunUtil เพื่อใช้งาน

void validateGkiBootImg ( ITestDevice device, IBuildInfo buildInfo, File tmpDir)

ตรวจสอบอิมเมจสำหรับบูต GKI ที่คาดหวังไว้

ผู้สร้างสาธารณะ

GkiDeviceFlashPreparer

public GkiDeviceFlashPreparer ()

วิธีการสาธารณะ

ติดตั้ง

public void setUp (TestInformation testInfo)

ดำเนินการตั้งค่าเป้าหมายสำหรับการทดสอบ

พารามิเตอร์
testInfo TestInformation : TestInformation ของการร้องขอ

พ่น
BuildError
DeviceNotAvailableException
TargetSetupError

ตรวจสอบ GkiBootImg

public void validateGkiBootImg (ITestDevice device, 
                IBuildInfo buildInfo)

ตรวจสอบอิมเมจสำหรับบูต GKI ที่คาดหวังไว้ (เลิกใช้แล้ว กรุณาโทรแจ้งด้วย tmpDir)

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

buildInfo IBuildInfo : IBuildInfo ข้อมูลการสร้าง

พ่น
TargetSetupError หากไม่มี gki boot.img ที่ถูกต้อง

วิธีการป้องกัน

เพิ่ม HashFooter

protected void addHashFooter (ITestDevice device, 
                IBuildInfo buildInfo, 
                File tmpDir)

ตรวจสอบอิมเมจสำหรับบูต GKI ที่คาดหวังไว้ ส่งข้อยกเว้นหากไม่มี boot.img ที่ถูกต้อง

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

buildInfo IBuildInfo : IBuildInfo ข้อมูลการสร้าง

tmpDir File : ไดเรกทอรีชั่วคราว ERROR(/File)

พ่น
TargetSetupError หากไม่มี gki boot.img ที่ถูกต้อง
DeviceNotAvailableException

getHostOptions

protected IHostOptions getHostOptions ()

รับการอ้างอิงถึง IHostOptions

ส่งคืน
IHostOptions IHostOptions ที่จะใช้

getRunUtil

protected IRunUtil getRunUtil ()

รับอินสแตนซ์ IRunUtil เพื่อใช้งาน

ส่งคืน
IRunUtil IRunUtil ที่จะใช้

ตรวจสอบ GkiBootImg

protected void validateGkiBootImg (ITestDevice device, 
                IBuildInfo buildInfo, 
                File tmpDir)

ตรวจสอบอิมเมจสำหรับบูต GKI ที่คาดหวังไว้ ส่งข้อยกเว้นหากไม่มี boot.img ที่ถูกต้อง

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

buildInfo IBuildInfo : IBuildInfo ข้อมูลการสร้าง

tmpDir File : ไดเรกทอรีชั่วคราว ERROR(/File)

พ่น
TargetSetupError หากไม่มี gki boot.img ที่ถูกต้อง