GceAvdInfo

public class GceAvdInfo
extends Object

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


โครงสร้างสำหรับเก็บข้อมูลที่เกี่ยวข้องสำหรับอินสแตนซ์ AVD ของ GCE หนึ่งๆ

สรุป

ชั้นเรียนที่ซ้อนกัน

class GceAvdInfo.LogFileEntry

 

ช่อง

public static final BUILD_VARS

ตัวสร้างแบบสาธารณะ

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

เมธอดสาธารณะ

getBuildVars()

แสดงแฮชข้อมูลตัวแปรบิลด์ของอุปกรณ์ AVD ใน GCE

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

เปลี่ยนแผนที่จากเส้นทางบันทึกในเครื่องหรือระยะไกลเป็นประเภท

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

แยกวิเคราะห์ไฟล์ที่ระบุเพื่อรับข้อมูลอุปกรณ์ GCE AVD

static parseGceInfoFromOxygenClientOutput(CommandResult oxygenRes, TestDeviceOptions deviceOptions)

แยกวิเคราะห์เอาต์พุตบรรทัดคำสั่งที่ระบุจากไบนารีไคลเอ็นต์ Oxygen เพื่อรับข้อมูล AVD ที่เช่า

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

แยกวิเคราะห์สตริงที่ระบุเพื่อรับข้อมูลอุปกรณ์ AVD ของ GCE

void setDeviceOffset(Integer deviceOffset)
void setErrorType(ErrorIdentifier errorType)
void setErrors(String errors)
void setInstanceUser(String instanceUser)
void setIpPreconfigured(boolean isIpPreconfigured)
void setOxygenationDeviceId(String deviceId)
void setSkipBugreportCollection(boolean skipDeviceLogCollection)
void setSkipDeviceLogCollection(boolean skipDeviceLogCollection)
void setStatus(GceAvdInfo.GceStatus status)
String toString()

ช่อง

BUILD_VARS

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 ()

แสดงแฮชข้อมูลตัวแปรบิลด์ของอุปกรณ์ AVD ใน GCE

คีย์ตัวแปรการสร้างที่เป็นไปได้จะอธิบายไว้ใน 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

คิกรีเทิร์น

getDeviceOffset

public Integer getDeviceOffset ()

คิกรีเทิร์น
Integer

getErrorType

public ErrorIdentifier getErrorType ()

คิกรีเทิร์น
ErrorIdentifier

getErrors

public String getErrors ()

คิกรีเทิร์น
String

getInstanceUser

public String getInstanceUser ()

คิกรีเทิร์น
String

getLogs

public  getLogs ()

เปลี่ยนแผนที่จากเส้นทางบันทึกในเครื่องหรือระยะไกลเป็นประเภท

คิกรีเทิร์น

getOxygenationDeviceId

public String getOxygenationDeviceId ()

คิกรีเทิร์น
String

getSkipDeviceLogCollection

public boolean getSkipDeviceLogCollection ()

คิกรีเทิร์น
boolean

getStatus

public GceAvdInfo.GceStatus getStatus ()

คิกรีเทิร์น
GceAvdInfo.GceStatus

hostAndPort

public HostAndPort hostAndPort ()

คิกรีเทิร์น
HostAndPort

instanceName

public String instanceName ()

คิกรีเทิร์น
String

isIpPreconfigured

public boolean isIpPreconfigured ()

คิกรีเทิร์น
boolean

parseGceInfoFromFile

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

แยกวิเคราะห์ไฟล์ที่ระบุเพื่อรับข้อมูลอุปกรณ์ GCE AVD

พารามิเตอร์
f File: ไฟล์ ERROR(/File) เพื่ออ่านเอาต์พุต JSON จากไดรเวอร์ GCE

descriptor DeviceDescriptor: ตัวระบุอุปกรณ์ที่ต้องการข้อมูล

remoteAdbPort int: พอร์ตระยะไกลที่ควรใช้สำหรับการเชื่อมต่อ adb

คิกรีเทิร์น
GceAvdInfo GceAvdInfo ของอุปกรณ์หากพบ หรือ Null หากเกิดข้อผิดพลาด

การโยน
TargetSetupError

parseGceInfoFromOxygenClientOutput

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                TestDeviceOptions deviceOptions)

แยกวิเคราะห์เอาต์พุตบรรทัดคำสั่งที่ระบุจากไบนารีไคลเอ็นต์ Oxygen เพื่อรับข้อมูล AVD ที่เช่า

พารามิเตอร์
oxygenRes CommandResult: CommandResult จากการดำเนินการคำสั่งไคลเอ็นต์ Oxygen

deviceOptions TestDeviceOptions: TestDeviceOptions ที่อธิบายตัวเลือกอุปกรณ์

คิกรีเทิร์น
เช่าอุปกรณ์ ERROR(/List) เครื่องเรียบร้อยแล้ว จะแสดง TargetSetupError หากเช่าอุปกรณ์ไม่สำเร็จ

การโยน
TargetSetupError

parseGceInfoFromString

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

แยกวิเคราะห์สตริงที่ระบุเพื่อรับข้อมูลอุปกรณ์ AVD ของ GCE

พารามิเตอร์
data String: สตริง JSON

descriptor DeviceDescriptor: ตัวระบุอุปกรณ์ที่ต้องการข้อมูล

remoteAdbPort int: พอร์ตระยะไกลที่ควรใช้สำหรับการเชื่อมต่อ adb

คิกรีเทิร์น
GceAvdInfo GceAvdInfo ของอุปกรณ์หากพบ หรือ Null หากเกิดข้อผิดพลาด

การโยน
TargetSetupError

setDeviceOffset

public void setDeviceOffset (Integer deviceOffset)

พารามิเตอร์
deviceOffset Integer

setErrorType

public void setErrorType (ErrorIdentifier errorType)

พารามิเตอร์
errorType ErrorIdentifier

setErrors

public void setErrors (String errors)

พารามิเตอร์
errors String

setInstanceUser

public void setInstanceUser (String instanceUser)

พารามิเตอร์
instanceUser String

setIpPreconfigured

public void setIpPreconfigured (boolean isIpPreconfigured)

พารามิเตอร์
isIpPreconfigured boolean

setOxygenationDeviceId

public void setOxygenationDeviceId (String deviceId)

พารามิเตอร์
deviceId String

setSkipBugreportCollection

public void setSkipBugreportCollection (boolean skipDeviceLogCollection)

พารามิเตอร์
skipDeviceLogCollection boolean

setSkipDeviceLogCollection

public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)

พารามิเตอร์
skipDeviceLogCollection boolean

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

พารามิเตอร์
status GceAvdInfo.GceStatus

toString

public String toString ()

คิกรีเทิร์น
String