DeviceSnapshotFeature

public class DeviceSnapshotFeature
extends Object implements IConfigurationReceiver, IRemoteFeature, ITestInformationReceiver

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


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

摘要

常量

String DELETE_FLAG

String DEVICE_NAME

String DEVICE_SNAPSHOT_FEATURE_NAME

String RESTORE_FLAG

String SNAPSHOT_ID

公共构造函数

DeviceSnapshotFeature()

公共方法

FeatureResponse execute(FeatureRequest request)

根据请求返回 FeatureResponse

String getName()

功能名称。

TestInformation getTestInformation()
void setConfiguration(IConfiguration configuration)

注入正在使用的 IConfiguration

void setTestInformation(TestInformation testInformation)

常量

DELETE_FLAG

public static final String DELETE_FLAG

常量值: "delete_flag"

DEVICE_NAME

public static final String DEVICE_NAME

常量值: "device_name"

DEVICE_SNAPSHOT_FEATURE_NAME

public static final String DEVICE_SNAPSHOT_FEATURE_NAME

常量值: "snapshotDevice"

RESTORE_FLAG

public static final String RESTORE_FLAG

常量值: “restore_flag”

SNAPSHOT_ID

public static final String SNAPSHOT_ID

常量值: "snapshot_id"

公共构造函数

DeviceSnapshotFeature

public DeviceSnapshotFeature ()

公共方法

execute

public FeatureResponse execute (FeatureRequest request)

根据请求返回 FeatureResponse

参数
request FeatureRequest

返回
FeatureResponse

getName

public String getName ()

功能名称。必须与 FeatureRequest.getName() 一致。

返回
String

getTestInformation

public TestInformation getTestInformation ()

返回
TestInformation

setConfiguration

public void setConfiguration (IConfiguration configuration)

注入正在使用的 IConfiguration

参数
configuration IConfiguration

setTestInformation

public void setTestInformation (TestInformation testInformation)

参数
testInformation TestInformation