DeviceSnapshotFeature

public class DeviceSnapshotFeature
extends Object implements IConfigurationReceiver, IRemoteFeature, ITestInformationReceiver

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


Server side implementation of device snapshot.

Summary

Constants

String DELETE_FLAG

String DEVICE_NAME

String DEVICE_SNAPSHOT_FEATURE_NAME

String RESTORE_FLAG

String SNAPSHOT_ID

Public constructors

DeviceSnapshotFeature()

Public methods

FeatureResponse execute(FeatureRequest request)

Returns a FeatureResponse based on the request.

String getName()

Name of the feature.

TestInformation getTestInformation()
void setConfiguration(IConfiguration configuration)

Injects the IConfiguration in use.

void setTestInformation(TestInformation testInformation)

Constants

DELETE_FLAG

public static final String DELETE_FLAG

Constant Value: "delete_flag"

DEVICE_NAME

public static final String DEVICE_NAME

Constant Value: "device_name"

DEVICE_SNAPSHOT_FEATURE_NAME

public static final String DEVICE_SNAPSHOT_FEATURE_NAME

Constant Value: "snapshotDevice"

RESTORE_FLAG

public static final String RESTORE_FLAG

Constant Value: "restore_flag"

SNAPSHOT_ID

public static final String SNAPSHOT_ID

Constant Value: "snapshot_id"

Public constructors

DeviceSnapshotFeature

public DeviceSnapshotFeature ()

Public methods

execute

public FeatureResponse execute (FeatureRequest request)

Returns a FeatureResponse based on the request.

Parameters
request FeatureRequest

Returns
FeatureResponse

getName

public String getName ()

Name of the feature. Must match FeatureRequest.getName().

Returns
String

getTestInformation

public TestInformation getTestInformation ()

Returns
TestInformation

setConfiguration

public void setConfiguration (IConfiguration configuration)

Injects the IConfiguration in use.

Parameters
configuration IConfiguration

setTestInformation

public void setTestInformation (TestInformation testInformation)

Parameters
testInformation TestInformation