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 |
วิธีการป้องกัน
getDeviceUpdateImage
protected abstract File getDeviceUpdateImage ()
จัดเตรียมอินสแตนซ์ ERROR(/File)
ที่แสดงถึงไฟล์อิมเมจของอุปกรณ์ที่จะใช้สำหรับการอัปเดต
คืนสินค้า | |
---|---|
File |
performDeviceUpdate
protected abstract void performDeviceUpdate (File deviceUpdateImage, ITestDevice device)
ดำเนินการอัปเดตอิมเมจของอุปกรณ์บนอุปกรณ์
ขว้าง | |
---|---|
TargetSetupError | |
DeviceNotAvailableException |
postUpdateActions
protected abstract void postUpdateActions (File deviceUpdateImage, ITestDevice device)
การดำเนินการที่จะดำเนินการหลังจากอัปเดตอุปกรณ์ แต่ก่อนดำเนินการตามขั้นตอนการตั้งค่าหลังการอัปเดต เมธอดนี้จะถูกเรียกนอกการควบคุมการทำงานพร้อมกันแบบกะพริบ
ขว้าง | |
---|---|
TargetSetupError | |
DeviceNotAvailableException |
preUpdateActions
protected abstract void preUpdateActions (File deviceUpdateImage, ITestDevice device)
การดำเนินการที่จะดำเนินการก่อนที่จะอัปเดตอุปกรณ์ เมธอดนี้จะถูกเรียกนอกการควบคุมการทำงานพร้อมกันแบบกะพริบ
ขว้าง | |
---|---|
TargetSetupError | |
DeviceNotAvailableException |