to top
public class

TestSystemAppInstallSetup

extends Object
implements ITargetPreparer @OptionClass(alias = "tests-system-app")
java.lang.Object
   ↳ com.android.tradefed.targetprep.TestSystemAppInstallSetup

Class Overview

A ITargetPreparer that installs one or more apps from a getTestsDir() folder onto the /system partition on device.

Requires adb root

Summary

Fields
private Collection<String> mTestFileNames @Option(name = "system-file-name", description = "the name of a test zip file to install on device system partition. Can be repeated.", importance = com.android.tradefed.config.Option.Importance.IF_UNSET)
Public Constructors
TestSystemAppInstallSetup()
Public Methods
void addTestFileName(String fileName)
Adds a file to the list of apks to install
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 Collection<String> mTestFileNames

Public Constructors

public TestSystemAppInstallSetup ()

Public Methods

public void addTestFileName (String fileName)

Adds a file to the list of apks to install

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