Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.

GceAvdInfo

public class GceAvdInfo
extends Object

java.lang.Object
com.android.tradefed.device.cloud.GceAvdInfo


Cấu trúc để giữ dữ liệu liên quan cho một phiên bản GCE AVD nhất định.

Bản tóm tắt

các lớp lồng nhau

class GceAvdInfo.LogFileEntry

Lĩnh vực

public static final BUILD_VARS

nhà thầu công cộng

GceAvdInfo (String instanceName, HostAndPort hostAndPort)
GceAvdInfo (String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status)

Phương thức công khai

getBuildVars ()

Trả về hàm băm thông tin biến bản dựng của thiết bị GCE AVD.

Integer getDeviceOffset ()
ErrorIdentifier getErrorType ()
String getErrors ()
String getInstanceUser ()
getLogs ()

Trả lại bản đồ từ các đường dẫn nhật ký cục bộ hoặc từ xa về các loại.

GceAvdInfo.GceStatus getStatus ()
HostAndPort hostAndPort ()
String instanceName ()
boolean isIpPreconfigured ()
static GceAvdInfo parseGceInfoFromFile (File f, DeviceDescriptor descriptor, int remoteAdbPort)

Phân tích cú pháp một tệp nhất định để lấy thông tin thiết bị GCE AVD.

static parseGceInfoFromOxygenClientOutput ( CommandResult oxygenRes, int remoteAdbPort)

Phân tích cú pháp đầu ra dòng lệnh đã cho từ tệp nhị phân máy khách Oxygen để lấy thông tin AVD đã thuê.

static GceAvdInfo parseGceInfoFromString (String data, DeviceDescriptor descriptor, int remoteAdbPort)

Phân tích cú pháp một chuỗi đã cho để lấy thông tin thiết bị GCE AVD.

void setDeviceOffset (Integer deviceOffset)
void setInstanceUser (String instanceUser)
void setIpPreconfigured (boolean isIpPreconfigured)
void setStatus ( GceAvdInfo.GceStatus status)
String toString ()

Lĩnh vực

BUILD_VARS

public static final  BUILD_VARS

nhà thầu công cộng

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

Thông số
instanceName String

hostAndPort HostAndPort

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort, 
                ErrorIdentifier errorType, 
                String errors, 
                GceAvdInfo.GceStatus status)

Thông số
instanceName String

hostAndPort HostAndPort

errorType ErrorIdentifier

errors String

status GceAvdInfo.GceStatus

Phương thức công khai

getBuildVars

public  getBuildVars ()

Trả về hàm băm thông tin biến bản dựng của thiết bị GCE AVD.

Các khóa biến bản dựng có thể được mô tả trong BUILD_VARS, ví dụ: 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.

trả lại

getDeviceOffset

public Integer getDeviceOffset ()

trả lại
Integer

getErrorType

public ErrorIdentifier getErrorType ()

trả lại
ErrorIdentifier

nhận lỗi

public String getErrors ()

trả lại
String

getInstanceUser

public String getInstanceUser ()

trả lại
String

getLogs

public  getLogs ()

Trả lại bản đồ từ các đường dẫn nhật ký cục bộ hoặc từ xa về các loại.

trả lại

getStatus

public GceAvdInfo.GceStatus getStatus ()

trả lại
GceAvdInfo.GceStatus

máy chủAndPort

public HostAndPort hostAndPort ()

trả lại
HostAndPort

instanceName

public String instanceName ()

trả lại
String

isIpĐược cấu hình sẵn

public boolean isIpPreconfigured ()

trả lại
boolean

phân tích cú pháp GceInfoFromFile

public static GceAvdInfo parseGceInfoFromFile (File f, 
                DeviceDescriptor descriptor, 
                int remoteAdbPort)

Phân tích cú pháp một tệp nhất định để lấy thông tin thiết bị GCE AVD.

Thông số
f File : Tệp ERROR(/File) để đọc đầu ra JSON từ Trình điều khiển GCE.

descriptor DeviceDescriptor : bộ mô tả của thiết bị cần thông tin.

remoteAdbPort int : cổng từ xa sẽ được sử dụng cho kết nối adb

trả lại
GceAvdInfo GceAvdInfo của thiết bị nếu tìm thấy hoặc null nếu có lỗi.

ném
TargetSetupError

parseGceInfoFromOxygenClientOutput

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

Phân tích cú pháp đầu ra dòng lệnh đã cho từ tệp nhị phân máy khách Oxygen để lấy thông tin AVD đã thuê.

Thông số
oxygenRes CommandResult : CommandResult từ thực thi lệnh máy khách Oxygen.

remoteAdbPort int : cổng từ xa sẽ được sử dụng cho kết nối adb

trả lại
ERROR(/List) thiết bị đã thuê thành công. Sẽ ném TargetSetupError nếu không thuê được thiết bị.

ném
TargetSetupError

phân tích cú phápGceInfoFromString

public static GceAvdInfo parseGceInfoFromString (String data, 
                DeviceDescriptor descriptor, 
                int remoteAdbPort)

Phân tích cú pháp một chuỗi đã cho để lấy thông tin thiết bị GCE AVD.

Thông số
data String : Chuỗi JSON.

descriptor DeviceDescriptor : bộ mô tả của thiết bị cần thông tin.

remoteAdbPort int : cổng từ xa sẽ được sử dụng cho kết nối adb

trả lại
GceAvdInfo GceAvdInfo của thiết bị nếu tìm thấy hoặc null nếu có lỗi.

ném
TargetSetupError

setDeviceOffset

public void setDeviceOffset (Integer deviceOffset)

Thông số
deviceOffset Integer

setInstanceUser

public void setInstanceUser (String instanceUser)

Thông số
instanceUser String

setIpĐược cấu hình sẵn

public void setIpPreconfigured (boolean isIpPreconfigured)

Thông số
isIpPreconfigured boolean

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

Thông số
status GceAvdInfo.GceStatus

toString

public String toString ()

trả lại
String