GceAvdInfo

public class GceAvdInfo
extends Object

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


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

สรุป

คลาสที่ซ้อนกัน

class GceAvdInfo.LogFileEntry

 

ทุ่ง

public static final List<String> BUILD_VARS

เครื่องมือสร้างสาธารณะ

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

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

HashMap<String, String> getBuildVars()

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

Integer getDeviceOffset()
ErrorIdentifier getErrorType()
String getErrors()
String getInstanceUser()
List<GceAvdInfo.LogFileEntry> getLogs()

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

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

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

static List<GceAvdInfo> 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 List<String> 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 HashMap<String, String> 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

การคืนสินค้า
HashMap<String, String>

getDeviceOffset

public Integer getDeviceOffset ()

การคืนสินค้า
Integer

getErrorType

public ErrorIdentifier getErrorType ()

การคืนสินค้า
ErrorIdentifier

getErrors

public String getErrors ()

การคืนสินค้า
String

getInstanceUser

public String getInstanceUser ()

การคืนสินค้า
String

getLogs

public List<GceAvdInfo.LogFileEntry> getLogs ()

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

การคืนสินค้า
List<GceAvdInfo.LogFileEntry>

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)

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

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

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

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

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

ส่ง
TargetSetupError

parseGceInfoFromOxygenClientOutput

public static List<GceAvdInfo> parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                TestDeviceOptions deviceOptions)

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

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

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

การคืนสินค้า
List<GceAvdInfo> เช่าอุปกรณ์ 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