Google is committed to advancing racial equity for Black communities. See how.
Questa pagina è stata tradotta dall'API Cloud Translation.
Switch to English

InvocationContext

public class InvocationContext
extends Object implements IInvocationContext

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


Implementazione generica di un IInvocationContext .

Sommario

Costruttori pubblici

InvocationContext ()

Crea un BuildInfo utilizzando i valori degli attributi predefiniti.

Metodi pubblici

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)

Operazione inversa su InvocationContext#toProto() per recuperare l'istanza.

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

Blocca il contesto per impedire l'aggiunta di altri attributi di chiamata.

void logInvocationMetrics ()

Registra gli attributi InvocationMetricLogger nella chiamata.

void markReleasedEarly ()
void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)

void setModuleInvocationContext (IInvocationContext invocationContext)

void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)

void setTestTag (String testTag)

InvocationContext.Context toProto ()

boolean wasReleasedEarly ()

Costruttori pubblici

InvocationContext

public InvocationContext ()

Crea un BuildInfo utilizzando i valori degli attributi predefiniti.

Metodi pubblici

addAllocatedDevice

public void addAllocatedDevice ( deviceWithName)

Parametri
deviceWithName

addAllocatedDevice

public void addAllocatedDevice (String devicename, 
                ITestDevice testDevice)

Parametri
devicename String

testDevice ITestDevice

addDeviceBuildInfo

public void addDeviceBuildInfo (String deviceName, 
                IBuildInfo buildinfo)

Parametri
deviceName String

buildinfo IBuildInfo

addInvocationAttribute

public void addInvocationAttribute (String attributeName, 
                String attributeValue)

Parametri
attributeName String

attributeValue String

addInvocationAttributes

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

Parametri
attributesMap MultiMap

addSerialsFromShard

public void addSerialsFromShard (Integer index, 
                 serials)

Parametri
index Integer

serials

fromProto

public static InvocationContext fromProto (InvocationContext.Context protoContext)

Operazione inversa su InvocationContext#toProto() per recuperare l'istanza.

Parametri
protoContext InvocationContext.Context

ritorna
InvocationContext

getAttributes

public MultiMap<String, String> getAttributes ()

ritorna
MultiMap<String, String>

getBuildInfo

public IBuildInfo getBuildInfo (String deviceName)

Parametri
deviceName String

ritorna
IBuildInfo

getBuildInfo

public IBuildInfo getBuildInfo (ITestDevice testDevice)

Parametri
testDevice ITestDevice

ritorna
IBuildInfo

getBuildInfoName

public String getBuildInfoName (IBuildInfo info)

Parametri
info IBuildInfo

ritorna
String

getBuildInfos

public  getBuildInfos ()

ritorna

getConfigurationDescriptor

public ConfigurationDescriptor getConfigurationDescriptor ()

ritorna
ConfigurationDescriptor

getDevice

public ITestDevice getDevice (String deviceName)

Parametri
deviceName String

ritorna
ITestDevice

getDeviceBuildMap

public  getDeviceBuildMap ()

ritorna

getDeviceBySerial

public ITestDevice getDeviceBySerial (String serial)

Parametri
serial String

ritorna
ITestDevice

getDeviceConfigNames

public  getDeviceConfigNames ()

ritorna

getDeviceName

public String getDeviceName (ITestDevice device)

Parametri
device ITestDevice

ritorna
String

getDevices

public  getDevices ()

ritorna

getInvocationId

public String getInvocationId ()

ritorna
String

getModuleInvocationContext

public IInvocationContext getModuleInvocationContext ()

ritorna
IInvocationContext

getNumDevicesAllocated

public int getNumDevicesAllocated ()

ritorna
int

getSerials

public  getSerials ()

ritorna

getShardsSerials

public  getShardsSerials ()

ritorna

getTestTag

public String getTestTag ()

ritorna
String

lockAttributes

public void lockAttributes ()

Blocca il contesto per impedire l'aggiunta di altri attributi di chiamata.

logInvocationMetrics

public void logInvocationMetrics ()

Registra gli attributi InvocationMetricLogger nella chiamata.

markReleasedEarly

public void markReleasedEarly ()

setConfigurationDescriptor

public void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)

Parametri
configurationDescriptor ConfigurationDescriptor

setModuleInvocationContext

public void setModuleInvocationContext (IInvocationContext invocationContext)

Parametri
invocationContext IInvocationContext

setRecoveryModeForAllDevices

public void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)

Parametri
mode ITestDevice.RecoveryMode

setTestTag

public void setTestTag (String testTag)

Parametri
testTag String

toProto

public InvocationContext.Context toProto ()

ritorna
InvocationContext.Context

wasReleasedEarly

public boolean wasReleasedEarly ()

ritorna
boolean