산소클라이언트

public class OxygenClient
extends Object

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


Oxygen 장치를 임대하거나 해제하기 위해 Oxygen 클라이언트 바이너리의 사용을 관리하는 클래스입니다.

요약

필드

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)

Oxygen 임대 요청에 no_wait_for_boot가 지정되어 있는지 확인하세요.

boolean release ( GceAvdInfo gceAvdInfo, TestDeviceOptions deviceOptions)

Oxygen 클라이언트 바이너리를 사용하여 장치 해제를 시도합니다.

필드

sGceDeviceParamsToOxygenMap

public static final  sGceDeviceParamsToOxygenMap

공개 생성자

산소클라이언트

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)

Oxygen 임대 요청에 no_wait_for_boot가 지정되어 있는지 확인하세요.

매개변수
deviceOptions TestDeviceOptions : TestDeviceOptions

보고
Boolean no_wait_for_boot가 지정되면 true

풀어 주다

public boolean release (GceAvdInfo gceAvdInfo, 
                TestDeviceOptions deviceOptions)

Oxygen 클라이언트 바이너리를 사용하여 장치 해제를 시도합니다.

매개변수
gceAvdInfo GceAvdInfo : GceAvdInfo

deviceOptions TestDeviceOptions : TestDeviceOptions

보고
boolean 장치 릴리스 성공 여부를 나타내는 부울입니다.