Informacje o GceAvd

public class GceAvdInfo
extends Object

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


Struktura przechowywania odpowiednich danych dla danej instancji AVD GCE.

Podsumowanie

Zagnieżdżone klasy

class GceAvdInfo.LogFileEntry

 

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 zmiennej kompilacji dla urządzenia GCE AVD.

Integer getDeviceOffset()
ErrorIdentifier getErrorType()
String getErrors()
String getInstanceUser()
getLogs()

Zwraca mapę z lokalnych lub zdalnych ścieżek logów do typów.

String getOxygenationDeviceId()
boolean getSkipDeviceLogCollection()
GceAvdInfo.GceStatus getStatus()
HostAndPort hostAndPort()
String instanceName()
boolean isIpPreconfigured()
boolean isOxygenationDevice()
static GceAvdInfo parseGceInfoFromFile(File f, DeviceDescriptor descriptor, int remoteAdbPort)

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

static parseGceInfoFromOxygenClientOutput(CommandResult oxygenRes, int remoteAdbPort)

Przeanalizuj dane wyjściowe wiersza poleceń z pliku binarnego klienta Oxygen, aby uzyskać wypożyczone informacje o AVD.

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

Przeanalizuj dany ciąg, aby uzyskać informacje o urządzeniu GCE AVD.

void setDeviceOffset(Integer deviceOffset)
void setErrorType(ErrorIdentifier errorType)
void setErrors(String errors)
void setInstanceUser(String instanceUser)
void setIpPreconfigured(boolean isIpPreconfigured)
void setSkipBugreportCollection(boolean skipDeviceLogCollection)
void setSkipDeviceLogCollection(boolean skipDeviceLogCollection)
void setStatus(GceAvdInfo.GceStatus status)
String toString()

Fieldsem

BUILD_VARS,

public static final  BUILD_VARS

Konstruktory publiczne

Informacje o GceAvd

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

Parametry
instanceName String

hostAndPort HostAndPort

Informacje o GceAvd

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

pobieranie zmiennych kompilacji

public  getBuildVars ()

Zwraca hasz informacji o zmiennej kompilacji dla urządzenia GCE AVD.

Możliwe klucze zmiennych kompilacji są opisane w BUILD_VARS, na przykład: identyfikator_kompilacji, gałąź, identyfikator_kompilacji, kernel_build_target, kernel_branch, system_build_id, system_build_target, system_branch, emulator_build_id, emulator_build_target,

Zwroty

getDeviceOffset

public Integer getDeviceOffset ()

Zwroty
Integer

getErrorType

public ErrorIdentifier getErrorType ()

Zwroty
ErrorIdentifier

getErrors

public String getErrors ()

Zwroty
String

getInstanceUser

public String getInstanceUser ()

Zwroty
String

getLogs

public  getLogs ()

Zwraca mapę z lokalnych lub zdalnych ścieżek logów do typów.

Zwroty

Identyfikator urządzenia getOxygenationDeviceId

public String getOxygenationDeviceId ()

Zwroty
String

getSkipDeviceLogCollection

public boolean getSkipDeviceLogCollection ()

Zwroty
boolean

getStatus

public GceAvdInfo.GceStatus getStatus ()

Zwroty
GceAvdInfo.GceStatus

hostAndPort

public HostAndPort hostAndPort ()

Zwroty
HostAndPort

nazwa_instancji

public String instanceName ()

Zwroty
String

Wstępnie skonfigurowany adres IP

public boolean isIpPreconfigured ()

Zwroty
boolean

Urządzenie do nasycenia tlenem

public boolean isOxygenationDevice ()

Zwroty
boolean

parseGceInfoFromFile

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

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

Parametry
f File: plik ERROR(/File) umożliwiający odczyt danych wyjściowych JSON ze sterownika GCE.

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

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

Zwroty
GceAvdInfo GceAvdInfo urządzenia, jeśli został znaleziony, lub wartość null w przypadku błędu.

Rzuty
TargetSetupError

parseGceInfoFromOxygenClientOutput

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

Przeanalizuj dane wyjściowe wiersza poleceń z pliku binarnego klienta Oxygen, aby uzyskać wypożyczone informacje o AVD.

Parametry
oxygenRes CommandResult: CommandResult z wykonania polecenia klienta Oxygen.

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

Zwroty
Wypożyczono ERROR(/List) urządzeń. Jeśli nie uda się dzierżawić urządzenia, powoduje zgłoszenie TargetSetupError.

Rzuty
TargetSetupError

parseGceInfoFromString

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

Przeanalizuj dany ciąg, aby uzyskać informacje o urządzeniu GCE AVD.

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

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

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

Zwroty
GceAvdInfo GceAvdInfo urządzenia, jeśli został znaleziony, lub wartość null w przypadku błędu.

Rzuty
TargetSetupError

setDeviceOffset

public void setDeviceOffset (Integer deviceOffset)

Parametry
deviceOffset Integer

Typ_błędu

public void setErrorType (ErrorIdentifier errorType)

Parametry
errorType ErrorIdentifier

setErrors

public void setErrors (String errors)

Parametry
errors String

setInstanceUser

public void setInstanceUser (String instanceUser)

Parametry
instanceUser String

Wstępnie skonfigurowane ustawienia setIp

public void setIpPreconfigured (boolean isIpPreconfigured)

Parametry
isIpPreconfigured boolean

setPomińBugreportCollection

public void setSkipBugreportCollection (boolean skipDeviceLogCollection)

Parametry
skipDeviceLogCollection boolean

setSkipDeviceLogCollection

public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)

Parametry
skipDeviceLogCollection boolean

setStatus

public void setStatus (GceAvdInfo.GceStatus status)

Parametry
status GceAvdInfo.GceStatus

Ciąg

public String toString ()

Zwroty
String