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)
在裝置更新完成後,但在執行更新後設定步驟之前,要執行的動作。這個方法會在閃爍並行控制之外呼叫。
擲回 | |
---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException |
|
TargetSetupError |
preUpdateActions
protected abstract void preUpdateActions (File deviceUpdateImage, ITestDevice device)
在裝置更新前執行的動作。這個方法會在閃爍並行控制之外呼叫。
擲回 | |
---|---|
|
com.android.tradefed.targetprep.TargetSetupError |
DeviceNotAvailableException |
|
TargetSetupError |