Structure permettant de contenir les données pertinentes pour une instance GCE AVD donnée.
Classes imbriquées |
---|
enum | GceAvdInfo.GceStatus |
Constructeurs publics |
---|
GceAvdInfo (String instanceName, HostAndPort hostAndPort) |
GceAvdInfo (String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status) |
Des champs
CONSTRUIRE_VARS
public static final BUILD_VARS
Constructeurs publics
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
Paramètres |
---|
instanceName | String |
hostAndPort | HostAndPort |
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)
Paramètres |
---|
instanceName | String |
hostAndPort | HostAndPort |
errorType | ErrorIdentifier |
errors | String |
status | GceAvdInfo.GceStatus |
Méthodes publiques
getBuildVars
public getBuildVars ()
Renvoie le hachage des informations sur la variable de construction du périphérique GCE AVD.
Les clés de variables de construction possibles sont décrites dans BUILD_VARS, par exemple : 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 ()
obtenirErreurs
public String getErrors ()
hôteEtPort
public HostAndPort hostAndPort ()
nom de l'instance
public String instanceName ()
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
Analysez un fichier donné pour obtenir les informations sur le périphérique GCE AVD.
Paramètres |
---|
f | File : fichier ERROR(/File) pour lire la sortie JSON du pilote GCE. |
descriptor | DeviceDescriptor : le descripteur de l’appareil qui a besoin de l’information. |
remoteAdbPort | int : le port distant qui doit être utilisé pour la connexion adb |
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
Analysez une chaîne donnée pour obtenir les informations sur le périphérique GCE AVD.
Paramètres |
---|
data | String : chaîne JSON. |
descriptor | DeviceDescriptor : le descripteur de l’appareil qui a besoin de l’information. |
remoteAdbPort | int : le port distant qui doit être utilisé pour la connexion adb |
setStatus
public void setStatus (GceAvdInfo.GceStatus status)
Paramètres |
---|
status | GceAvdInfo.GceStatus |
versChaîne
public String toString ()
Le contenu et les exemples de code de cette page sont soumis aux licences décrites dans la Licence de contenu. Java et OpenJDK sont des marques ou des marques déposées d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2023/12/01 (UTC).
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Il n'y a pas l'information dont j'ai besoin"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Trop compliqué/Trop d'étapes"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Obsolète"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Problème de traduction"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Mauvais exemple/Erreur de code"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Autre"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Facile à comprendre"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"J'ai pu résoudre mon problème"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Autre"
}]