GceAvdInfo
public
class
GceAvdInfo
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.device.cloud.GceAvdInfo
|
Structure to hold relevant data for a given GCE AVD instance.
Summary
Nested classes |
enum |
GceAvdInfo.GceStatus
|
Public constructors |
GceAvdInfo(String instanceName, HostAndPort hostAndPort)
|
GceAvdInfo(String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status)
|
Fields
BUILD_VARS
public static final BUILD_VARS
Public constructors
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
Parameters |
instanceName |
String |
hostAndPort |
HostAndPort |
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)
Parameters |
instanceName |
String |
hostAndPort |
HostAndPort |
errorType |
ErrorIdentifier |
errors |
String |
status |
GceAvdInfo.GceStatus |
Public methods
getBuildVars
public getBuildVars ()
Return build variable information hash of GCE AVD device.
Possible build variables keys are described in BUILD_VARS for example: build_id,
build_target, branch, kernel_build_id, kernel_build_target, kernel_branch, system_build_id,
system_build_target, system_branch, emulator_build_id, emulator_build_target,
emulator_branch.
getErrorType
public ErrorIdentifier getErrorType ()
getErrors
public String getErrors ()
hostAndPort
public HostAndPort hostAndPort ()
instanceName
public String instanceName ()
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
Parse a given file to obtain the GCE AVD device info.
Parameters |
f |
File : ERROR(/File) file to read the JSON output from GCE Driver. |
descriptor |
DeviceDescriptor : the descriptor of the device that needs the info. |
remoteAdbPort |
int : the remote port that should be used for adb connection |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
Parse a given string to obtain the GCE AVD device info.
Parameters |
data |
String : JSON string. |
descriptor |
DeviceDescriptor : the descriptor of the device that needs the info. |
remoteAdbPort |
int : the remote port that should be used for adb connection |
setStatus
public void setStatus (GceAvdInfo.GceStatus status)
Parameters |
status |
GceAvdInfo.GceStatus |
toString
public String toString ()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-08-03 UTC."],[],[]]