Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.
Se usó la API de Cloud Translation para traducir esta página.
Switch to English

InvocationContext

public class InvocationContext
extends Object implements IInvocationContext

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


Implementación genérica de IInvocationContext .

Resumen

Constructores públicos

InvocationContext ()

Crea un BuildInfo utilizando valores de atributo predeterminados.

Métodos públicos

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)

Operación inversa a InvocationContext#toProto() para recuperar la instancia.

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

Bloquee el contexto para evitar que se agreguen más atributos de invocación.

void logInvocationMetrics ()

Registre los atributos InvocationMetricLogger en la invocación.

void markReleasedEarly ()
void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)

void setModuleInvocationContext (IInvocationContext invocationContext)

void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)

void setTestTag (String testTag)

InvocationContext.Context toProto ()

boolean wasReleasedEarly ()

Constructores públicos

InvocationContext

public InvocationContext ()

Crea un BuildInfo utilizando valores de atributo predeterminados.

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

deProto

public static InvocationContext fromProto (InvocationContext.Context protoContext)

Operación inversa a InvocationContext#toProto() para recuperar la instancia.

Parámetros
protoContext InvocationContext.Context

Devoluciones
InvocationContext

getAttributes

public MultiMap<String, String> getAttributes ()

Devoluciones
MultiMap<String, String>

getBuildInfo

public IBuildInfo getBuildInfo (String deviceName)

Parámetros
deviceName String

Devoluciones
IBuildInfo

getBuildInfo

public IBuildInfo getBuildInfo (ITestDevice testDevice)

Parámetros
testDevice ITestDevice

Devoluciones
IBuildInfo

getBuildInfoName

public String getBuildInfoName (IBuildInfo info)

Parámetros
info IBuildInfo

Devoluciones
String

getBuildInfos

public  getBuildInfos ()

Devoluciones

getConfigurationDescriptor

public ConfigurationDescriptor getConfigurationDescriptor ()

Devoluciones
ConfigurationDescriptor

getDevice

public ITestDevice getDevice (String deviceName)

Parámetros
deviceName String

Devoluciones
ITestDevice

getDeviceBuildMap

public  getDeviceBuildMap ()

Devoluciones

getDeviceBySerial

public ITestDevice getDeviceBySerial (String serial)

Parámetros
serial String

Devoluciones
ITestDevice

getDeviceConfigNames

public  getDeviceConfigNames ()

Devoluciones

getDeviceName

public String getDeviceName (ITestDevice device)

Parámetros
device ITestDevice

Devoluciones
String

getDevices

public  getDevices ()

Devoluciones

getInvocationId

public String getInvocationId ()

Devoluciones
String

getModuleInvocationContext

public IInvocationContext getModuleInvocationContext ()

Devoluciones
IInvocationContext

getNumDevicesAllocated

public int getNumDevicesAllocated ()

Devoluciones
int

getSerials

public  getSerials ()

Devoluciones

getShardsSerials

public  getShardsSerials ()

Devoluciones

getTestTag

public String getTestTag ()

Devoluciones
String

lockAttributes

public void lockAttributes ()

Bloquee el contexto para evitar que se agreguen más atributos de invocación.

logInvocationMetrics

public void logInvocationMetrics ()

Registre los atributos InvocationMetricLogger en la invocación.

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

setTestTag

public void setTestTag (String testTag)

Parámetros
testTag String

toProto

public InvocationContext.Context toProto ()

Devoluciones
InvocationContext.Context

wasReleasedEarly

public boolean wasReleasedEarly ()

Devoluciones
boolean