InvocationContext

public class InvocationContext
extends Object implements IInvocationContext

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


Generische Implementierung eines IInvocationContext .

Zusammenfassung

Öffentliche Bauträger

InvocationContext ()

Erstellt eine BuildInfo mit Standardattributwerten.

Öffentliche Methoden

void addAllocatedDevice ( deviceWithName) 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) addSerialsFromShard (Integer index, serials)

static InvocationContext fromProto (InvocationContext.Context protoContext)

Inverse Operation zu InvocationContext#toProto() , um die Instanz zurückzubekommen.

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 ()

Sperren Sie den Kontext, um zu verhindern, dass weitere Aufrufattribute hinzugefügt werden.

void logInvocationMetrics ()

Protokollieren Sie die InvocationMetricLogger Attribute für den Aufruf.

void markReleasedEarly ()
void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)

void setModuleInvocationContext (IInvocationContext invocationContext)

void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)

void setTestTag (String testTag)

InvocationContext.Context toProto ()

boolean wasReleasedEarly ()

Öffentliche Bauträger

InvocationContext

public InvocationContext ()

Erstellt eine BuildInfo mit Standardattributwerten.

Öffentliche Methoden

addAllocatedDevice

public void addAllocatedDevice ( deviceWithName)

Parameter
deviceWithName

addAllocatedDevice

public void addAllocatedDevice (String devicename, 
                ITestDevice testDevice)

Parameter
devicename String

testDevice ITestDevice

addDeviceBuildInfo

public void addDeviceBuildInfo (String deviceName, 
                IBuildInfo buildinfo)

Parameter
deviceName String

buildinfo IBuildInfo

addInvocationAttribute

public void addInvocationAttribute (String attributeName, 
                String attributeValue)

Parameter
attributeName String

attributeValue String

addInvocationAttributes

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

Parameter
attributesMap MultiMap

addSerialsFromShard

public void addSerialsFromShard (Integer index, 
                 serials)

Parameter
index Integer

serials

vonProto

public static InvocationContext fromProto (InvocationContext.Context protoContext)

Inverse Operation zu InvocationContext#toProto() , um die Instanz zurückzubekommen.

Parameter
protoContext InvocationContext.Context

Kehrt zurück
InvocationContext

getAttributes

public MultiMap<String, String> getAttributes ()

Kehrt zurück
MultiMap<String, String>

getBuildInfo

public IBuildInfo getBuildInfo (String deviceName)

Parameter
deviceName String

Kehrt zurück
IBuildInfo

getBuildInfo

public IBuildInfo getBuildInfo (ITestDevice testDevice)

Parameter
testDevice ITestDevice

Kehrt zurück
IBuildInfo

getBuildInfoName

public String getBuildInfoName (IBuildInfo info)

Parameter
info IBuildInfo

Kehrt zurück
String

getBuildInfos

public  getBuildInfos ()

Kehrt zurück

getConfigurationDescriptor

public ConfigurationDescriptor getConfigurationDescriptor ()

Kehrt zurück
ConfigurationDescriptor

getDevice

public ITestDevice getDevice (String deviceName)

Parameter
deviceName String

Kehrt zurück
ITestDevice

getDeviceBuildMap

public  getDeviceBuildMap ()

Kehrt zurück

getDeviceBySerial

public ITestDevice getDeviceBySerial (String serial)

Parameter
serial String

Kehrt zurück
ITestDevice

getDeviceConfigNames

public  getDeviceConfigNames ()

Kehrt zurück

getDeviceName

public String getDeviceName (ITestDevice device)

Parameter
device ITestDevice

Kehrt zurück
String

getDevices

public  getDevices ()

Kehrt zurück

getInvocationId

public String getInvocationId ()

Kehrt zurück
String

getModuleInvocationContext

public IInvocationContext getModuleInvocationContext ()

Kehrt zurück
IInvocationContext

getNumDevicesAllocated

public int getNumDevicesAllocated ()

Kehrt zurück
int

getSerials

public  getSerials ()

Kehrt zurück

getShardsSerials

public  getShardsSerials ()

Kehrt zurück

getTestTag

public String getTestTag ()

Kehrt zurück
String

lockAttributes

public void lockAttributes ()

Sperren Sie den Kontext, um zu verhindern, dass weitere Aufrufattribute hinzugefügt werden.

logInvocationMetrics

public void logInvocationMetrics ()

Protokollieren Sie die InvocationMetricLogger Attribute für den Aufruf.

markReleasedEarly

public void markReleasedEarly ()

setConfigurationDescriptor

public void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)

Parameter
configurationDescriptor ConfigurationDescriptor

setModuleInvocationContext

public void setModuleInvocationContext (IInvocationContext invocationContext)

Parameter
invocationContext IInvocationContext

setRecoveryModeForAllDevices

public void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)

Parameter
mode ITestDevice.RecoveryMode

setTestTag

public void setTestTag (String testTag)

Parameter
testTag String

toProto

public InvocationContext.Context toProto ()

Kehrt zurück
InvocationContext.Context

wasReleasedEarly

public boolean wasReleasedEarly ()

Kehrt zurück
boolean