InvocaçãoContexto
public class InvocationContext
extends Object
implements IInvocationContext
java.lang.Object |
↳ | com.android.tradefed.invoker.InvocationContext |
Implementação genérica de um IInvocationContext
.
Resumo
Construtores públicos
InvocaçãoContexto
public InvocationContext ()
Cria um BuildInfo
usando valores de atributos padrão.
Métodos públicos
addAllocatedDevice
public void addAllocatedDevice ( deviceWithName)
Parâmetros |
---|
deviceWithName | |
addAllocatedDevice
public void addAllocatedDevice (String devicename,
ITestDevice testDevice)
Parâmetros |
---|
devicename | String |
testDevice | ITestDevice |
addDeviceBuildInfo
public void addDeviceBuildInfo (String deviceName,
IBuildInfo buildinfo)
Parâmetros |
---|
deviceName | String |
buildinfo | IBuildInfo |
addInvocationAttribute
public void addInvocationAttribute (String attributeName,
String attributeValue)
Parâmetros |
---|
attributeName | String |
attributeValue | String |
addInvocationAttributes
public void addInvocationAttributes (MultiMap<String, String> attributesMap)
Parâmetros |
---|
attributesMap | MultiMap |
addSerialsFromShard
public void addSerialsFromShard (Integer index,
serials)
Parâmetros |
---|
index | Integer |
serials | |
getAttributes
public MultiMap<String, String> getAttributes ()
Devoluções |
---|
MultiMap<String, String> | |
getBuildInfo
public IBuildInfo getBuildInfo (String deviceName)
Parâmetros |
---|
deviceName | String |
getBuildInfo
public IBuildInfo getBuildInfo (ITestDevice testDevice)
Parâmetros |
---|
testDevice | ITestDevice |
getBuildInfoName
public String getBuildInfoName (IBuildInfo info)
Parâmetros |
---|
info | IBuildInfo |
getBuildInfos
public getBuildInfos ()
getConfigurationDescriptor
public ConfigurationDescriptor getConfigurationDescriptor ()
Devoluções |
---|
ConfigurationDescriptor | |
getDevice
public ITestDevice getDevice (String deviceName)
Parâmetros |
---|
deviceName | String |
getDeviceBuildMap
public getDeviceBuildMap ()
getDeviceBySerial
public ITestDevice getDeviceBySerial (String serial)
getDeviceConfigNames
public getDeviceConfigNames ()
getDeviceName
public String getDeviceName (ITestDevice device)
Parâmetros |
---|
device | ITestDevice |
getDispositivos
public getDevices ()
getInvocationId
public String getInvocationId ()
getModuleInvocationContext
public IInvocationContext getModuleInvocationContext ()
Devoluções |
---|
IInvocationContext | |
getNumDevicesAllocated
public int getNumDevicesAllocated ()
getSerials
public getSerials ()
getShardsSerials
public getShardsSerials ()
getTestTag
public String getTestTag ()
lockAttributes
public void lockAttributes ()
Bloqueie o contexto para evitar que mais atributos de invocação sejam incluídos.
logInvocationMetrics
public void logInvocationMetrics ()
Registre os atributos InvocationMetricLogger
na chamada.
markReleasedEarly
public void markReleasedEarly ()
setConfigurationDescriptor
public void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)
Parâmetros |
---|
configurationDescriptor | ConfigurationDescriptor |
setModuleInvocationContext
public void setModuleInvocationContext (IInvocationContext invocationContext)
Parâmetros |
---|
invocationContext | IInvocationContext |
setRecoveryModeForAllDevices
public void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)
Parâmetros |
---|
mode | ITestDevice.RecoveryMode |
definirTestTag
public void setTestTag (String testTag)
Parâmetros |
---|
testTag | String |
paraProto
public InvocationContext.Context toProto ()
Devoluções |
---|
InvocationContext.Context | |
foi lançado cedo
public boolean wasReleasedEarly ()