デバイスアクション使用率

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