GceAvdInfo
public
class
GceAvdInfo
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.cloud.GceAvdInfo |
Struktura zawierająca odpowiednie dane dotyczące danej instancji AVD GCE.
Podsumowanie
Zagnieżdżone klasy | |
|---|---|
class |
GceAvdInfo.LogFileEntry
|
Pola | |
|---|---|
public
static
final
List<String> |
BUILD_VARS
|
Konstruktory publiczne | |
|---|---|
GceAvdInfo(String instanceName, HostAndPort hostAndPort)
|
|
GceAvdInfo(String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status)
|
|
Metody publiczne | |
|---|---|
HashMap<String, String>
|
getBuildVars()
Zwracać hash informacji o zmiennej kompilacji urządzenia AVD w GCE. |
Integer
|
getDeviceOffset()
|
ErrorIdentifier
|
getErrorType()
|
String
|
getErrors()
|
String
|
getInstanceUser()
|
List<GceAvdInfo.LogFileEntry>
|
getLogs()
Zwróć mapę ze ścieżek dzienników lokalnych lub zdalnych do typów. |
String
|
getOxygenationDeviceId()
|
boolean
|
getSkipDeviceLogCollection()
|
GceAvdInfo.GceStatus
|
getStatus()
|
HostAndPort
|
hostAndPort()
|
String
|
instanceName()
|
boolean
|
isIpPreconfigured()
|
static
GceAvdInfo
|
parseGceInfoFromFile(File f, DeviceDescriptor descriptor, int remoteAdbPort)
Przeanalizuj podany plik, aby uzyskać informacje o urządzeniu AVD w GCE. |
static
List<GceAvdInfo>
|
parseGceInfoFromOxygenClientOutput(CommandResult oxygenRes, TestDeviceOptions deviceOptions)
Analizowanie danych wyjściowych wiersza poleceń z binarnego klienta Oxygen w celu uzyskania informacji o wypożyczonym AVD. |
static
GceAvdInfo
|
parseGceInfoFromString(String data, DeviceDescriptor descriptor, int remoteAdbPort)
Analizowanie podanego ciągu znaków w celu uzyskania informacji 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
|
setOxygenationDeviceId(String deviceId)
|
void
|
setSkipBugreportCollection(boolean skipDeviceLogCollection)
|
void
|
setSkipDeviceLogCollection(boolean skipDeviceLogCollection)
|
void
|
setStatus(GceAvdInfo.GceStatus status)
|
String
|
toString()
|
Pola
BUILD_VARS
public static final List<String> 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 HashMap<String, String> getBuildVars ()
Zwracać hash informacji o zmiennej kompilacji urządzenia AVD w GCE.
Możliwe klucze zmiennych kompilacji są opisane w sekcji 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.
| Zwraca | |
|---|---|
HashMap<String, String> |
|
getDeviceOffset
public Integer getDeviceOffset ()
| Zwraca | |
|---|---|
Integer |
|
getErrors
public String getErrors ()
| Zwraca | |
|---|---|
String |
|
getInstanceUser
public String getInstanceUser ()
| Zwraca | |
|---|---|
String |
|
getLogs
public List<GceAvdInfo.LogFileEntry> getLogs ()
Zwróć mapę ze ścieżek dzienników lokalnych lub zdalnych do typów.
| Zwraca | |
|---|---|
List<GceAvdInfo.LogFileEntry> |
|
getOxygenationDeviceId
public String getOxygenationDeviceId ()
| Zwraca | |
|---|---|
String |
|
getSkipDeviceLogCollection
public boolean getSkipDeviceLogCollection ()
| Zwraca | |
|---|---|
boolean |
|
hostAndPort
public HostAndPort hostAndPort ()
| Zwraca | |
|---|---|
HostAndPort |
|
instanceName
public String instanceName ()
| Zwraca | |
|---|---|
String |
|
isIpPreconfigured
public boolean isIpPreconfigured ()
| Zwraca | |
|---|---|
boolean |
|
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f, DeviceDescriptor descriptor, int remoteAdbPort)
Przetwarzanie podanego pliku w celu uzyskania informacji o urządzeniu AVD w GCE.
| Parametry | |
|---|---|
f |
File: File plik do odczytywania danych wyjściowych JSON z usługi GCE Driver. |
descriptor |
DeviceDescriptor: opis urządzenia, które potrzebuje informacji. |
remoteAdbPort |
int: port zdalny, który ma być używany do połączenia adb |
| Zwraca | |
|---|---|
GceAvdInfo |
GceAvdInfo urządzenia, jeśli zostanie znalezione, lub wartość null w przypadku błędu. |
| Zgłasza | |
|---|---|
TargetSetupError |
|
parseGceInfoFromOxygenClientOutput
public static List<GceAvdInfo> parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, TestDeviceOptions deviceOptions)
Analizowanie danych wyjściowych wiersza poleceń z binarnego klienta Oxygen w celu uzyskania informacji o wypożyczonym AVD.
| Parametry | |
|---|---|
oxygenRes |
CommandResult: CommandResult z wykonania polecenia klienta Oxygen. |
deviceOptions |
TestDeviceOptions: TestDeviceOptions opisujący opcje urządzenia; |
| Zwraca | |
|---|---|
List<GceAvdInfo> |
List urządzeń zostało wypożyczonych. W przypadku niepowodzenia dzierżawy urządzenia zgłosi wyjątek TargetSetupError. |
| Zgłasza | |
|---|---|
TargetSetupError |
|
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data, DeviceDescriptor descriptor, int remoteAdbPort)
Analizowanie podanego ciągu znaków w celu uzyskania informacji o urządzeniu GCE AVD.
| Parametry | |
|---|---|
data |
String: ciąg JSON. |
descriptor |
DeviceDescriptor: opis urządzenia, które potrzebuje informacji. |
remoteAdbPort |
int: port zdalny, który ma być używany do połączenia adb |
| Zwraca | |
|---|---|
GceAvdInfo |
GceAvdInfo urządzenia, jeśli zostanie znalezione, lub wartość null w przypadku błędu. |
| Zgłasza | |
|---|---|
TargetSetupError |
|
setDeviceOffset
public void setDeviceOffset (Integer deviceOffset)
| Parametry | |
|---|---|
deviceOffset |
Integer |
setErrorType
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 |
setIpPreconfigured
public void setIpPreconfigured (boolean isIpPreconfigured)
| Parametry | |
|---|---|
isIpPreconfigured |
boolean |
setOxygenationDeviceId
public void setOxygenationDeviceId (String deviceId)
| Parametry | |
|---|---|
deviceId |
String |
setSkipBugreportCollection
public void setSkipBugreportCollection (boolean skipDeviceLogCollection)
| Parametry | |
|---|---|
skipDeviceLogCollection |
boolean |
setSkipDeviceLogCollection
public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)
| Parametry | |
|---|---|
skipDeviceLogCollection |
boolean |
toString
public String toString ()
| Zwraca | |
|---|---|
String |
|