嵌套类 |
---|
class | GceAvdInfo.LogFileEntry |
领域
构建变量
public static final BUILD_VARS
公共构造函数
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
参数 |
---|
instanceName | String |
hostAndPort | HostAndPort |
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)
参数 |
---|
instanceName | String |
hostAndPort | HostAndPort |
errorType | ErrorIdentifier |
errors | String |
status | GceAvdInfo.GceStatus |
公共方法
getBuildVars
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 Integer getDeviceOffset ()
得到错误
public String getErrors ()
获取实例用户
public String getInstanceUser ()
获取日志
public getLogs ()
将映射从本地或远程日志路径返回到类型。
主机和端口
public HostAndPort hostAndPort ()
实例名称
public String instanceName ()
public boolean isIpPreconfigured ()
解析GceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
解析给定文件以获取 GCE AVD 设备信息。
参数 |
---|
f | File : ERROR(/File) 文件,用于从 GCE 驱动程序读取 JSON 输出。 |
descriptor | DeviceDescriptor :需要信息的设备的描述符。 |
remoteAdbPort | int :应该用于 adb 连接的远程端口 |
parseGceInfoFromOxygenClientOutput
public static parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes,
int remoteAdbPort)
解析 Oxygen 客户端二进制文件的给定命令行输出以获取租用的 AVD 信息。
参数 |
---|
oxygenRes | CommandResult :来自 Oxygen 客户端命令执行的CommandResult 。 |
remoteAdbPort | int :应该用于 adb 连接的远程端口 |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
解析给定的字符串以获取 GCE AVD 设备信息。
参数 |
---|
data | String :JSON 字符串。 |
descriptor | DeviceDescriptor :需要信息的设备的描述符。 |
remoteAdbPort | int :应该用于 adb 连接的远程端口 |
设置设备偏移量
public void setDeviceOffset (Integer deviceOffset)
设置实例用户
public void setInstanceUser (String instanceUser)
public void setIpPreconfigured (boolean isIpPreconfigured)
参数 |
---|
isIpPreconfigured | boolean |
到字符串
public String toString ()
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-03-30。
[{
"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":"其他"
}]