GceAvdInfo
public class GceAvdInfo
extends Object
java.lang.Object |
↳ | com.android.tradefed.device.cloud.GceAvdInfo |
特定のGCEAVDインスタンスに関連するデータを保持するための構造。
概要
ネストされたクラス |
---|
enum | GceAvdInfo.GceStatus |
田畑
BUILD_VARS
public static final BUILD_VARS
パブリックコンストラクター
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
パラメーター |
---|
instanceName | String |
hostAndPort | HostAndPort |
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
String errors,
GceAvdInfo.GceStatus status)
パラメーター |
---|
instanceName | String |
hostAndPort | HostAndPort |
errors | String |
status | GceAvdInfo.GceStatus |
パブリックメソッド
getBuildVars
public getBuildVars ()
GCEAVDデバイスのビルド変数情報ハッシュを返します。
可能なビルド変数キーは、BUILD_VARSで説明されています。
getErrors
public String getErrors ()
hostAndPort
public HostAndPort hostAndPort ()
instanceName
public String instanceName ()
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
特定のファイルを解析して、GCEAVDデバイス情報を取得します。
パラメーター |
---|
f | File :GCEドライバーからのJSON出力を読み取るためのERROR(/File) ファイル。 |
descriptor | DeviceDescriptor :情報を必要とするデバイスの記述子。 |
remoteAdbPort | int :adb接続に使用する必要があるリモートポート |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
指定された文字列を解析して、GCEAVDデバイス情報を取得します。
パラメーター |
---|
data | String :JSON文字列。 |
descriptor | DeviceDescriptor :情報を必要とするデバイスの記述子。 |
remoteAdbPort | int :adb接続に使用する必要があるリモートポート |
toString
public String toString ()
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.