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