GceAvdInfo
public class GceAvdInfo
extends Object
java.lang.Object |
?? | com.android.tradefed.device.cloud.GceAvdInfo |
Structure pour contenir les données pertinentes pour une instance GCE AVD donnée.
Sommaire
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
BUILD_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 de 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 ()
obtenir des erreurs
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 : ERROR(/File) fichier à lire la sortie JSON du pilote GCE. |
descriptor | DeviceDescriptor : le descripteur du dispositif 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 du dispositif 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 |
toString
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.
[]
[]