Kể từ năm 2026, để 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. Để tạo và đóng góp cho AOSP, bạn nên sử dụng android-latest-release thay vì aosp-main. 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 uses AI technology to translate content into your preferred language. AI translations can contain errors.
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
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.
getDeviceOffset
public Integer getDeviceOffset ()
getErrors
public String getErrors ()
getInstanceUser
public String getInstanceUser ()
getLogs
public getLogs ()
Trả về bản đồ từ đườ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 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 |
parseGceInfoFromOxygenClientOutput
public static 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 ứng dụng Oxygen để lấy thông tin AVD đã thuê.
| Tham số |
oxygenRes |
CommandResult: CommandResult từ quá trình thực thi lệnh ứng dụng Oxygen. |
deviceOptions |
TestDeviceOptions: TestDeviceOptions mô tả các tuỳ chọn thiết bị |
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 |
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: 2025-07-27 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-07-27 UTC."],[],[]]