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 ()
เมธอดสาธารณะ
setUp
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)ทำการอัปเดตรูปภาพอุปกรณ์ในอุปกรณ์
| การโยน | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException |
|
TargetSetupError |
|
postUpdateActions
protected abstract void postUpdateActions (File deviceUpdateImage,
ITestDevice device)การดำเนินการที่จะทำหลังจากอัปเดตอุปกรณ์ แต่ก่อนที่จะทำตามขั้นตอนการตั้งค่าหลังการอัปเดต ระบบจะเรียกใช้เมธอดนี้นอกการควบคุมการทํางานพร้อมกันของ Flash
| การโยน | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException |
|
TargetSetupError |
|
preUpdateActions
protected abstract void preUpdateActions (File deviceUpdateImage,
ITestDevice device)การดำเนินการที่ต้องทำก่อนอัปเดตอุปกรณ์ ระบบจะเรียกใช้เมธอดนี้นอกการควบคุมการทํางานพร้อมกันของ Flash
| การโยน | |
|---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException |
|
TargetSetupError |
|