ネストされたクラス |
---|
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 and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-07-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]