调用上下文
public class InvocationContext
extends Object
implements IInvocationContext
java.lang.Object |
↳ | com.android.tradefed.invoker.InvocationContext |
IInvocationContext
通用实现。
概要
公共建设者
调用上下文
public InvocationContext ()
使用默认属性值创建BuildInfo
。
公开方法
addAllocatedDevice
public void addAllocatedDevice ( 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)
addSerialsFromShard
public void addSerialsFromShard (Integer index,
serials)
getAttributes
public MultiMap<String, String> getAttributes ()
退货 |
---|
MultiMap<String, String> | |
getBuildInfo
public IBuildInfo getBuildInfo (String deviceName)
getBuildInfo
public IBuildInfo getBuildInfo (ITestDevice testDevice)
getBuildInfoName
public String getBuildInfoName (IBuildInfo info)
getBuildInfos
public getBuildInfos ()
getConfigurationDescriptor
public ConfigurationDescriptor getConfigurationDescriptor ()
退货 |
---|
ConfigurationDescriptor | |
getDevice
public ITestDevice getDevice (String deviceName)
getDeviceBuildMap
public getDeviceBuildMap ()
getDeviceBySerial
public ITestDevice getDeviceBySerial (String serial)
getDeviceConfigNames
public getDeviceConfigNames ()
getDeviceName
public String getDeviceName (ITestDevice device)
getDevices
public getDevices ()
getInvocationId
public String getInvocationId ()
getModuleInvocationContext
public IInvocationContext getModuleInvocationContext ()
getNumDevicesAllocated
public int getNumDevicesAllocated ()
getSerials
public getSerials ()
getShardsSerials
public getShardsSerials ()
getTestTag
public String getTestTag ()
lockAttributes
public void lockAttributes ()
锁定上下文以防止添加更多调用属性。
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)
toProto
public InvocationContext.Context toProto ()
退货 |
---|
InvocationContext.Context | |
早已发布
public boolean wasReleasedEarly ()