Mulai tahun 2026, untuk menyelaraskan dengan model pengembangan stabil trunk kami dan memastikan stabilitas platform untuk ekosistem, kami akan memublikasikan kode sumber ke AOSP pada Kuartal 2 dan Kuartal 4. Untuk membangun dan berkontribusi ke AOSP, sebaiknya gunakan android-latest-release, bukan aosp-main. Cabang manifes android-latest-release akan selalu merujuk pada rilis terbaru yang di-push ke AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
GceAvdInfo
public
class
GceAvdInfo
extends Object
| java.lang.Object
|
| ↳ |
com.android.tradefed.device.cloud.GceAvdInfo
|
Struktur untuk menyimpan data yang relevan untuk instance AVD GCE tertentu.
Ringkasan
Kolom
BUILD_VARS
public static final BUILD_VARS
Konstruktor publik
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
| Parameter |
instanceName |
String |
hostAndPort |
HostAndPort |
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)
| Parameter |
instanceName |
String |
hostAndPort |
HostAndPort |
errorType |
ErrorIdentifier |
errors |
String |
status |
GceAvdInfo.GceStatus |
Metode publik
getBuildVars
public getBuildVars ()
Menampilkan hash informasi variabel build perangkat AVD GCE.
Kemungkinan kunci variabel build dijelaskan di BUILD_VARS, misalnya: 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 ()
Menampilkan peta dari jalur log lokal atau jarak jauh ke jenis.
getOxygenationDeviceId
public String getOxygenationDeviceId ()
getSkipDeviceLogCollection
public boolean getSkipDeviceLogCollection ()
hostAndPort
public HostAndPort hostAndPort ()
instanceName
public String instanceName ()
public boolean isIpPreconfigured ()
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
Mengurai file tertentu untuk mendapatkan info perangkat AVD GCE.
| Parameter |
f |
File: File ERROR(/File) untuk membaca output JSON dari Driver GCE. |
descriptor |
DeviceDescriptor: deskripsi perangkat yang memerlukan info. |
remoteAdbPort |
int: port jarak jauh yang harus digunakan untuk koneksi adb |
parseGceInfoFromOxygenClientOutput
public static parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes,
TestDeviceOptions deviceOptions)
Mengurai output command line tertentu dari biner klien Oxygen untuk mendapatkan info AVD yang disewa.
| Parameter |
oxygenRes |
CommandResult: CommandResult dari eksekusi perintah klien Oxygen. |
deviceOptions |
TestDeviceOptions: TestDeviceOptions yang menjelaskan opsi perangkat |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
Mengurai string tertentu untuk mendapatkan info perangkat AVD GCE.
| Parameter |
data |
String: String JSON. |
descriptor |
DeviceDescriptor: deskripsi perangkat yang memerlukan info. |
remoteAdbPort |
int: port jarak jauh yang harus digunakan untuk koneksi adb |
setDeviceOffset
public void setDeviceOffset (Integer deviceOffset)
| Parameter |
deviceOffset |
Integer |
setErrorType
public void setErrorType (ErrorIdentifier errorType)
| Parameter |
errorType |
ErrorIdentifier |
setErrors
public void setErrors (String errors)
setInstanceUser
public void setInstanceUser (String instanceUser)
| Parameter |
instanceUser |
String |
public void setIpPreconfigured (boolean isIpPreconfigured)
| Parameter |
isIpPreconfigured |
boolean |
setOxygenationDeviceId
public void setOxygenationDeviceId (String deviceId)
| Parameter |
deviceId |
String |
setSkipBugreportCollection
public void setSkipBugreportCollection (boolean skipDeviceLogCollection)
| Parameter |
skipDeviceLogCollection |
boolean |
setSkipDeviceLogCollection
public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)
| Parameter |
skipDeviceLogCollection |
boolean |
toString
public String toString ()
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[]]