to top
public class

KeyValueConfigPreparer

extends Object
implements ITargetPreparer @OptionClass(alias = "key-value-config")
java.lang.Object
   ↳ com.android.tradefed.targetprep.KeyValueConfigPreparer

Class Overview

A ITargetPreparer which creates and pushes a simple key/value config file to the device.

Summary

Fields
private boolean mInterpolate @Option(name = "interpolate", description = "Interpolate path variable")
private Map<String, String> mKeys @Option(name = "config", description = "The key/value pairs of the config")
private String mPath @Option(name = "path", description = "The path of the config file on the device", mandatory = true)
private String mSep @Option(name = "separator", description = "The separator used between key and value")
Public Constructors
KeyValueConfigPreparer()
Public Methods
void setUp(ITestDevice device, IBuildInfo buildInfo)
Perform the target setup for testing.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.targetprep.ITargetPreparer

Fields

private boolean mInterpolate

private Map<String, String> mKeys

private String mPath

private String mSep

Public Constructors

public KeyValueConfigPreparer ()

Public Methods

public void setUp (ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device ITestDevice: the ITestDevice to prepare.
buildInfo IBuildInfo: data about the build under test.
Throws
TargetSetupError
DeviceNotAvailableException