Struktur untuk menyimpan data yang relevan untuk instance GCE AVD tertentu.
Kelas bersarang |
---|
enum | GceAvdInfo.GceStatus |
Konstruktor publik |
---|
GceAvdInfo (String instanceName, HostAndPort hostAndPort) |
GceAvdInfo (String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status) |
Bidang
MEMBANGUN_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
dapatkanBuildVars
public getBuildVars ()
Mengembalikan hash informasi variabel build perangkat GCE AVD.
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.
getErrorType
public ErrorIdentifier getErrorType ()
dapatkan Kesalahan
public String getErrors ()
hostAndPort
public HostAndPort hostAndPort ()
nama instansi
public String instanceName ()
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
Parsing file tertentu untuk mendapatkan info perangkat GCE AVD.
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 |
Melempar |
---|
TargetSetupError | |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
Parsing string tertentu untuk mendapatkan info perangkat GCE AVD.
Parameter |
---|
data | String : tali JSON. |
descriptor | DeviceDescriptor : deskripsi perangkat yang memerlukan info. |
remoteAdbPort | int : port jarak jauh yang harus digunakan untuk koneksi adb |
Melempar |
---|
TargetSetupError | |
keString
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 2023-12-01 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Informasi yang saya butuhkan tidak ada"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Terlalu rumit/langkahnya terlalu banyak"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Sudah usang"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Masalah terjemahan"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Masalah kode / contoh"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Lainnya"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Mudah dipahami"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Memecahkan masalah saya"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Lainnya"
}]