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 |
Metode publik | |
---|---|
void
|
addAllocatedDevice(
|
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,
|
static
InvocationContext
|
fromProto(InvocationContext.Context protoContext)
Balikkan operasi ke |
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 |
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
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
publicgetBuildInfos ()
Hasil | |
---|---|
|
getConfigurationDescriptor
public ConfigurationDescriptor getConfigurationDescriptor ()
Hasil | |
---|---|
ConfigurationDescriptor |
getDevice
public ITestDevice getDevice (String deviceName)
Parameter | |
---|---|
deviceName |
String |
Hasil | |
---|---|
ITestDevice |
getDeviceBuildMap
publicgetDeviceBuildMap ()
Hasil | |
---|---|
|
getDeviceBySerial
public ITestDevice getDeviceBySerial (String serial)
Parameter | |
---|---|
serial |
String |
Hasil | |
---|---|
ITestDevice |
getDeviceConfigNames
publicgetDeviceConfigNames ()
Hasil | |
---|---|
|
getDeviceName
public String getDeviceName (ITestDevice device)
Parameter | |
---|---|
device |
ITestDevice |
Hasil | |
---|---|
String |
getPerangkat
publicgetDevices ()
Hasil | |
---|---|
|
getInvocationId
public String getInvocationId ()
Hasil | |
---|---|
String |
getModuleInvocationContext
public IInvocationContext getModuleInvocationContext ()
Hasil | |
---|---|
IInvocationContext |
getNumDevicesAlokasi
public int getNumDevicesAllocated ()
Hasil | |
---|---|
int |
getSerial
publicgetSerials ()
Hasil | |
---|---|
|
getShardsSerial
publicgetShardsSerials ()
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 |