酸素クライアント
public class OxygenClient
extends Object
java.lang.Object | |
↳ | 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 finalsGceDeviceParamsToOxygenMap
パブリック コンストラクター
酸素クライアント
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 。 |
noWaitForBootSpecified
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 | デバイスのリリースが成功したかどうかを示すブール値。 |