GceAvdInfo

public class GceAvdInfo
extends Object

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


Belirli bir GCE AVD örneği için ilgili verileri tutan yapı.

Özet

İç içe yerleştirilmiş sınıflar

class GceAvdInfo.LogFileEntry

 

Alanlar

public static final List<String> BUILD_VARS

Herkese açık oluşturucular

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

Herkese açık yöntemler

HashMap<String, String> getBuildVars()

GCE AVD cihazının derleme değişkeni bilgilerinin karma değerini döndürür.

Integer getDeviceOffset()
ErrorIdentifier getErrorType()
String getErrors()
String getInstanceUser()
List<GceAvdInfo.LogFileEntry> getLogs()

Yerel veya uzak günlük yollarından türlere harita döndürün.

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 List<GceAvdInfo> parseGceInfoFromOxygenClientOutput(CommandResult oxygenRes, TestDeviceOptions deviceOptions)

Kiralanan AVD bilgilerini almak için Oxygen istemci ikili programından 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()

Alanlar

BUILD_VARS

public static final List<String> BUILD_VARS

Herkese açık oluşturucular

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

public HashMap<String, String> getBuildVars ()

GCE AVD cihazının derleme değişkeni bilgilerinin karma değerini döndürür.

Olası derleme değişkenleri anahtarları BUILD_VARS'ta açıklanmıştı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.

İadeler
HashMap<String, String>

getDeviceOffset

public Integer getDeviceOffset ()

İadeler
Integer

getErrorType

public ErrorIdentifier getErrorType ()

İadeler
ErrorIdentifier

getErrors

public String getErrors ()

İadeler
String

getInstanceUser

public String getInstanceUser ()

İadeler
String

getLogs

public List<GceAvdInfo.LogFileEntry> getLogs ()

Yerel veya uzak günlük yollarından türlere harita döndürün.

İadeler
List<GceAvdInfo.LogFileEntry>

getOxygenationDeviceId

public String getOxygenationDeviceId ()

İadeler
String

getSkipDeviceLogCollection

public boolean getSkipDeviceLogCollection ()

İadeler
boolean

getStatus

public GceAvdInfo.GceStatus getStatus ()

İadeler
GceAvdInfo.GceStatus

hostAndPort

public HostAndPort hostAndPort ()

İadeler
HostAndPort

instanceName

public String instanceName ()

İadeler
String

isIpPreconfigured

public boolean isIpPreconfigured ()

İadeler
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 alınan JSON çıkışını okumak için File dosyası.

descriptor DeviceDescriptor: Bilgiye ihtiyaç duyan cihazın tanımlayıcısı.

remoteAdbPort int: adb bağlantısı için kullanılması gereken uzak bağlantı noktası

İadeler
GceAvdInfo Bulunursa cihazın GceAvdInfo, hata varsa null.

Verdiği hatalar
TargetSetupError

parseGceInfoFromOxygenClientOutput

public static List<GceAvdInfo> parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                TestDeviceOptions deviceOptions)

Kiralanan AVD bilgilerini almak için Oxygen istemci ikili programından belirli bir komut satırı çıkışını ayrıştırın.

Parametreler
oxygenRes CommandResult: Oxygen istemci komutunun yürütülmesinden elde edilen CommandResult.

deviceOptions TestDeviceOptions: Cihaz seçeneklerini açıklayan TestDeviceOptions

İadeler
List<GceAvdInfo> Cihazların List tanesi başarıyla kiralandı. Cihaz kiralanamazsa TargetSetupError hatası verilir.

Verdiği hatalar
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ı.

remoteAdbPort int: adb bağlantısı için kullanılması gereken uzak bağlantı noktası

İadeler
GceAvdInfo Bulunursa cihazın GceAvdInfo, hata varsa null.

Verdiği hatalar
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 ()

Döndürülenler
String