GceAvdBilgileri

public class GceAvdInfo
extends Object

Java.lang.Nesne
   ↳ com.android.tradefed.device.cloud.GceAvdInfo


Belirli bir GCE AVD örneğiyle alakalı verilerin depolanacağı yapılandırmadır.

Özet

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

class GceAvdInfo.LogFileEntry

 

Fields'ın oynadığı filmler

public static final BUILD_VARS

Kamu inşaatçıları

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 bilgisi karmasını döndürün.

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

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

String getOxygenationDeviceId()
boolean getSkipDeviceLogCollection()
GceAvdInfo.GceStatus getStatus()
HostAndPort hostAndPort()
String instanceName()
boolean isIpPreconfigured()
boolean isOxygenationDevice()
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, int remoteAdbPort)

Kiralanmış ortalama görüntüleme süresi bilgilerini elde etmek için belirli bir komut satırı çıkışını Oksijen istemci ikili programından ayrıştırır.

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

GCE AVD cihaz bilgilerini elde etmek 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 setSkipBugreportCollection(boolean skipDeviceLogCollection)
void setSkipDeviceLogCollection(boolean skipDeviceLogCollection)
void setStatus(GceAvdInfo.GceStatus status)
String toString()

Fields'ın oynadığı filmler

BUILD_VARS

public static final  BUILD_VARS

Kamu inşaatçıları

GceAvdBilgileri

public GceAvdInfo (String instanceName, 
                HostAndPort hostAndPort)

Parametreler
instanceName String

hostAndPort HostAndPort

GceAvdBilgileri

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

getBuildVar

public  getBuildVars ()

GCE AVD cihazının derleme değişkeni bilgisi karmasını döndürün.

Olası derleme değişkeni anahtarları BUILD_VARS içinde açıklanmıştır. Örneğin: build_id, build_target, bölüm, kernel_build_id, kernel_build_target, kernel_branch, system_build_id, system_build_target, system_branch, emulator_build_id, emulator_build_target, emulator_build_target.

İlerlemeler

getCihazOfseti

public Integer getDeviceOffset ()

İlerlemeler
Integer

getErrorType

public ErrorIdentifier getErrorType ()

İlerlemeler
ErrorIdentifier

getErrors

public String getErrors ()

İlerlemeler
String

getInstanceUser

public String getInstanceUser ()

İlerlemeler
String

getLogs

public  getLogs ()

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

İlerlemeler

getOxygenationCihazKimliği

public String getOxygenationDeviceId ()

İlerlemeler
String

getSkipDeviceLogCollection

public boolean getSkipDeviceLogCollection ()

İlerlemeler
boolean

getStatus

public GceAvdInfo.GceStatus getStatus ()

İlerlemeler
GceAvdInfo.GceStatus

anabilgisayarAndPort

public HostAndPort hostAndPort ()

İlerlemeler
HostAndPort

örnekAdı

public String instanceName ()

İlerlemeler
String

Önceden yapılandırılmış

public boolean isIpPreconfigured ()

İlerlemeler
boolean

izOxsijenCihazı

public boolean isOxygenationDevice ()

İ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ü'ndeki JSON çıkışını okumak için ERROR(/File) dosyası.

descriptor DeviceDescriptor: Bilgiye ihtiyacı olan cihazın tanımlayıcısı.

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

İlerlemeler
GceAvdInfo bulunursa cihazın GceAvdInfo değeri, hata varsa null.

Fırlatma
TargetSetupError

ayrıştırGceInfoFromOxygenClientExit

public static  parseGceInfoFromOxygenClientOutput (CommandResult oxygenRes, 
                int remoteAdbPort)

Kiralanmış ortalama görüntüleme süresi bilgilerini elde etmek için belirli bir komut satırı çıkışını Oksijen istemci ikili programından ayrıştırır.

Parametreler
oxygenRes CommandResult: Oksijen istemci komutunun yürütülmesindeki CommandResult.

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

İlerlemeler
Cihazlardan ERROR(/List) tanesi başarıyla kiralandı. Bir cihaz kiralanamazsa TargetSetupError atlanır.

Fırlatma
TargetSetupError

parseGceInfoFromString

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

GCE AVD cihaz bilgilerini elde etmek için belirli bir dizeyi ayrıştırın.

Parametreler
data String: JSON dizesi.

descriptor DeviceDescriptor: Bilgiye ihtiyacı olan cihazın tanımlayıcısı.

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

İlerlemeler
GceAvdInfo bulunursa cihazın GceAvdInfo değeri, hata varsa null.

Fırlatma
TargetSetupError

ayarCihazOfseti

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

setIpÖnceden yapılandırılmış

public void setIpPreconfigured (boolean isIpPreconfigured)

Parametreler
isIpPreconfigured boolean

setJumpBugreportCollection

public void setSkipBugreportCollection (boolean skipDeviceLogCollection)

Parametreler
skipDeviceLogCollection boolean

setJumpDeviceLogCollection

public void setSkipDeviceLogCollection (boolean skipDeviceLogCollection)

Parametreler
skipDeviceLogCollection boolean

setStatus [setStatus]

public void setStatus (GceAvdInfo.GceStatus status)

Parametreler
status GceAvdInfo.GceStatus

toString

public String toString ()

İlerlemeler
String