DependenciesResolver
public
class
DependenciesResolver
extends Object
implements
IBuildProvider,
IDeviceBuildProvider,
IInvocationContextReceiver,
IConfigurationReceiver
java.lang.Object | |
↳ | com.android.tradefed.build.DependenciesResolver |
A new type of provider that allows to get all the dependencies for a test.
Summary
Public constructors | |
---|---|
DependenciesResolver()
|
Public methods | |
---|---|
void
|
cleanUp(IBuildInfo info)
Clean up any temporary build files. |
IBuildInfo
|
getBuild()
Retrieve the data for build under test. |
IBuildInfo
|
getBuild(ITestDevice device)
Retrieve the data for build under test |
final
|
getDependencies()
|
void
|
setConfiguration(IConfiguration configuration)
Injects the |
void
|
setInvocationContext(IInvocationContext invocationContext)
|
Public constructors
DependenciesResolver
public DependenciesResolver ()
Public methods
cleanUp
public void cleanUp (IBuildInfo info)
Clean up any temporary build files.
Parameters | |
---|---|
info |
IBuildInfo |
getBuild
public IBuildInfo getBuild ()
Retrieve the data for build under test.
Returns | |
---|---|
IBuildInfo |
the IBuildInfo for build under test or null if no build is
available for testing |
Throws | |
---|---|
BuildRetrievalError |
getBuild
public IBuildInfo getBuild (ITestDevice device)
Retrieve the data for build under test
Parameters | |
---|---|
device |
ITestDevice : the ITestDevice allocated for test |
Returns | |
---|---|
IBuildInfo |
the IBuildInfo for build under test or null if no build is
available for testing |
Throws | |
---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
getDependencies
public finalgetDependencies ()
Returns | |
---|---|
|
setConfiguration
public void setConfiguration (IConfiguration configuration)
Injects the IConfiguration
in use.
Parameters | |
---|---|
configuration |
IConfiguration |
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
Parameters | |
---|---|
invocationContext |
IInvocationContext |