com.android.builder.testing
Interface TestData


public interface TestData

Data representing the test app and the tested application/library.


Method Summary
 java.lang.String getApplicationId()
          Returns the application id.
 java.lang.Boolean getFunctionalTest()
           
 java.lang.Boolean getHandleProfiling()
           
 java.lang.String getInstrumentationRunner()
           
 com.android.builder.model.ApiVersion getMinSdkVersion()
          The min SDK version of the app
 com.google.common.collect.ImmutableList<java.io.File> getTestedApks(int density, java.util.List<java.lang.String> abis)
          Returns an APK file to install based on given density and abis.
 java.lang.String getTestedApplicationId()
          Returns the tested application id.
 boolean isLibrary()
           
 boolean isTestCoverageEnabled()
          Returns whether the tested app is enabled for code coverage
 

Method Detail

getApplicationId

@NonNull
java.lang.String getApplicationId()
Returns the application id.

Returns:
the id

getTestedApplicationId

@Nullable
java.lang.String getTestedApplicationId()
Returns the tested application id. This can be empty if the test package is self-contained.

Returns:
the id or null.

getInstrumentationRunner

@NonNull
java.lang.String getInstrumentationRunner()

getHandleProfiling

@NonNull
java.lang.Boolean getHandleProfiling()

getFunctionalTest

@NonNull
java.lang.Boolean getFunctionalTest()

isTestCoverageEnabled

boolean isTestCoverageEnabled()
Returns whether the tested app is enabled for code coverage


getMinSdkVersion

@NonNull
com.android.builder.model.ApiVersion getMinSdkVersion()
The min SDK version of the app


isLibrary

boolean isLibrary()

getTestedApks

@NonNull
com.google.common.collect.ImmutableList<java.io.File> getTestedApks(int density,
                                                                            @NonNull
                                                                            java.util.List<java.lang.String> abis)
Returns an APK file to install based on given density and abis.

Parameters:
density - the density
abis - a list of ABIs in descending priority order.
Returns:
the file to install or null if non is compatible.