InvocationContext

public class InvocationContext
extends Object implements IInvocationContext

java.lang.Object
   ↳ com.android.tradefed.invoker.InvocationContext


IInvocationContext의 일반 구현입니다.

요약

공개 생성자

InvocationContext()

기본 속성 값을 사용하여 BuildInfo를 만듭니다.

공개 메서드

void addAllocatedDevice( deviceWithName)

void addAllocatedDevice(String devicename, ITestDevice testDevice)

void addDeviceBuildInfo(String deviceName, IBuildInfo buildinfo)

void addInvocationAttribute(String attributeName, String attributeValue)

void addInvocationAttributes(MultiMap<String, String> attributesMap)

void addSerialsFromShard(Integer index, serials)

static InvocationContext fromProto(InvocationContext.Context protoContext)

InvocationContext#toProto()의 역반응을 사용하여 인스턴스를 다시 가져옵니다.

MultiMap<String, String> getAttributes()

IBuildInfo getBuildInfo(String deviceName)

IBuildInfo getBuildInfo(ITestDevice testDevice)

String getBuildInfoName(IBuildInfo info)

getBuildInfos()

ConfigurationDescriptor getConfigurationDescriptor()

ITestDevice getDevice(String deviceName)

getDeviceBuildMap()

ITestDevice getDeviceBySerial(String serial)

getDeviceConfigNames()

String getDeviceName(ITestDevice device)

getDevices()

String getInvocationId()
IInvocationContext getModuleInvocationContext()

int getNumDevicesAllocated()

getSerials()

getShardsSerials()

String getTestTag()

void lockAttributes()

더 이상 호출 속성이 추가되지 않도록 컨텍스트를 잠급니다.

void logInvocationMetrics()

호출에 InvocationMetricLogger 속성을 로깅합니다.

void markReleasedEarly()
void setConfigurationDescriptor(ConfigurationDescriptor configurationDescriptor)

void setModuleInvocationContext(IInvocationContext invocationContext)

void setRecoveryModeForAllDevices(ITestDevice.RecoveryMode mode)

void setTestTag(String testTag)

InvocationContext.Context toProto()

boolean wasReleasedEarly()

공개 생성자

InvocationContext

public InvocationContext ()

기본 속성 값을 사용하여 BuildInfo를 만듭니다.

공개 메서드

addAllocatedDevice

public void addAllocatedDevice ( deviceWithName)

매개변수
deviceWithName

addAllocatedDevice

public void addAllocatedDevice (String devicename, 
                ITestDevice testDevice)

매개변수
devicename String

testDevice ITestDevice

addDeviceBuildInfo

public void addDeviceBuildInfo (String deviceName, 
                IBuildInfo buildinfo)

매개변수
deviceName String

buildinfo IBuildInfo

addInvocationAttribute

public void addInvocationAttribute (String attributeName, 
                String attributeValue)

매개변수
attributeName String

attributeValue String

addInvocationAttributes

public void addInvocationAttributes (MultiMap<String, String> attributesMap)

매개변수
attributesMap MultiMap

addSerialsFromShard

public void addSerialsFromShard (Integer index, 
                 serials)

매개변수
index Integer

serials

fromProto

public static InvocationContext fromProto (InvocationContext.Context protoContext)

InvocationContext#toProto()의 역반응을 사용하여 인스턴스를 다시 가져옵니다.

매개변수
protoContext InvocationContext.Context

반환 값
InvocationContext

getAttributes

public MultiMap<String, String> getAttributes ()

반환 값
MultiMap<String, String>

getBuildInfo

public IBuildInfo getBuildInfo (String deviceName)

매개변수
deviceName String

반환 값
IBuildInfo

getBuildInfo

public IBuildInfo getBuildInfo (ITestDevice testDevice)

매개변수
testDevice ITestDevice

반환 값
IBuildInfo

getBuildInfoName

public String getBuildInfoName (IBuildInfo info)

매개변수
info IBuildInfo

반환 값
String

getBuildInfos

public  getBuildInfos ()

반환 값

getConfigurationDescriptor

public ConfigurationDescriptor getConfigurationDescriptor ()

반환 값
ConfigurationDescriptor

getDevice

public ITestDevice getDevice (String deviceName)

매개변수
deviceName String

반환 값
ITestDevice

getDeviceBuildMap

public  getDeviceBuildMap ()

반환 값

getDeviceBySerial

public ITestDevice getDeviceBySerial (String serial)

매개변수
serial String

반환 값
ITestDevice

getDeviceConfigNames

public  getDeviceConfigNames ()

반환 값

getDeviceName

public String getDeviceName (ITestDevice device)

매개변수
device ITestDevice

반환 값
String

getDevices

public  getDevices ()

반환 값

getInvocationId

public String getInvocationId ()

반환 값
String

getModuleInvocationContext

public IInvocationContext getModuleInvocationContext ()

반환 값
IInvocationContext

getNumDevicesAllocated

public int getNumDevicesAllocated ()

반환 값
int

getSerials

public  getSerials ()

반환 값

getShardsSerials

public  getShardsSerials ()

반환 값

getTestTag

public String getTestTag ()

반환 값
String

lockAttributes

public void lockAttributes ()

더 이상 호출 속성이 추가되지 않도록 컨텍스트를 잠급니다.

logInvocationMetrics

public void logInvocationMetrics ()

호출에 InvocationMetricLogger 속성을 로깅합니다.

markReleasedEarly

public void markReleasedEarly ()

setConfigurationDescriptor

public void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)

매개변수
configurationDescriptor ConfigurationDescriptor

setModuleInvocationContext

public void setModuleInvocationContext (IInvocationContext invocationContext)

매개변수
invocationContext IInvocationContext

setRecoveryModeForAllDevices

public void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)

매개변수
mode ITestDevice.RecoveryMode

setTestTag

public void setTestTag (String testTag)

매개변수
testTag String

toProto

public InvocationContext.Context toProto ()

반환 값
InvocationContext.Context

wasReleasedEarly

public boolean wasReleasedEarly ()

반환 값
boolean