Cliente di ossigeno
public class OxygenClient
extends Object
java.lang.Oggetto | |
↳ | com.android.tradefed.device.cloud.OxygenClient |
Una classe che gestisce l'uso del file binario del client Oxygen per affittare o rilasciare il dispositivo Oxygen.
Riepilogo
Campi | |
---|---|
public static final | sGceDeviceParamsToOxygenMap
|
Costruttori pubblici | |
---|---|
OxygenClient (File clientBinary, IRunUtil runUtil) | |
OxygenClient (File clientBinary) Il costruttore della classe OxygenClient. |
Metodi pubblici | |
---|---|
String | getOverrideFetchCvdPath ( TestDeviceOptions deviceOptions) Restituisce il valore dell'argomento 'override_fetch_cvd_path' nell'oggetto TestDeviceOptions specificato. |
CommandResult | leaseDevice ( IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) Tentativo di affittare un dispositivo chiamando il file binario del client Oxygen. |
CommandResult | leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) Tentativo di noleggiare più dispositivi chiamando il file binario del client Oxygen. |
Boolean | noWaitForBootSpecified ( TestDeviceOptions deviceOptions) Controlla se no_wait_for_boot è specificato nella richiesta di lease di Oxygen |
boolean | release ( GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions) Tentativo di rilasciare un dispositivo utilizzando il file binario del client Oxygen. |
Campi
sGceDeviceParamsToOxygenMap
public static finalsGceDeviceParamsToOxygenMap
Costruttori pubblici
Cliente di ossigeno
public OxygenClient (File clientBinary, IRunUtil runUtil)
Parametri | |
---|---|
clientBinary | File |
runUtil | IRunUtil |
Cliente di ossigeno
public OxygenClient (File clientBinary)
Il costruttore della classe OxygenClient.
Parametri | |
---|---|
clientBinary | File : il file binario eseguibile del client Oxygen. |
Metodi pubblici
getOverrideFetchCvdPath
public String getOverrideFetchCvdPath (TestDeviceOptions deviceOptions)
Restituisce il valore dell'argomento 'override_fetch_cvd_path' nell'oggetto TestDeviceOptions specificato.
Parametri | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
ritorna | |
---|---|
String | il valore di 'override_fetch_cvd_path', o null se non è presente |
leaseDevice
public CommandResult leaseDevice (IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
Tentativo di affittare un dispositivo chiamando il file binario del client Oxygen.
Parametri | |
---|---|
b | IBuildInfo : IBuildInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : attributi associati all'invocazione corrente |
ritorna | |
---|---|
CommandResult | un CommandResult restituito dal binario Oxygen. |
leaseMultipleDevices
public CommandResult leaseMultipleDevices (buildInfos, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
Tentativo di noleggiare più dispositivi chiamando il file binario del client Oxygen.
Parametri | |
---|---|
buildInfos | ERROR(/List ) ERROR(/List ) |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : attributi associati all'invocazione corrente |
ritorna | |
---|---|
CommandResult | CommandResult restituito dal binario Oxygen. |
noWaitForBootSpecified
public Boolean noWaitForBootSpecified (TestDeviceOptions deviceOptions)
Controlla se no_wait_for_boot è specificato nella richiesta di lease di Oxygen
Parametri | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
ritorna | |
---|---|
Boolean | true se no_wait_for_boot è specificato |
pubblicazione
public boolean release (GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions)
Tentativo di rilasciare un dispositivo utilizzando il file binario del client Oxygen.
Parametri | |
---|---|
gceAvdInfo | GceAvdInfo : GceAvdInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
ritorna | |
---|---|
boolean | un valore booleano che indica se il rilascio del dispositivo è andato a buon fine. |