Để phù hợp với mô hình phát triển ổn định của nhánh chính và đảm bảo tính ổn định của nền tảng cho hệ sinh thái, chúng tôi sẽ xuất bản mã nguồn lên AOSP vào quý 2 và quý 4 năm 2026. Để tạo và đóng góp cho AOSP, hãy sử dụng android-latest-release. Nhánh tệp kê khai android-latest-release sẽ luôn tham chiếu đến bản phát hành gần đây nhất được chuyển đến AOSP. Để biết thêm thông tin, hãy xem bài viết Các thay đổi đối với AOSP.
Google sử dụng công nghệ AI để dịch nội dung sang ngôn ngữ bạn ưu tiên. Bản dịch bằng AI có thể có lỗi.
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 phiên bản AVD nhất định trên GCE.
Tóm tắt
Trường |
public
static
final
List<String> |
BUILD_VARS
|
Trường
BUILD_VARS
public static final List<String> 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 HashMap<String, String> 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.
| Giá trị trả về |
HashMap<String, String> |
|
getDeviceOffset
public Integer getDeviceOffset ()
getErrors
public String getErrors ()
getInstanceUser
public String getInstanceUser ()
getLogs
public List<GceAvdInfo.LogFileEntry> getLogs ()
Trả về bản đồ từ các đường dẫn nhật ký cục bộ hoặc từ xa đến các loại.
getOxygenationDeviceId
public String getOxygenationDeviceId ()
getSkipDeviceLogCollection
public boolean getSkipDeviceLogCollection ()
hostAndPort
public HostAndPort hostAndPort ()
| Giá trị trả về |
HostAndPort |
|
instanceName
public String instanceName ()
public boolean isIpPreconfigured ()
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
Phân tích một tệp nhất định để lấy thông tin thiết bị AVD GCE.
| Tham số |
f |
File: Tệp 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 cần được dùng cho kết nối adb |
parseGceInfoFromOxygenClientOutput
public static List<GceAvdInfo> parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes,
TestDeviceOptions deviceOptions)
Phân tích cú pháp một đầu ra dòng lệnh nhất định từ tệp nhị phân của ứng dụng Oxygen để lấy thông tin về AVD được thuê.
| Tham số |
oxygenRes |
CommandResult: CommandResult từ quá trình thực thi lệnh của ứng dụng Oxygen. |
deviceOptions |
TestDeviceOptions: TestDeviceOptions mô tả các lựa chọn của thiết bị |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
Phân tích 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: bộ mô tả của thiết bị cần thông tin. |
remoteAdbPort |
int: cổng từ xa cần được dùng cho kết nối adb |
setDeviceOffset
public void setDeviceOffset (Integer deviceOffset)
| Tham số |
deviceOffset |
Integer |
setErrorType
public void setErrorType (ErrorIdentifier errorType)
| Tham số |
errorType |
ErrorIdentifier |
setErrors
public void setErrors (String errors)
setInstanceUser
public void setInstanceUser (String instanceUser)
| Tham số |
instanceUser |
String |
public void setIpPreconfigured (boolean isIpPreconfigured)
| Tham số |
isIpPreconfigured |
boolean |
setOxygenationDeviceId
public void setOxygenationDeviceId (String deviceId)
setSkipBugreportCollection
public void setSkipBugreportCollection (boolean skipDeviceLogCollection)
| Tham số |
skipDeviceLogCollection |
boolean |
setSkipDeviceLogCollection
public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)
| Tham số |
skipDeviceLogCollection |
boolean |
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: 2026-06-22 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: 2026-06-22 UTC."],[],[]]