嵌套類 |
---|
class | GceAvdInfo.LogFileEntry |
領域
建構變數
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_brana、emulator_build_id、system_build_target、system_branch、emulator_brana、d
取得設備偏移量
public Integer getDeviceOffset ()
取得錯誤
public String getErrors ()
取得實例用戶
public String getInstanceUser ()
取得日誌
public getLogs ()
將映射從本機或遠端日誌路徑返回到類型。
getSkipBugreportCollection
public boolean getSkipBugreportCollection ()
主機和連接埠
public HostAndPort hostAndPort ()
實例名
public String instanceName ()
public boolean isIpPreconfigured ()
從檔案解析GceInfo
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 連線的遠端端口 |
從字串解析GceInfo
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 setErrorType (ErrorIdentifier errorType)
參數 |
---|
errorType | ErrorIdentifier |
設定錯誤
public void setErrors (String errors)
設定實例用戶
public void setInstanceUser (String instanceUser)
public void setIpPreconfigured (boolean isIpPreconfigured)
參數 |
---|
isIpPreconfigured | boolean |
setSkipBugreportCollection
public void setSkipBugreportCollection (boolean skipBugreportCollection)
參數 |
---|
skipBugreportCollection | boolean |
到字串
public String toString ()
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間: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":"其他"
}]