산소클라이언트
public class OxygenClient
extends Object
java.lang.객체 | |
↳ | com.android.tradefed.device.cloud.OxygenClient |
산소 장치를 임대하거나 해제하기 위해 산소 클라이언트 바이너리의 사용을 관리하는 클래스입니다.
요약
필드 | |
---|---|
public static final | sGceDeviceParamsToOxygenMap
|
공개 생성자 | |
---|---|
OxygenClient (File clientBinary, IRunUtil runUtil) | |
OxygenClient (File clientBinary) OxygenClient 클래스의 생성자입니다. |
공개 방법 | |
---|---|
String | getOverrideFetchCvdPath ( TestDeviceOptions deviceOptions) 지정된 TestDeviceOptions에서 'override_fetch_cvd_path' 인수의 값을 반환합니다. |
CommandResult | leaseDevice ( IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) Oxygen 클라이언트 바이너리를 호출하여 장치 임대를 시도합니다. |
CommandResult | leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) leaseMultipleDevices ( buildInfos, TestDeviceOptions deviceOptions, MultiMap <String, String> attributes) Oxygen 클라이언트 바이너리를 호출하여 여러 장치를 임대하려고 시도합니다. |
Boolean | noWaitForBootSpecified ( TestDeviceOptions deviceOptions) 산소 임대 요청에 no_wait_for_boot가 지정되어 있는지 확인 |
boolean | release ( GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions) Oxygen 클라이언트 바이너리를 사용하여 장치 해제를 시도합니다. |
필드
sGceDeviceParamsToOxygenMap
public static finalsGceDeviceParamsToOxygenMap
공개 생성자
산소클라이언트
public OxygenClient (File clientBinary, IRunUtil runUtil)
매개변수 | |
---|---|
clientBinary | File |
runUtil | IRunUtil |
산소클라이언트
public OxygenClient (File clientBinary)
OxygenClient 클래스의 생성자입니다.
매개변수 | |
---|---|
clientBinary | File : 실행 가능한 Oxygen 클라이언트 바이너리 파일. |
공개 방법
getOverrideFetchCvdPath
public String getOverrideFetchCvdPath (TestDeviceOptions deviceOptions)
지정된 TestDeviceOptions에서 'override_fetch_cvd_path' 인수의 값을 반환합니다.
매개변수 | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
보고 | |
---|---|
String | 'override_fetch_cvd_path' 값 또는 존재하지 않는 경우 null |
임대 장치
public CommandResult leaseDevice (IBuildInfo b, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
Oxygen 클라이언트 바이너리를 호출하여 장치 임대를 시도합니다.
매개변수 | |
---|---|
b | IBuildInfo : IBuildInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : 현재 호출과 관련된 속성 |
보고 | |
---|---|
CommandResult | Oxygen 바이너리가 반환한 CommandResult . |
여러 장치 임대
public CommandResult leaseMultipleDevices (buildInfos, TestDeviceOptions deviceOptions, MultiMap<String, String> attributes)
Oxygen 클라이언트 바이너리를 호출하여 여러 장치를 임대하려고 시도합니다.
매개변수 | |
---|---|
buildInfos | ERROR(/List ) ERROR(/List ) |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
attributes | MultiMap : 현재 호출과 관련된 속성 |
보고 | |
---|---|
CommandResult | Oxygen 바이너리가 반환한 CommandResult . |
noWaitForBoot지정됨
public Boolean noWaitForBootSpecified (TestDeviceOptions deviceOptions)
산소 임대 요청에 no_wait_for_boot가 지정되어 있는지 확인
매개변수 | |
---|---|
deviceOptions | TestDeviceOptions : TestDeviceOptions |
보고 | |
---|---|
Boolean | no_wait_for_boot가 지정된 경우 참 |
풀어 주다
public boolean release (GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions)
Oxygen 클라이언트 바이너리를 사용하여 장치 해제를 시도합니다.
매개변수 | |
---|---|
gceAvdInfo | GceAvdInfo : GceAvdInfo |
deviceOptions | TestDeviceOptions : TestDeviceOptions |
보고 | |
---|---|
boolean | 장치 릴리스가 성공했는지 여부를 나타내는 부울입니다. |