嵌套类 |
---|
enum | GceAvdInfo.GceStatus |
领域
构建变量
public static final BUILD_VARS
公共构造函数
GceAvd信息
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
参数 |
---|
instanceName | String |
hostAndPort | HostAndPort |
GceAvd信息
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)
参数 |
---|
instanceName | String |
hostAndPort | HostAndPort |
errorType | ErrorIdentifier |
errors | String |
status | GceAvdInfo.GceStatus |
公共方法
获取构建变量
public getBuildVars ()
返回 GCE AVD 设备的构建变量信息哈希。
可能的构建变量键在 BUILD_VARS 中描述,例如: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。
获取错误类型
public ErrorIdentifier getErrorType ()
获取错误
public String getErrors ()
主机和端口
public HostAndPort hostAndPort ()
实例名
public String instanceName ()
从文件中解析GceInfo
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
解析给定文件以获取 GCE AVD 设备信息。
参数 |
---|
f | File : ERROR(/File) 文件,用于从 GCE 驱动程序读取 JSON 输出。 |
descriptor | DeviceDescriptor :需要该信息的设备的描述符。 |
remoteAdbPort | int : 用于 adb 连接的远程端口 |
从字符串解析GceInfo
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
解析给定的字符串以获取 GCE AVD 设备信息。
参数 |
---|
data | String :JSON 字符串。 |
descriptor | DeviceDescriptor :需要该信息的设备的描述符。 |
remoteAdbPort | int : 用于 adb 连接的远程端口 |
到字符串
public String toString ()
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]