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

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

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

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

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