Bối cảnh gọi

public class InvocationContext
extends Object implements IInvocationContext

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


Triển khai chung của IInvocationContext .

Bản tóm tắt

Nhà thầu xây dựng công cộng

InvocationContext ()

Tạo BuildInfo bằng cách sử dụng các giá trị thuộc tính mặc định.

Phương pháp công khai

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)

Thao tác nghịch đảo với InvocationContext#toProto() để lấy lại phiên bản.

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

Khóa ngữ cảnh để ngăn không cho thêm nhiều thuộc tính lệnh gọi.

void logInvocationMetrics ()

Ghi nhật ký các thuộc tính InvocationMetricLogger vào lệnh gọi.

void markReleasedEarly ()
void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)

void setModuleInvocationContext (IInvocationContext invocationContext)

void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)

void setTestTag (String testTag)

InvocationContext.Context toProto ()

boolean wasReleasedEarly ()

Nhà thầu xây dựng công cộng

Bối cảnh gọi

public InvocationContext ()

Tạo BuildInfo bằng cách sử dụng các giá trị thuộc tính mặc định.

Phương pháp công khai

thêmThiết bị được phân bổ

public void addAllocatedDevice ( deviceWithName)

Thông số
deviceWithName

thêmThiết bị được phân bổ

public void addAllocatedDevice (String devicename, 
                ITestDevice testDevice)

Thông số
devicename String

testDevice ITestDevice

thêmDeviceBuildInfo

public void addDeviceBuildInfo (String deviceName, 
                IBuildInfo buildinfo)

Thông số
deviceName String

buildinfo IBuildInfo

addInvocationAttribution

public void addInvocationAttribute (String attributeName, 
                String attributeValue)

Thông số
attributeName String

attributeValue String

addInvocationAttribution

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

Thông số
attributesMap MultiMap

addSerialFromShard

public void addSerialsFromShard (Integer index, 
                 serials)

Thông số
index Integer

serials

từProto

public static InvocationContext fromProto (InvocationContext.Context protoContext)

Thao tác nghịch đảo với InvocationContext#toProto() để lấy lại phiên bản.

Thông số
protoContext InvocationContext.Context

Trả lại
InvocationContext

getAttribution

public MultiMap<String, String> getAttributes ()

Trả lại
MultiMap<String, String>

getBuildInfo

public IBuildInfo getBuildInfo (String deviceName)

Thông số
deviceName String

Trả lại
IBuildInfo

getBuildInfo

public IBuildInfo getBuildInfo (ITestDevice testDevice)

Thông số
testDevice ITestDevice

Trả lại
IBuildInfo

getBuildInfoName

public String getBuildInfoName (IBuildInfo info)

Thông số
info IBuildInfo

Trả lại
String

getBuildInfos

public  getBuildInfos ()

Trả lại

getConfigurationDescriptor

public ConfigurationDescriptor getConfigurationDescriptor ()

Trả lại
ConfigurationDescriptor

lấy thiết bị

public ITestDevice getDevice (String deviceName)

Thông số
deviceName String

Trả lại
ITestDevice

getDeviceBuildMap

public  getDeviceBuildMap ()

Trả lại

getDeviceBySerial

public ITestDevice getDeviceBySerial (String serial)

Thông số
serial String

Trả lại
ITestDevice

getDeviceConfigNames

public  getDeviceConfigNames ()

Trả lại

lấy Tên thiết bị

public String getDeviceName (ITestDevice device)

Thông số
device ITestDevice

Trả lại
String

lấy thiết bị

public  getDevices ()

Trả lại

getInvocationId

public String getInvocationId ()

Trả lại
String

getModuleInvocationContext

public IInvocationContext getModuleInvocationContext ()

Trả lại
IInvocationContext

getNumDevicesĐược phân bổ

public int getNumDevicesAllocated ()

Trả lại
int

getSerial

public  getSerials ()

Trả lại

getShardsSerials

public  getShardsSerials ()

Trả lại

getTestTag

public String getTestTag ()

Trả lại
String

khóaThuộc tính

public void lockAttributes ()

Khóa ngữ cảnh để ngăn không cho thêm nhiều thuộc tính lệnh gọi.

logInvocationMetrics

public void logInvocationMetrics ()

Ghi nhật ký các thuộc tính InvocationMetricLogger vào lệnh gọi.

markPhát hành sớm

public void markReleasedEarly ()

setConfigurationDescriptor

public void setConfigurationDescriptor (ConfigurationDescriptor configurationDescriptor)

Thông số
configurationDescriptor ConfigurationDescriptor

setModuleInvocationContext

public void setModuleInvocationContext (IInvocationContext invocationContext)

Thông số
invocationContext IInvocationContext

setRecoveryModeForAllDevices

public void setRecoveryModeForAllDevices (ITestDevice.RecoveryMode mode)

Thông số
mode ITestDevice.RecoveryMode

setTestTag

public void setTestTag (String testTag)

Thông số
testTag String

tớiProto

public InvocationContext.Context toProto ()

Trả lại
InvocationContext.Context

đã được phát hành sớm

public boolean wasReleasedEarly ()

Trả lại
boolean