FastbootUpdateBootstrapPreparer
public
class
FastbootUpdateBootstrapPreparer
extends DeviceFlashPreparer
java.lang.Object | |||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | ||
↳ | com.android.tradefed.targetprep.DeviceFlashPreparer | ||
↳ | com.android.tradefed.targetprep.FastbootUpdateBootstrapPreparer |
用來暫存指定檔案 (系統啟動載入程式、無線電、裝置映像檔 ZIP 檔) 的 ITargetPreparer
使用 IDeviceBuildInfo
,將裝置透過 FastbootDeviceFlasher
刷新,然後插入
會將裝置開機後的裝置屬性寫入版本資訊,以便製作結果報表。
如要使用 fastboot update
做為
外部來源裝置和版本,以符合現有自動化基礎架構。
摘要
公用建構函式 | |
---|---|
FastbootUpdateBootstrapPreparer()
|
公用方法 | |
---|---|
void
|
setUp(TestInformation testInfo)
|
保護方法 | |
---|---|
IDeviceFlasher
|
createFlasher(ITestDevice device)
建立要使用的 |
公用建構函式
FastbootUpdateBootstrapPreparer
public FastbootUpdateBootstrapPreparer ()
公用方法
設定
public void setUp (TestInformation testInfo)
參數 | |
---|---|
testInfo |
TestInformation |
擲回 | |
---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
保護方法
建立 Flasher
protected IDeviceFlasher createFlasher (ITestDevice device)
建立要使用的 IDeviceFlasher
。子類別可以覆寫
參數 | |
---|---|
device |
ITestDevice |
傳回 | |
---|---|
IDeviceFlasher |
擲回 | |
---|---|
DeviceNotAvailableException |