DeviceUpdateTargetPreparer
public abstract class DeviceUpdateTargetPreparer
extends DeviceBuildInfoBootStrapper
java.lang.Object | |||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | ||
↳ | com.android.tradefed.targetprep.DeviceBuildInfoBootStrapper | ||
↳ | com.android.tradefed.targetprep.DeviceUpdateTargetPreparer |
ITargetPreparer
แบบนามธรรมที่ดูแลขั้นตอนทั่วไปเกี่ยวกับการอัปเดตอุปกรณ์ด้วยไฟล์อิมเมจของอุปกรณ์จากแหล่งภายนอก (ตรงข้ามกับบริการบิลด์) กลไกการอัพเดตจริงถูกมอบหมายให้กับผู้ดำเนินการของคลาสย่อย
สรุป
ผู้รับเหมาก่อสร้างสาธารณะ | |
---|---|
DeviceUpdateTargetPreparer () |
วิธีการสาธารณะ | |
---|---|
void | setUp ( TestInformation testInfo)
|
วิธีการที่ได้รับการป้องกัน | |
---|---|
abstract File | getDeviceUpdateImage () จัดเตรียมอินสแตนซ์ |
abstract void | performDeviceUpdate (File deviceUpdateImage, ITestDevice device) ดำเนินการอัพเดตอิมเมจอุปกรณ์บนอุปกรณ์ |
abstract void | postUpdateActions (File deviceUpdateImage, ITestDevice device) การดำเนินการที่จะดำเนินการหลังจากอัปเดตอุปกรณ์ แต่ก่อนที่จะดำเนินการตามขั้นตอนการตั้งค่าหลังการอัปเดต |
abstract void | preUpdateActions (File deviceUpdateImage, ITestDevice device) การดำเนินการที่ต้องทำก่อนอัปเดตอุปกรณ์ |
ผู้รับเหมาก่อสร้างสาธารณะ
DeviceUpdateTargetPreparer
public DeviceUpdateTargetPreparer ()
วิธีการสาธารณะ
ติดตั้ง
public void setUp (TestInformation testInfo)
พารามิเตอร์ | |
---|---|
testInfo | TestInformation |
ขว้าง | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
วิธีการที่ได้รับการป้องกัน
รับDeviceUpdateImage
protected abstract File getDeviceUpdateImage ()
จัดเตรียมอินสแตนซ์ ERROR(/File)
ที่แสดงไฟล์อิมเมจของอุปกรณ์ที่จะใช้สำหรับการอัปเดต
การส่งคืน | |
---|---|
File |
ดำเนินการอัปเดตอุปกรณ์
protected abstract void performDeviceUpdate (File deviceUpdateImage, ITestDevice device)
ดำเนินการอัพเดตอิมเมจอุปกรณ์บนอุปกรณ์
ขว้าง | |
---|---|
| com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException | |
TargetSetupError |
postUpdateActions
protected abstract void postUpdateActions (File deviceUpdateImage, ITestDevice device)
การดำเนินการที่จะดำเนินการหลังจากอัปเดตอุปกรณ์ แต่ก่อนที่จะดำเนินการตามขั้นตอนการตั้งค่าหลังการอัปเดต วิธีการนี้จะถูกเรียกนอกการควบคุมการทำงานพร้อมกันแบบกะพริบ
ขว้าง | |
---|---|
| com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException | |
TargetSetupError |
preUpdateActions
protected abstract void preUpdateActions (File deviceUpdateImage, ITestDevice device)
การดำเนินการที่ต้องทำก่อนอัปเดตอุปกรณ์ วิธีการนี้จะถูกเรียกนอกการควบคุมการทำงานพร้อมกันแบบกะพริบ
ขว้าง | |
---|---|
| com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException | |
TargetSetupError |