AppSetup

public class AppSetup
extends BaseTargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
     ↳ com.android.tradefed.targetprep.AppSetup


A ITargetPreparer that installs an apk and its tests.

Requires 'aapt' on PATH when --uninstall is set

Summary

Public constructors

AppSetup()

Public methods

void setUp(ITestDevice device, IBuildInfo buildInfo)

void tearDown(ITestDevice device, IBuildInfo buildInfo, Throwable e)

Public constructors

AppSetup

public AppSetup ()

Public methods

setUp

public void setUp (ITestDevice device, 
                IBuildInfo buildInfo)

Parameters
device ITestDevice

buildInfo IBuildInfo

Throws
BuildError
DeviceNotAvailableException
TargetSetupError

tearDown

public void tearDown (ITestDevice device, 
                IBuildInfo buildInfo, 
                Throwable e)

Parameters
device ITestDevice

buildInfo IBuildInfo

e Throwable

Throws
DeviceNotAvailableException