酸素クライアント

public class OxygenClient
extends Object

java.lang.オブジェクト
com.android.tradefed.device.cloud.OxygenClient


Oxygen デバイスをリースまたは解放するための Oxygen クライアント バイナリの使用を管理するクラス。

まとめ

田畑

public static final sGceDeviceParamsToOxygenMap

パブリックコンストラクター

OxygenClient (File clientBinary, IRunUtil runUtil)
OxygenClient (File clientBinary)

OxygenClient クラスのコンストラクター。

パブリックメソッド

String getOverrideFetchCvdPath ( TestDeviceOptions deviceOptions)

指定された TestDeviceOptions の「override_fetch_cvd_path」引数の値を返します。

CommandResult leaseDevice ( IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes)

Oxygen クライアント バイナリを呼び出してデバイスをリースしようとします。

CommandResult leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes)

Oxygen クライアント バイナリを呼び出して、複数のデバイスをリースしようとします。

Boolean noWaitForBootSpecified ( TestDeviceOptions deviceOptions)

酸素リース要求で no_wait_for_boot が指定されているかどうかを確認する

boolean release ( GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions)

Oxygen クライアント バイナリを使用してデバイスを解放しようとします。

田畑

sGceDeviceParamsToOxygenMap

public static final  sGceDeviceParamsToOxygenMap

パブリックコンストラクター

酸素クライアント

public OxygenClient (File clientBinary, 
                IRunUtil runUtil)

パラメーター
clientBinary File

runUtil IRunUtil

酸素クライアント

public OxygenClient (File clientBinary)

OxygenClient クラスのコンストラクター。

パラメーター
clientBinary File : 実行可能な Oxygen クライアント バイナリ ファイル。

パブリックメソッド

getOverrideFetchCvdPath

public String getOverrideFetchCvdPath (TestDeviceOptions deviceOptions)

指定された TestDeviceOptions の「override_fetch_cvd_path」引数の値を返します。

パラメーター
deviceOptions TestDeviceOptions : TestDeviceOptions

戻り値
String 「override_fetch_cvd_path」の値、または存在しない場合は null

リースデバイス

public CommandResult leaseDevice (IBuildInfo b, 
                TestDeviceOptions deviceOptions, 
                MultiMap<String, String> attributes)

Oxygen クライアント バイナリを呼び出してデバイスをリースしようとします。

パラメーター
b IBuildInfo : IBuildInfo

deviceOptions TestDeviceOptions : TestDeviceOptions

attributes MultiMap : 現在の呼び出しに関連付けられた属性

戻り値
CommandResult Oxygen バイナリが返したCommandResult

複数のデバイスをリースする

public CommandResult leaseMultipleDevices ( buildInfos, 
                TestDeviceOptions deviceOptions, 
                MultiMap<String, String> attributes)

Oxygen クライアント バイナリを呼び出して、複数のデバイスをリースしようとします。

パラメーター
buildInfos : ERROR(/List ) ERROR(/List )

deviceOptions TestDeviceOptions : TestDeviceOptions

attributes MultiMap : 現在の呼び出しに関連付けられた属性

戻り値
CommandResult Oxygen バイナリが返したCommandResult

noWaitForBoot指定済み

public Boolean noWaitForBootSpecified (TestDeviceOptions deviceOptions)

酸素リース要求で no_wait_for_boot が指定されているかどうかを確認する

パラメーター
deviceOptions TestDeviceOptions : TestDeviceOptions

戻り値
Boolean no_wait_for_boot が指定されている場合は true

リリース

public boolean release (GceAvdInfo gceAvdInfo, 
                TestDeviceOptions deviceOptions)

Oxygen クライアント バイナリを使用してデバイスを解放しようとします。

パラメーター
gceAvdInfo GceAvdInfo : GceAvdInfo

deviceOptions TestDeviceOptions : TestDeviceOptions

戻り値
booleanデバイスの解放が成功したかどうかを示すブール値。