Структура для хранения соответствующих данных для данного экземпляра GCE AVD.
Вложенные классы enum
GceAvdInfo.GceStatus
Общественные конструкторы GceAvdInfo (String instanceName, HostAndPort hostAndPort)
GceAvdInfo (String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status)
Поля BUILD_VARS
public static final BUILD_VARS
Общественные конструкторы GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
Параметры instanceName
String
hostAndPort
HostAndPort
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)
Параметры instanceName
String
hostAndPort
HostAndPort
errorType
ErrorIdentifier
errors
String
status
GceAvdInfo.GceStatus
Публичные методы getBuildVars
public getBuildVars () Возвращает хэш информации о переменной сборки устройства GCE AVD.
Возможные ключи переменных сборки описаны в BUILD_VARS, например: 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 ()
getErrors
public String getErrors ()
hostAndPort
public HostAndPort hostAndPort ()
instanceName
public String instanceName ()
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort) Проанализируйте данный файл, чтобы получить информацию об устройстве GCE AVD.
Параметры f
File
: ERROR(/File)
файл для чтения вывода JSON из GCE драйвера. descriptor
DeviceDescriptor
: дескриптор устройства , которое нуждается в информации. remoteAdbPort
int
: удаленный порт , который должен использоваться для подключения ADB
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort) Проанализируйте заданную строку, чтобы получить информацию об устройстве GCE AVD.
Параметры data
String
: строка JSON. descriptor
DeviceDescriptor
: дескриптор устройства , которое нуждается в информации. remoteAdbPort
int
: удаленный порт , который должен использоваться для подключения ADB
нанизывать
public String toString ()
Отправить отзыв
Content and code samples on this page are subject to the licenses described in the Content License . Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-10-04 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Отсутствует нужная мне информация"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Слишком сложен/слишком много шагов"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Устарел"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Проблема с переводом текста"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Проблемы образцов/кода"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Другое"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Прост для понимания"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Помог мне решить мою проблему"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Другое"
}]
Хотите рассказать подробнее?