DeviceFlashPreparer
public abstract class DeviceFlashPreparer
extends BaseTargetPreparer
物理的なAndroidハードウェアで画像をフラッシュするITargetPreparer
。
概要
ネストされたクラス |
---|
enum | DeviceFlashPreparer.EncryptionOptions ユーザーデータ画像の暗号化を処理するためのオプションの列挙 |
パブリックコンストラクター
DeviceFlashPreparer
public DeviceFlashPreparer ()
パブリックメソッド
public void setUp (TestInformation testInfo)
パラメーター |
---|
testInfo | TestInformation |
投げる |
---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError | |
public void tearDown (TestInformation testInfo,
Throwable e)
パラメーター |
---|
testInfo | TestInformation |
e | Throwable |
投げる |
---|
DeviceNotAvailableException | |
保護されたメソッド
checkDeviceProductType
protected void checkDeviceProductType (ITestDevice device,
IDeviceBuildInfo deviceBuild)
フラッシュする前に、ビルド情報と比較してデバイスが期待どおりであることを確認するための可能なチェック。
投げる |
---|
| com.android.tradefed.targetprep.BuildError |
DeviceNotAvailableException | |
BuildError | |
createFlasher
protected abstract IDeviceFlasher createFlasher (ITestDevice device)
使用するIDeviceFlasher
を作成します。サブクラスはオーバーライドできます
投げる |
---|
DeviceNotAvailableException | |
getDeviceBootWaitTime
protected long getDeviceBootWaitTime ()
デバイスの起動待機時間を取得します
getHostOptions
protected IHostOptions getHostOptions ()
使用するIHostOptions
インスタンスを取得します。
ユニットテスト用に公開
reportFlashMetrics
protected void reportFlashMetrics (String branch,
String buildFlavor,
String buildId,
String serial,
long queueTime,
long flashingTime,
CommandStatus flashingStatus)
デバイスのフラッシュタイミングデータをメトリックバックエンドに報告します
パラメーター |
---|
branch | String :デバイスビルドが発生したブランチ |
buildFlavor | String :デバイスビルドのビルドフレーバー |
buildId | String :デバイスビルドのビルド番号 |
serial | String :デバイスのシリアル番号 |
queueTime | long :点滅制限が利用可能になるのを待つために費やされた時間 |
flashingTime | long :デバイスの画像zipのフラッシュに費やされた時間 |
flashingStatus | CommandStatus :点滅コマンドの実行状態 |
setSkipPostFlashBuildIdCheck
protected void setSkipPostFlashBuildIdCheck (boolean skipPostFlashBuildIdCheck)
パラメーター |
---|
skipPostFlashBuildIdCheck | boolean |
setSkipPostFlashFlavorCheck
protected void setSkipPostFlashFlavorCheck (boolean skipPostFlashFlavorCheck)
パラメーター |
---|
skipPostFlashFlavorCheck | boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.