デバイスアクション使用率
public class DeviceActionUtil
extends Object
java.lang.オブジェクト | |
↳ | com.android.tradefed.util.DeviceActionUtil |
デバイスアクションを実行するためのユーティリティクラス。
まとめ
入れ子になったクラス | |
---|---|
class | DeviceActionUtil.DeviceActionConfigError 設定エラーの例外。 |
パブリックメソッド | |
---|---|
static DeviceActionUtil | create (File deviceActionMainJar, File bundletoolJar) インスタンスを作成します。 |
CommandResult | execute ( DeviceActionUtil.Command command, String deviceId, actionArgs) execute ( DeviceActionUtil.Command command, String deviceId, actionArgs) デバイスアクションコマンドを実行します。 |
void | generateLogFile ( CommandResult result) ホストログファイルを生成します。 |
void | saveToLogs ( DeviceActionUtil.Command cmd, ITestLogger testLogger) 生成されたすべてのファイルをテスト ログに保存します。 |
パブリックメソッド
作成する
public static DeviceActionUtil create (File deviceActionMainJar, File bundletoolJar)
インスタンスを作成します。
パラメーター | |
---|---|
deviceActionMainJar | File |
bundletoolJar | File |
戻り値 | |
---|---|
DeviceActionUtil |
投げる | |
---|---|
DeviceActionUtil.DeviceActionConfigError |
実行する
public CommandResult execute (DeviceActionUtil.Command command, String deviceId,actionArgs)
デバイスアクションコマンドを実行します。
パラメーター | |
---|---|
command | DeviceActionUtil.Command : 実行します。 |
deviceId | String : デバイスの。 |
actionArgs | command のアクション引数。 |
戻り値 | |
---|---|
CommandResult |
ログファイルの生成
public void generateLogFile (CommandResult result)
ホストログファイルを生成します。
パラメーター | |
---|---|
result | CommandResult |
ログに保存
public void saveToLogs (DeviceActionUtil.Command cmd, ITestLogger testLogger)
生成されたすべてのファイルをテスト ログに保存します。
パラメーター | |
---|---|
cmd | DeviceActionUtil.Command |
testLogger | ITestLogger |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2023-12-01 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":"その他"
}]