จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ

GkiDeviceFlashPreparer

public class GkiDeviceFlashPreparer
extends BaseTargetPreparer

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

ขว้าง
BuildError
DeviceNotAvailableException
TargetSetupError

ตรวจสอบGkiBootImg

public void validateGkiBootImg (ITestDevice device, 
                IBuildInfo buildInfo)

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

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

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

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

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

addHashFooter

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 . ที่ถูกต้อง