Kể từ ngày 27 tháng 3 năm 2025, bạn nên sử dụng android-latest-release
thay vì aosp-main
để xây dựng và đóng góp cho AOSP. Để biết thêm thông tin, hãy xem phần Thay đổi đối với AOSP.
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
GceAvdInfo
public
class
GceAvdInfo
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.device.cloud.GceAvdInfo
|
Cấu trúc để lưu giữ dữ liệu liên quan cho một thực thể AVD GCE nhất định.
Tóm tắt
Hàm khởi tạo công khai |
GceAvdInfo(String instanceName, HostAndPort hostAndPort)
|
GceAvdInfo(String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status)
|
Trường
BUILD_VARS
public static final BUILD_VARS
Hàm khởi tạo công khai
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
Tham số |
instanceName |
String |
hostAndPort |
HostAndPort |
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)
Tham 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ị AVD GCE.
Các khoá biến bản dựng có thể có đượ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.
getErrorType
public ErrorIdentifier getErrorType ()
Giá trị trả về |
ErrorIdentifier |
|
getErrors
public String getErrors ()
hostAndPort
public HostAndPort hostAndPort ()
Giá trị trả về |
HostAndPort |
|
instanceName
public String instanceName ()
parseGceInfoFromFile
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ị AVD GCE.
Tham số |
f |
File : Tệp ERROR(/File) để đọc đầu ra JSON từ Trình điều khiển GCE. |
descriptor |
DeviceDescriptor : chỉ số mô tả của thiết bị cần thông tin. |
remoteAdbPort |
int : cổng từ xa cần dùng để kết nối adb |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
Phân tích cú pháp một chuỗi nhất định để lấy thông tin thiết bị AVD GCE.
Tham số |
data |
String : Chuỗi JSON. |
descriptor |
DeviceDescriptor : chỉ số mô tả của thiết bị cần thông tin. |
remoteAdbPort |
int : cổng từ xa cần dùng để kết nối adb |
toString
public String toString ()
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2025-03-26 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 2025-03-26 UTC."],[],[]]