CompanionTestAppInstallSetup

public class CompanionTestAppInstallSetup
extends TestAppInstallSetup

java.lang.Object
   ↳ com.android.tradefed.targetprep.TestAppInstallSetup
     ↳ com.android.tradefed.targetprep.companion.CompanionTestAppInstallSetup


A ITargetPreparer that installs one or more apps from a getTestsDir() folder onto an allocated companion device.

Note that this implies the test artifact in question in built into primary device build but also suitable for companion device

Summary

Fields

ITestDevice mCompanion

Public constructors

CompanionTestAppInstallSetup()

Public methods

void setUp(ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

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

Perform the target cleanup/teardown after testing.

Fields

mCompanion

ITestDevice mCompanion

Public constructors

CompanionTestAppInstallSetup

CompanionTestAppInstallSetup ()

Public methods

setUp

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

tearDown

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

Perform the target cleanup/teardown after testing.

Parameters
device ITestDevice: the ITestDevice to prepare.

buildInfo IBuildInfo: data about the build under test.

e Throwable: if the invocation ended with an exception, this will be the exception that was caught at the Invocation level. Otherwise, will be null.

Throws
DeviceNotAvailableException