设备快照功能

public class DeviceSnapshotFeature
extends Object implements IRemoteFeature , IConfigurationReceiver , ITestInformationReceiver

java.lang.Object
com.android.tradefed.device.internal.DeviceSnapshotFeature


设备快照的服务器端实现。

概括

领域

public static final String DEVICE_NAME

public static final String DEVICE_SNAPSHOT_FEATURE_NAME

public static final String RESTORE_FLAG

public static final String SNAPSHOT_ID

公共构造函数

DeviceSnapshotFeature ()

公共方法

FeatureResponse execute (FeatureRequest request)

根据请求返回一个FeatureResponse

String getName ()

功能名称。

TestInformation getTestInformation ()
void setConfiguration ( IConfiguration configuration)

注入正在使用的IConfiguration

void setTestInformation ( TestInformation testInformation)

领域

设备名称

public static final String DEVICE_NAME

DEVICE_SNAPSHOT_FEATURE_NAME

public static final String DEVICE_SNAPSHOT_FEATURE_NAME

恢复标志

public static final String RESTORE_FLAG

SNAPSHOT_ID

public static final String SNAPSHOT_ID

公共构造函数

设备快照功能

public DeviceSnapshotFeature ()

公共方法

执行

public FeatureResponse execute (FeatureRequest request)

根据请求返回一个FeatureResponse

参数
request FeatureRequest

退货
FeatureResponse

获取名称

public String getName ()

功能名称。必须匹配FeatureRequest#getName()

退货
String

获取测试信息

public TestInformation getTestInformation ()

退货
TestInformation

设置配置

public void setConfiguration (IConfiguration configuration)

注入正在使用的IConfiguration

参数
configuration IConfiguration

设置测试信息

public void setTestInformation (TestInformation testInformation)

参数
testInformation TestInformation