GceAvdInfo

public class GceAvdInfo
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.cloud.GceAvdInfo


Struktura do przechowywania odpowiednich danych dla danego wystąpienia AVD w GCE.

Podsumowanie

Zagnieżdżone klasy

enum GceAvdInfo.GceStatus

 

Fieldsem

public static final BUILD_VARS

Konstruktory publiczne

GceAvdInfo(String instanceName, HostAndPort hostAndPort)
GceAvdInfo(String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status)

Metody publiczne

getBuildVars()

Zwraca hasz informacji o zmiennych kompilacji urządzenia AVD w Google Cloud Platform.

ErrorIdentifier getErrorType()
String getErrors()
GceAvdInfo.GceStatus getStatus()
HostAndPort hostAndPort()
String instanceName()
static GceAvdInfo parseGceInfoFromFile(File f, DeviceDescriptor descriptor, int remoteAdbPort)

Przeanalizuj dany plik, aby uzyskać informacje o urządzeniu AVD w GCE.

static GceAvdInfo parseGceInfoFromString(String data, DeviceDescriptor descriptor, int remoteAdbPort)

Przeanalizuj podany ciąg znaków, aby uzyskać informacje o urządzeniu AVD w Google Cloud.

void setStatus(GceAvdInfo.GceStatus status)
String toString()

Fieldsem

BUILD_VARS

public static final  BUILD_VARS

Konstruktory publiczne

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

Parametry
instanceName String

hostAndPort HostAndPort

GceAvdInfo

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort, 
                ErrorIdentifier errorType, 
                String errors, 
                GceAvdInfo.GceStatus status)

Parametry
instanceName String

hostAndPort HostAndPort

errorType ErrorIdentifier

errors String

status GceAvdInfo.GceStatus

Metody publiczne

getBuildVars

public  getBuildVars ()

Zwraca hasz informacji o zmiennych kompilacji urządzenia AVD w Google Cloud Platform.

Możliwe klucze zmiennych kompilacji są opisane w BUILD_VARS, np. 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.

Zwroty

getErrorType

public ErrorIdentifier getErrorType ()

Zwroty
ErrorIdentifier

getErrors

public String getErrors ()

Zwroty
String

getStatus

public GceAvdInfo.GceStatus getStatus ()

Zwroty
GceAvdInfo.GceStatus

hostAndPort

public HostAndPort hostAndPort ()

Zwroty
HostAndPort

instanceName

public String instanceName ()

Zwroty
String

parseGceInfoFromFile

public static GceAvdInfo parseGceInfoFromFile (File f, 
                DeviceDescriptor descriptor, 
                int remoteAdbPort)

Przeanalizuj dany plik, aby uzyskać informacje o urządzeniu AVD w GCE.

Parametry
f File: plik ERROR(/File) służący do odczytania danych wyjściowych w formacie JSON z sterownika GCE.

descriptor DeviceDescriptor: opis urządzenia, które potrzebuje informacji.

remoteAdbPort int: port zdalny, który powinien być używany do połączenia adb

Zwroty
GceAvdInfo GceAvdInfo urządzenia, jeśli zostało znalezione, lub null, jeśli wystąpił błąd.

Rzuty
TargetSetupError

parseGceInfoFromString

public static GceAvdInfo parseGceInfoFromString (String data, 
                DeviceDescriptor descriptor, 
                int remoteAdbPort)

Przeanalizuj podany ciąg znaków, aby uzyskać informacje o urządzeniu AVD w Google Cloud.

Parametry
data String: ciąg znaków JSON.

descriptor DeviceDescriptor: opis urządzenia, które potrzebuje informacji.

remoteAdbPort int: port zdalny, który powinien być używany do połączenia adb

Zwroty
GceAvdInfo GceAvdInfo urządzenia, jeśli zostało znalezione, lub null, jeśli wystąpił błąd.

Rzuty
TargetSetupError

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

Parametry
status GceAvdInfo.GceStatus

toString

public String toString ()

Zwroty
String