Oksijenİstemcisi

public class OxygenClient
extends Object

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


Oxygen cihazını kiralamak veya serbest bırakmak için Oxygen istemci ikilisinin kullanımını yöneten bir sınıf.

Özet

Alanlar

public static final sGceDeviceParamsToOxygenMap

Kamu inşaatçıları

OxygenClient (File clientBinary, IRunUtil runUtil)
OxygenClient (File clientBinary)

OxygenClient sınıfının yapıcısı.

Genel yöntemler

String getOverrideFetchCvdPath ( TestDeviceOptions deviceOptions)

Verilen TestDeviceOptions'taki 'override_fetch_cvd_path' bağımsız değişkeninin değerini döndürür.

CommandResult leaseDevice ( IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes)

Oxygen istemci ikili programını çağırarak bir cihazı kiralamayı deneyin.

CommandResult leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes)

Oxygen istemci ikili dosyasını çağırarak birden fazla cihazı kiralamayı deneyin.

Boolean noWaitForBootSpecified ( TestDeviceOptions deviceOptions)

Oksijen kiralama isteğinde no_wait_for_boot'un belirtilip belirtilmediğini kontrol edin

boolean release ( GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions)

Oxygen istemci ikili programını kullanarak bir cihazı serbest bırakmayı deneyin.

Alanlar

sGceDeviceParamsToOxygenMap

public static final  sGceDeviceParamsToOxygenMap

Kamu inşaatçıları

Oksijenİstemcisi

public OxygenClient (File clientBinary, 
                IRunUtil runUtil)

Parametreler
clientBinary File

runUtil IRunUtil

Oksijenİstemcisi

public OxygenClient (File clientBinary)

OxygenClient sınıfının yapıcısı.

Parametreler
clientBinary File : yürütülebilir Oxygen istemcisi ikili dosyası.

Genel yöntemler

getOverrideFetchCvdPath

public String getOverrideFetchCvdPath (TestDeviceOptions deviceOptions)

Verilen TestDeviceOptions'taki 'override_fetch_cvd_path' bağımsız değişkeninin değerini döndürür.

Parametreler
deviceOptions TestDeviceOptions : TestDeviceOptions

İadeler
String 'override_fetch_cvd_path' değeri veya mevcut değilse null

kiralamaCihaz

public CommandResult leaseDevice (IBuildInfo b, 
                TestDeviceOptions deviceOptions, 
                MultiMap<String, String> attributes)

Oxygen istemci ikili programını çağırarak bir cihazı kiralamayı deneyin.

Parametreler
b IBuildInfo : IBuildInfo

deviceOptions TestDeviceOptions : TestDeviceOptions

attributes MultiMap : geçerli çağrıyla ilişkili özellikler

İadeler
CommandResult Oxygen ikili dosyasının döndürdüğü bir CommandResult .

kiralamaBirden Fazla Cihaz

public CommandResult leaseMultipleDevices ( buildInfos, 
                TestDeviceOptions deviceOptions, 
                MultiMap<String, String> attributes)

Oxygen istemci ikili dosyasını çağırarak birden fazla cihazı kiralamayı deneyin.

Parametreler
buildInfos : ERROR(/List ) ERROR(/List )

deviceOptions TestDeviceOptions : TestDeviceOptions

attributes MultiMap : geçerli çağrıyla ilişkili özellikler

İadeler
CommandResult Oxygen ikilisinin döndürdüğü CommandResult .

noWaitForBootBelirtildi

public Boolean noWaitForBootSpecified (TestDeviceOptions deviceOptions)

Oksijen kiralama isteğinde no_wait_for_boot'un belirtilip belirtilmediğini kontrol edin

Parametreler
deviceOptions TestDeviceOptions : TestDeviceOptions

İadeler
Boolean no_wait_for_boot belirtilirse doğru

serbest bırakmak

public boolean release (GceAvdInfo gceAvdInfo, 
                TestDeviceOptions deviceOptions)

Oxygen istemci ikili programını kullanarak bir cihazı serbest bırakmayı deneyin.

Parametreler
gceAvdInfo GceAvdInfo : GceAvdInfo

deviceOptions TestDeviceOptions : TestDeviceOptions

İadeler
boolean cihazın serbest bırakılmasının başarılı olup olmadığını gösteren bir boole değeri.