InvocationContext

public class InvocationContext
extends Object implements IInvocationContext

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


Implementasi umum dari IInvocationContext.

Ringkasan

Konstruktor publik

InvocationContext()

Membuat BuildInfo menggunakan nilai atribut default.

Metode publik

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)

Balikkan operasi ke InvocationContext#toProto() untuk mendapatkan instance kembali.

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

Kunci konteks untuk mencegah lebih banyak atribut pemanggilan ditambahkan.

void logInvocationMetrics()

Catat atribut InvocationMetricLogger ke pemanggilan.

void markReleasedEarly()
void setConfigurationDescriptor(ConfigurationDescriptor configurationDescriptor)

void setModuleInvocationContext(IInvocationContext invocationContext)

void setRecoveryModeForAllDevices(ITestDevice.RecoveryMode mode)

void setTestTag(String testTag)

InvocationContext.Context toProto()

boolean wasReleasedEarly()

Konstruktor publik

InvocationContext

public InvocationContext ()

Membuat BuildInfo menggunakan nilai atribut default.

Metode publik

addAllocationDevice

public void addAllocatedDevice ( deviceWithName)

Parameter
deviceWithName

addAllocationDevice

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

addSerialFromShard

public void addSerialsFromShard (Integer index, 
                 serials)

Parameter
index Integer

serials

dariProto

public static InvocationContext fromProto (InvocationContext.Context protoContext)

Balikkan operasi ke InvocationContext#toProto() untuk mendapatkan instance kembali.

Parameter
protoContext InvocationContext.Context

Hasil
InvocationContext

getAttributes

public MultiMap<String, String> getAttributes ()

Hasil
MultiMap<String, String>

getBuildInfo

public IBuildInfo getBuildInfo (String deviceName)

Parameter
deviceName String

Hasil
IBuildInfo

getBuildInfo

public IBuildInfo getBuildInfo (ITestDevice testDevice)

Parameter
testDevice ITestDevice

Hasil
IBuildInfo

getBuildInfoName

public String getBuildInfoName (IBuildInfo info)

Parameter
info IBuildInfo

Hasil
String

getBuildInfo

public  getBuildInfos ()

Hasil

getConfigurationDescriptor

public ConfigurationDescriptor getConfigurationDescriptor ()

Hasil
ConfigurationDescriptor

getDevice

public ITestDevice getDevice (String deviceName)

Parameter
deviceName String

Hasil
ITestDevice

getDeviceBuildMap

public  getDeviceBuildMap ()

Hasil

getDeviceBySerial

public ITestDevice getDeviceBySerial (String serial)

Parameter
serial String

Hasil
ITestDevice

getDeviceConfigNames

public  getDeviceConfigNames ()

Hasil

getDeviceName

public String getDeviceName (ITestDevice device)

Parameter
device ITestDevice

Hasil
String

getPerangkat

public  getDevices ()

Hasil

getInvocationId

public String getInvocationId ()

Hasil
String

getModuleInvocationContext

public IInvocationContext getModuleInvocationContext ()

Hasil
IInvocationContext

getNumDevicesAlokasi

public int getNumDevicesAllocated ()

Hasil
int

getSerial

public  getSerials ()

Hasil

getShardsSerial

public  getShardsSerials ()

Hasil

getTestTag

public String getTestTag ()

Hasil
String

lockAttributes

public void lockAttributes ()

Kunci konteks untuk mencegah lebih banyak atribut pemanggilan ditambahkan.

logInvocationMetrics

public void logInvocationMetrics ()

Catat atribut InvocationMetricLogger ke pemanggilan.

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

keProto

public InvocationContext.Context toProto ()

Hasil
InvocationContext.Context

wasDirilisAwal

public boolean wasReleasedEarly ()

Hasil
boolean