Kontekst wywołania

public class InvocationContext
extends Object implements IInvocationContext

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


Ogólna implementacja interfejsu IInvocationContext.

Podsumowanie

Konstruktory publiczne

InvocationContext()

Tworzy BuildInfo z użyciem domyślnych wartości atrybutów.

Metody publiczne

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

static InvocationContext fromProto(InvocationContext.Context protoContext)

Wykonaj operację odwrotną do InvocationContext#toProto(), aby przywrócić instancję.

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 uniknąć dodania kolejnych atrybutów wywołania.

void logInvocationMetrics()

Zarejestruj atrybuty InvocationMetricLogger w wywołaniu.

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

Kontekst wywołania

public InvocationContext ()

Tworzy BuildInfo z użyciem domyślnych wartości atrybutów.

Metody publiczne

addAllocationDevice

public void addAllocatedDevice ( deviceWithName)

Parametry
deviceWithName

addAllocationDevice

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

Atrybut addInvocationAttribute

public void addInvocationAttribute (String attributeName, 
                String attributeValue)

Parametry
attributeName String

attributeValue String

addInvocationAttributes

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

Parametry
attributesMap MultiMap

dodajSerialsOdfragmentu

public void addSerialsFromShard (Integer index, 
                 serials)

Parametry
index Integer

serials

z Proto

public static InvocationContext fromProto (InvocationContext.Context protoContext)

Wykonaj operację odwrotną 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

public  getBuildInfos ()

Zwroty

Descriptor getConfigurationDescriptor

public ConfigurationDescriptor getConfigurationDescriptor ()

Zwroty
ConfigurationDescriptor

getDevice

public ITestDevice getDevice (String deviceName)

Parametry
deviceName String

Zwroty
ITestDevice

getDeviceBuildMap

public  getDeviceBuildMap ()

Zwroty

getDeviceBySerial

public ITestDevice getDeviceBySerial (String serial)

Parametry
serial String

Zwroty
ITestDevice

getDeviceConfigNames

public  getDeviceConfigNames ()

Zwroty

getDeviceName

public String getDeviceName (ITestDevice device)

Parametry
device ITestDevice

Zwroty
String

getUrządzenia

public  getDevices ()

Zwroty

getInvocationId

public String getInvocationId ()

Zwroty
String

getModuleInvocationContext

public IInvocationContext getModuleInvocationContext ()

Zwroty
IInvocationContext

getNumDeviceAllocation

public int getNumDevicesAllocated ()

Zwroty
int

getSerials,

public  getSerials ()

Zwroty

getShardsSerials,

public  getShardsSerials ()

Zwroty

getTestTag

public String getTestTag ()

Zwroty
String

atrybuty_zamków

public void lockAttributes ()

Zablokuj kontekst, aby uniknąć dodania kolejnych atrybutów wywołania.

logInvocationMetrics

public void logInvocationMetrics ()

Zarejestruj atrybuty InvocationMetricLogger w wywołaniu.

markReleasedEarly

public void markReleasedEarly ()

setConfigurationDescriptor

public void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)

Parametry
configurationDescriptor ConfigurationDescriptor

setModuleInvocationContext

public void setModuleInvocationContext (IInvocationContext invocationContext)

Parametry
invocationContext IInvocationContext

Ustaw tryb odzyskiwania dla wszystkich urządzeń

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

zostałZwolniony

public boolean wasReleasedEarly ()

Zwroty
boolean