to top
public class

InstallBuildEnvApkSetup

extends Object
implements ITargetPreparer @OptionClass(alias = "install-apk-from-env")
java.lang.Object
   ↳ com.android.tradefed.targetprep.InstallBuildEnvApkSetup

Class Overview

A ITargetPreparer that installs one or more test apks from an Android platform build env.

Uses the ANDROID_PRODUCT_OUT env variable to determine location for build apks.

Summary

Fields
private Collection<String> mApkNames @Option(name = "apk-name", description = "the file name of the apk to install. Can be repeated.", importance = com.android.tradefed.config.Option.Importance.IF_UNSET)
Public Constructors
InstallBuildEnvApkSetup()
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 Collection<String> mApkNames

Public Constructors

public InstallBuildEnvApkSetup ()

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
BuildError
DeviceNotAvailableException