Google berkomitmen untuk mendorong terwujudnya keadilan ras bagi komunitas Kulit Hitam. Lihat caranya.
Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

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

Operasi terbalik ke InvocationContext#toProto() untuk mendapatkan kembali instance.

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

addAllocatedDevice

public void addAllocatedDevice ( deviceWithName)

Parameter
deviceWithName

addAllocatedDevice

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

addSerialsFromShard

public void addSerialsFromShard (Integer index, 
                 serials)

Parameter
index Integer

serials

fromProto

public static InvocationContext fromProto (InvocationContext.Context protoContext)

Operasi terbalik ke InvocationContext#toProto() untuk mendapatkan kembali instance.

Parameter
protoContext InvocationContext.Context

Kembali
InvocationContext

getAttributes

public MultiMap<String, String> getAttributes ()

Kembali
MultiMap<String, String>

getBuildInfo

public IBuildInfo getBuildInfo (String deviceName)

Parameter
deviceName String

Kembali
IBuildInfo

getBuildInfo

public IBuildInfo getBuildInfo (ITestDevice testDevice)

Parameter
testDevice ITestDevice

Kembali
IBuildInfo

getBuildInfoName

public String getBuildInfoName (IBuildInfo info)

Parameter
info IBuildInfo

Kembali
String

getBuildInfos

public  getBuildInfos ()

Kembali

getConfigurationDescriptor

public ConfigurationDescriptor getConfigurationDescriptor ()

Kembali
ConfigurationDescriptor

getDevice

public ITestDevice getDevice (String deviceName)

Parameter
deviceName String

Kembali
ITestDevice

getDeviceBuildMap

public  getDeviceBuildMap ()

Kembali

getDeviceBySerial

public ITestDevice getDeviceBySerial (String serial)

Parameter
serial String

Kembali
ITestDevice

getDeviceConfigNames

public  getDeviceConfigNames ()

Kembali

getDeviceName

public String getDeviceName (ITestDevice device)

Parameter
device ITestDevice

Kembali
String

getDevices

public  getDevices ()

Kembali

getInvocationId

public String getInvocationId ()

Kembali
String

getModuleInvocationContext

public IInvocationContext getModuleInvocationContext ()

Kembali
IInvocationContext

getNumDevicesAllocated

public int getNumDevicesAllocated ()

Kembali
int

getSerials

public  getSerials ()

Kembali

getShardsSerials

public  getShardsSerials ()

Kembali

getTestTag

public String getTestTag ()

Kembali
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

toProto

public InvocationContext.Context toProto ()

Kembali
InvocationContext.Context

wasReleasedEarly

public boolean wasReleasedEarly ()

Kembali
boolean