GceAvdInfo
public
class
GceAvdInfo
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.device.cloud.GceAvdInfo |
Belirli bir GCE AVD örneğiyle ilgili verileri barındıracak yapı.
Özet
İç içe yerleştirilmiş sınıflar | |
|---|---|
class |
GceAvdInfo.LogFileEntry
|
Fields'ın oynadığı filmler | |
|---|---|
public
static
final
|
BUILD_VARS
|
Herkese açık kurucular | |
|---|---|
GceAvdInfo(String instanceName, HostAndPort hostAndPort)
|
|
GceAvdInfo(String instanceName, HostAndPort hostAndPort, ErrorIdentifier errorType, String errors, GceAvdInfo.GceStatus status)
|
|
Herkese açık yöntemler | |
|---|---|
|
getBuildVars()
GCE AVD cihazının derleme değişkeni bilgi karmasını döndürme. |
Integer
|
getDeviceOffset()
|
ErrorIdentifier
|
getErrorType()
|
String
|
getErrors()
|
String
|
getInstanceUser()
|
|
getLogs()
Haritayı yerel veya uzak günlük yollarından türlere döndürme. |
String
|
getOxygenationDeviceId()
|
boolean
|
getSkipDeviceLogCollection()
|
GceAvdInfo.GceStatus
|
getStatus()
|
HostAndPort
|
hostAndPort()
|
String
|
instanceName()
|
boolean
|
isIpPreconfigured()
|
static
GceAvdInfo
|
parseGceInfoFromFile(File f, DeviceDescriptor descriptor, int remoteAdbPort)
GCE AVD cihaz bilgilerini almak için belirli bir dosyayı ayrıştırın. |
static
|
parseGceInfoFromOxygenClientOutput(CommandResult oxygenRes, TestDeviceOptions deviceOptions)
Kiralık AVD bilgilerini almak için Oxygen istemci ikilisindeki belirli bir komut satırı çıkışını ayrıştırın. |
static
GceAvdInfo
|
parseGceInfoFromString(String data, DeviceDescriptor descriptor, int remoteAdbPort)
GCE AVD cihaz bilgilerini almak için belirli bir dizeyi ayrıştırın. |
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()
|
Fields'ın oynadığı filmler
BUILD_VARS
public static finalBUILD_VARS
Herkese açık kurucular
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)| Parametreler | |
|---|---|
instanceName |
String |
hostAndPort |
HostAndPort |
GceAvdInfo
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)| Parametreler | |
|---|---|
instanceName |
String |
hostAndPort |
HostAndPort |
errorType |
ErrorIdentifier |
errors |
String |
status |
GceAvdInfo.GceStatus |
Herkese açık yöntemler
getBuildVars
publicgetBuildVars ()
GCE AVD cihazının derleme değişkeni bilgi karmasını döndürme.
Olası derleme değişkeni anahtarları BUILD_VARS'de açıklanmaktadır. Örneğin: 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.
| İlerlemeler | |
|---|---|
|
|
getDeviceOffset
public Integer getDeviceOffset ()
| İlerlemeler | |
|---|---|
Integer |
|
getErrors
public String getErrors ()
| İlerlemeler | |
|---|---|
String |
|
getInstanceUser
public String getInstanceUser ()
| İlerlemeler | |
|---|---|
String |
|
getLogs
publicgetLogs ()
Haritayı yerel veya uzak günlük yollarından türlere döndürme.
| İlerlemeler | |
|---|---|
|
|
getOxygenationDeviceId
public String getOxygenationDeviceId ()
| İlerlemeler | |
|---|---|
String |
|
getSkipDeviceLogCollection
public boolean getSkipDeviceLogCollection ()
| İlerlemeler | |
|---|---|
boolean |
|
hostAndPort
public HostAndPort hostAndPort ()
| İlerlemeler | |
|---|---|
HostAndPort |
|
instanceName
public String instanceName ()
| İlerlemeler | |
|---|---|
String |
|
isIpPreconfigured
public boolean isIpPreconfigured ()
| İlerlemeler | |
|---|---|
boolean |
|
parseGceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f, DeviceDescriptor descriptor, int remoteAdbPort)
GCE AVD cihaz bilgilerini almak için belirli bir dosyayı ayrıştırın.
| Parametreler | |
|---|---|
f |
File: GCE sürücüsünden JSON çıkışını okumak için ERROR(/File) dosyası. |
descriptor |
DeviceDescriptor: Bilgiye ihtiyaç duyan cihazın tanımlayıcısıdır. |
remoteAdbPort |
int: adb bağlantısı için kullanılması gereken uzak bağlantı noktası |
| İlerlemeler | |
|---|---|
GceAvdInfo |
Cihaz bulunursa cihazın GceAvdInfo değeri, aksi takdirde null değeri döndürülür. |
| Atışlar | |
|---|---|
TargetSetupError |
|
parseGceInfoFromOxygenClientOutput
public staticparseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, TestDeviceOptions deviceOptions)
Kiralık AVD bilgilerini almak için Oxygen istemci ikilisindeki belirli bir komut satırı çıkışını ayrıştırın.
| Parametreler | |
|---|---|
oxygenRes |
CommandResult: Oxygen istemci komutu yürütme işleminden alınan CommandResult. |
deviceOptions |
TestDeviceOptions: Cihaz seçeneklerini açıklayan TestDeviceOptions |
| İlerlemeler | |
|---|---|
|
Cihazların ERROR(/List) tanesi başarıyla kiralandı. Cihaz kiralanamazsa TargetSetupError
hatası atar. |
| Atışlar | |
|---|---|
TargetSetupError |
|
parseGceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data, DeviceDescriptor descriptor, int remoteAdbPort)
GCE AVD cihaz bilgilerini almak için belirli bir dizeyi ayrıştırın.
| Parametreler | |
|---|---|
data |
String: JSON dizesi. |
descriptor |
DeviceDescriptor: Bilgiye ihtiyaç duyan cihazın tanımlayıcısıdır. |
remoteAdbPort |
int: adb bağlantısı için kullanılması gereken uzak bağlantı noktası |
| İlerlemeler | |
|---|---|
GceAvdInfo |
Cihaz bulunursa cihazın GceAvdInfo değeri, aksi takdirde null değeri döndürülür. |
| Atışlar | |
|---|---|
TargetSetupError |
|
setDeviceOffset
public void setDeviceOffset (Integer deviceOffset)
| Parametreler | |
|---|---|
deviceOffset |
Integer |
setErrorType
public void setErrorType (ErrorIdentifier errorType)
| Parametreler | |
|---|---|
errorType |
ErrorIdentifier |
setErrors
public void setErrors (String errors)
| Parametreler | |
|---|---|
errors |
String |
setInstanceUser
public void setInstanceUser (String instanceUser)
| Parametreler | |
|---|---|
instanceUser |
String |
setIpPreconfigured
public void setIpPreconfigured (boolean isIpPreconfigured)
| Parametreler | |
|---|---|
isIpPreconfigured |
boolean |
setOxygenationDeviceId
public void setOxygenationDeviceId (String deviceId)
| Parametreler | |
|---|---|
deviceId |
String |
setSkipBugreportCollection
public void setSkipBugreportCollection (boolean skipDeviceLogCollection)
| Parametreler | |
|---|---|
skipDeviceLogCollection |
boolean |
setSkipDeviceLogCollection
public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)
| Parametreler | |
|---|---|
skipDeviceLogCollection |
boolean |
setStatus
public void setStatus (GceAvdInfo.GceStatus status)
| Parametreler | |
|---|---|
status |
GceAvdInfo.GceStatus |
toString
public String toString ()
| İlerlemeler | |
|---|---|
String |
|