ตั้งแต่ปี 2026 เป็นต้นไป เราจะเผยแพร่ซอร์สโค้ดไปยัง AOSP ในไตรมาสที่ 2 และ 4 เพื่อให้สอดคล้องกับโมเดลการพัฒนาที่เสถียรของ Trunk และรับประกันความเสถียรของแพลตฟอร์มสำหรับระบบนิเวศ เราขอแนะนำให้ใช้ android-latest-release แทน aosp-main ในการสร้างและมีส่วนร่วมใน AOSP android-latest-release สาขาไฟล์ Manifest จะอ้างอิงถึงรุ่นล่าสุดที่พุชไปยัง AOSP เสมอ ดูข้อมูลเพิ่มเติมได้ที่การเปลี่ยนแปลงใน AOSP
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
GceAvdInfo
public
class
GceAvdInfo
extends Object
| java.lang.Object
|
| ↳ |
com.android.tradefed.device.cloud.GceAvdInfo
|
โครงสร้างสำหรับเก็บข้อมูลที่เกี่ยวข้องสำหรับอินสแตนซ์ AVD ของ GCE หนึ่งๆ
สรุป
ตัวสร้างแบบสาธารณะ |
GceAvdInfo(String instanceName, HostAndPort hostAndPort)
|
GceAvdInfo(String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status)
|
ช่อง
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
getErrorType
public ErrorIdentifier getErrorType ()
| คิกรีเทิร์น |
ErrorIdentifier |
|
getErrors
public String getErrors ()
hostAndPort
public HostAndPort hostAndPort ()
instanceName
public String instanceName ()
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
แยกวิเคราะห์ไฟล์ที่ระบุเพื่อรับข้อมูลอุปกรณ์ GCE AVD
| พารามิเตอร์ |
f |
File: ไฟล์ ERROR(/File) เพื่ออ่านเอาต์พุต JSON จากไดรเวอร์ GCE |
descriptor |
DeviceDescriptor: ตัวระบุอุปกรณ์ที่ต้องการข้อมูล |
remoteAdbPort |
int: พอร์ตระยะไกลที่ควรใช้สำหรับการเชื่อมต่อ adb |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
แยกวิเคราะห์สตริงที่ระบุเพื่อรับข้อมูลอุปกรณ์ AVD ของ GCE
| พารามิเตอร์ |
data |
String: สตริง JSON |
descriptor |
DeviceDescriptor: ตัวระบุอุปกรณ์ที่ต้องการข้อมูล |
remoteAdbPort |
int: พอร์ตระยะไกลที่ควรใช้สำหรับการเชื่อมต่อ adb |
setStatus
public void setStatus (GceAvdInfo.GceStatus status)
| พารามิเตอร์ |
status |
GceAvdInfo.GceStatus |
toString
public String toString ()
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-07-26 UTC"],[],[]]