InvocationContext
public
class
InvocationContext
extends Object
implements
IInvocationContext
java.lang.Object | |
↳ | com.android.tradefed.invoker.InvocationContext |
Ogólna implementacja IInvocationContext
.
Podsumowanie
Konstruktory publiczne | |
---|---|
InvocationContext()
Tworzy |
Metody publiczne | |
---|---|
void
|
addAllocatedDevice(
|
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,
|
static
InvocationContext
|
fromProto(InvocationContext.Context protoContext)
Odwrotna operacja do |
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()
Zablokuj kontekst, aby zapobiec dodawaniu kolejnych atrybutów wywołania. |
void
|
logInvocationMetrics()
Zaloguj atrybuty |
void
|
markReleasedEarly()
|
void
|
setConfigurationDescriptor(ConfigurationDescriptor configurationDescriptor)
|
void
|
setModuleInvocationContext(IInvocationContext invocationContext)
|
void
|
setRecoveryModeForAllDevices(ITestDevice.RecoveryMode mode)
|
void
|
setTestTag(String testTag)
|
InvocationContext.Context
|
toProto()
|
boolean
|
wasReleasedEarly()
|
Konstruktory publiczne
InvocationContext
public InvocationContext ()
Tworzy BuildInfo
, używając domyślnych wartości atrybutów.
Metody publiczne
addAllocatedDevice
public void addAllocatedDevice (deviceWithName)
Parametry | |
---|---|
deviceWithName |
|
addAllocatedDevice
public void addAllocatedDevice (String devicename, ITestDevice testDevice)
Parametry | |
---|---|
devicename |
String |
testDevice |
ITestDevice |
addDeviceBuildInfo
public void addDeviceBuildInfo (String deviceName, IBuildInfo buildinfo)
Parametry | |
---|---|
deviceName |
String |
buildinfo |
IBuildInfo |
addInvocationAttribute
public void addInvocationAttribute (String attributeName, String attributeValue)
Parametry | |
---|---|
attributeName |
String |
attributeValue |
String |
addInvocationAttributes
public void addInvocationAttributes (MultiMap<String, String> attributesMap)
Parametry | |
---|---|
attributesMap |
MultiMap |
addSerialsFromShard
public void addSerialsFromShard (Integer index,serials)
Parametry | |
---|---|
index |
Integer |
serials |
|
fromProto
public static InvocationContext fromProto (InvocationContext.Context protoContext)
Odwrotna operacja do InvocationContext#toProto()
, aby przywrócić instancję.
Parametry | |
---|---|
protoContext |
InvocationContext.Context |
Zwroty | |
---|---|
InvocationContext |
getAttributes
public MultiMap<String, String> getAttributes ()
Zwroty | |
---|---|
MultiMap<String, String> |
getBuildInfo
public IBuildInfo getBuildInfo (String deviceName)
Parametry | |
---|---|
deviceName |
String |
Zwroty | |
---|---|
IBuildInfo |
getBuildInfo
public IBuildInfo getBuildInfo (ITestDevice testDevice)
Parametry | |
---|---|
testDevice |
ITestDevice |
Zwroty | |
---|---|
IBuildInfo |
getBuildInfoName
public String getBuildInfoName (IBuildInfo info)
Parametry | |
---|---|
info |
IBuildInfo |
Zwroty | |
---|---|
String |
getBuildInfos
publicgetBuildInfos ()
Zwroty | |
---|---|
|
getConfigurationDescriptor
public ConfigurationDescriptor getConfigurationDescriptor ()
Zwroty | |
---|---|
ConfigurationDescriptor |
getDevice
public ITestDevice getDevice (String deviceName)
Parametry | |
---|---|
deviceName |
String |
Zwroty | |
---|---|
ITestDevice |
getDeviceBuildMap
publicgetDeviceBuildMap ()
Zwroty | |
---|---|
|
getDeviceBySerial
public ITestDevice getDeviceBySerial (String serial)
Parametry | |
---|---|
serial |
String |
Zwroty | |
---|---|
ITestDevice |
getDeviceConfigNames
publicgetDeviceConfigNames ()
Zwroty | |
---|---|
|
getDeviceName
public String getDeviceName (ITestDevice device)
Parametry | |
---|---|
device |
ITestDevice |
Zwroty | |
---|---|
String |
getDevices
publicgetDevices ()
Zwroty | |
---|---|
|
getInvocationId
public String getInvocationId ()
Zwroty | |
---|---|
String |
getModuleInvocationContext
public IInvocationContext getModuleInvocationContext ()
Zwroty | |
---|---|
IInvocationContext |
getNumDevicesAllocated
public int getNumDevicesAllocated ()
Zwroty | |
---|---|
int |
getSerials
publicgetSerials ()
Zwroty | |
---|---|
|
getShardsSerials
publicgetShardsSerials ()
Zwroty | |
---|---|
|
getTestTag
public String getTestTag ()
Zwroty | |
---|---|
String |
lockAttributes
public void lockAttributes ()
Zablokuj kontekst, aby zapobiec dodawaniu kolejnych atrybutów wywołania.
logInvocationMetrics
public void logInvocationMetrics ()
Zaloguj atrybuty InvocationMetricLogger
do wywołania.
markReleasedEarly
public void markReleasedEarly ()
setConfigurationDescriptor
public void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)
Parametry | |
---|---|
configurationDescriptor |
ConfigurationDescriptor |
setModuleInvocationContext
public void setModuleInvocationContext (IInvocationContext invocationContext)
Parametry | |
---|---|
invocationContext |
IInvocationContext |
setRecoveryModeForAllDevices
public void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)
Parametry | |
---|---|
mode |
ITestDevice.RecoveryMode |
setTestTag
public void setTestTag (String testTag)
Parametry | |
---|---|
testTag |
String |
toProto
public InvocationContext.Context toProto ()
Zwroty | |
---|---|
InvocationContext.Context |
wasReleasedEarly
public boolean wasReleasedEarly ()
Zwroty | |
---|---|
boolean |