InvocationContext

public class InvocationContext
extends Object implements IInvocationContext

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


הטמעה כללית של IInvocationContext.

סיכום

קונסטרוקטורים גלויים לכולם

InvocationContext()

יצירת BuildInfo באמצעות ערכי ברירת המחדל של המאפיינים.

שיטות ציבוריות

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)

מבצעים פעולה הפוכה ל-InvocationContext#toProto() כדי להחזיר את המכונה.

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

נועלים את ההקשר כדי למנוע הוספה של מאפייני הפעלה נוספים.

void logInvocationMetrics()

מתעדים ביומן את המאפיינים InvocationMetricLogger בקריאה.

void markReleasedEarly()
void setConfigurationDescriptor(ConfigurationDescriptor configurationDescriptor)

void setModuleInvocationContext(IInvocationContext invocationContext)

void setRecoveryModeForAllDevices(ITestDevice.RecoveryMode mode)

void setTestTag(String testTag)

InvocationContext.Context toProto()

boolean wasReleasedEarly()

קונסטרוקטורים גלויים לכולם

InvocationContext

public InvocationContext ()

יצירת BuildInfo באמצעות ערכי ברירת המחדל של המאפיינים.

שיטות ציבוריות

addAllocatedDevice

public void addAllocatedDevice ( deviceWithName)

פרמטרים
deviceWithName

addAllocatedDevice

public void addAllocatedDevice (String devicename, 
                ITestDevice testDevice)

פרמטרים
devicename String

testDevice ITestDevice

addDeviceBuildInfo

public void addDeviceBuildInfo (String deviceName, 
                IBuildInfo buildinfo)

פרמטרים
deviceName String

buildinfo IBuildInfo

addInvocationAttribute

public void addInvocationAttribute (String attributeName, 
                String attributeValue)

פרמטרים
attributeName String

attributeValue String

addInvocationAttributes

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

פרמטרים
attributesMap MultiMap

addSerialsFromShard

public void addSerialsFromShard (Integer index, 
                 serials)

פרמטרים
index Integer

serials

fromProto

public static InvocationContext fromProto (InvocationContext.Context protoContext)

מבצעים פעולה הפוכה ל-InvocationContext#toProto() כדי להחזיר את המכונה.

פרמטרים
protoContext InvocationContext.Context

החזרות
InvocationContext

getAttributes

public MultiMap<String, String> getAttributes ()

החזרות
MultiMap<String, String>

getBuildInfo

public IBuildInfo getBuildInfo (String deviceName)

פרמטרים
deviceName String

החזרות
IBuildInfo

getBuildInfo

public IBuildInfo getBuildInfo (ITestDevice testDevice)

פרמטרים
testDevice ITestDevice

החזרות
IBuildInfo

getBuildInfoName

public String getBuildInfoName (IBuildInfo info)

פרמטרים
info IBuildInfo

החזרות
String

getBuildInfos

public  getBuildInfos ()

החזרות

getConfigurationDescriptor

public ConfigurationDescriptor getConfigurationDescriptor ()

החזרות
ConfigurationDescriptor

getDevice

public ITestDevice getDevice (String deviceName)

פרמטרים
deviceName String

החזרות
ITestDevice

getDeviceBuildMap

public  getDeviceBuildMap ()

החזרות

getDeviceBySerial

public ITestDevice getDeviceBySerial (String serial)

פרמטרים
serial String

החזרות
ITestDevice

getDeviceConfigNames

public  getDeviceConfigNames ()

החזרות

getDeviceName

public String getDeviceName (ITestDevice device)

פרמטרים
device ITestDevice

החזרות
String

getDevices

public  getDevices ()

החזרות

getInvocationId

public String getInvocationId ()

החזרות
String

getModuleInvocationContext

public IInvocationContext getModuleInvocationContext ()

החזרות
IInvocationContext

getNumDevicesAllocated

public int getNumDevicesAllocated ()

החזרות
int

getSerials

public  getSerials ()

החזרות

getShardsSerials

public  getShardsSerials ()

החזרות

getTestTag

public String getTestTag ()

החזרות
String

lockAttributes

public void lockAttributes ()

נועלים את ההקשר כדי למנוע הוספה של מאפייני הפעלה נוספים.

logInvocationMetrics

public void logInvocationMetrics ()

מתעדים ביומן את המאפיינים InvocationMetricLogger בקריאה.

markReleasedEarly

public void markReleasedEarly ()

setConfigurationDescriptor

public void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)

פרמטרים
configurationDescriptor ConfigurationDescriptor

setModuleInvocationContext

public void setModuleInvocationContext (IInvocationContext invocationContext)

פרמטרים
invocationContext IInvocationContext

setRecoveryModeForAllDevices

public void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)

פרמטרים
mode ITestDevice.RecoveryMode

setTestTag

public void setTestTag (String testTag)

פרמטרים
testTag String

toProto

public InvocationContext.Context toProto ()

החזרות
InvocationContext.Context

wasReleasedEarly

public boolean wasReleasedEarly ()

החזרות
boolean