OxígenoCliente
public class OxygenClient
extends Object
java.lang.Objeto | |
↳ | com.android.tradefed.device.cloud.OxygenClient |
Una clase que administra el uso del binario del cliente Oxygen para arrendar o liberar un dispositivo Oxygen.
Resumen
Campos | |
---|---|
public static final | sGceDeviceParamsToOxygenMap
|
Constructores públicos | |
---|---|
OxygenClient (File clientBinary, IRunUtil runUtil) | |
OxygenClient (File clientBinary) El constructor de la clase OxygenClient. |
Métodos públicos | |
---|---|
String | getOverrideFetchCvdPath ( TestDeviceOptions deviceOptions) Devuelve el valor del argumento 'override_fetch_cvd_path' en las TestDeviceOptions dadas. |
CommandResult | leaseDevice ( IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) Intente arrendar un dispositivo llamando al binario del cliente de Oxygen. |
CommandResult | leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) Intente arrendar varios dispositivos llamando al binario del cliente de Oxygen. |
Boolean | noWaitForBootSpecified ( TestDeviceOptions deviceOptions) Compruebe si se especifica no_wait_for_boot en la solicitud de concesión de Oxygen |
boolean | release ( GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions) Intente liberar un dispositivo utilizando el binario del cliente Oxygen. |
Campos
sGceDeviceParamsToOxygenMap
public static finalsGceDeviceParamsToOxygenMap
Constructores públicos
OxígenoCliente
public OxygenClient (File clientBinary, IRunUtil runUtil)
Parámetros | |
---|---|
clientBinary | File |
runUtil | IRunUtil |
OxígenoCliente
public OxygenClient (File clientBinary)
El constructor de la clase OxygenClient.
Parámetros | |
---|---|
clientBinary | File : el archivo binario ejecutable del cliente Oxygen. |
Métodos públicos
getOverrideFetchCvdPath
public String getOverrideFetchCvdPath (TestDeviceOptions deviceOptions)
Devuelve el valor del argumento 'override_fetch_cvd_path' en las TestDeviceOptions dadas.
Parámetros | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
Devoluciones | |
---|---|
String | el valor de 'override_fetch_cvd_path', o nulo si no está presente |
arrendamiento de dispositivo
public CommandResult leaseDevice (IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
Intente arrendar un dispositivo llamando al binario del cliente de Oxygen.
Parámetros | |
---|---|
b | IBuildInfo : IBuildInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : atributos asociados con la invocación actual |
Devoluciones | |
---|---|
CommandResult | un CommandResult que devolvió el binario Oxygen. |
arrendarMultipleDevices
public CommandResult leaseMultipleDevices (buildInfos, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
Intente arrendar varios dispositivos llamando al binario del cliente de Oxygen.
Parámetros | |
---|---|
buildInfos | ERROR(/List ) ERROR(/List ) |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : atributos asociados con la invocación actual |
Devoluciones | |
---|---|
CommandResult | CommandResult que devolvió el binario Oxygen. |
noWaitForBootSpecified
public Boolean noWaitForBootSpecified (TestDeviceOptions deviceOptions)
Compruebe si se especifica no_wait_for_boot en la solicitud de concesión de Oxygen
Parámetros | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
Devoluciones | |
---|---|
Boolean | verdadero si se especifica no_wait_for_boot |
liberar
public boolean release (GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions)
Intente liberar un dispositivo utilizando el binario del cliente Oxygen.
Parámetros | |
---|---|
gceAvdInfo | GceAvdInfo : GceAvdInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
Devoluciones | |
---|---|
boolean | un valor booleano que indica si la liberación del dispositivo se realizó correctamente. |