ISdkBuildInfo

public interface ISdkBuildInfo
implements IBuildInfo

com.android.tradefed.build.ISdkBuildInfo
Known Indirect Subclasses
SdkBuildInfo Implementation of a ISdkBuildInfo  
SdkFolderBuildInfo A IBuildInfo that represents an extracted Android SDK and tests and additional build artifacts that are contained in a local file system directory. 


A IBuildInfo that represents an extracted Android SDK and tests.

Summary

Public methods

abstract String getAndroidToolPath()

Helper method to get the absolute file path to the 'android' tool in this sdk build.

abstract String getEmulatorToolPath()

Helper method to get the absolute file path to the 'emulator' tool in this sdk build.

abstract File getSdkDir()

Returns the directory that contains the extracted SDK build.

abstract String[] getSdkTargets()

Gets the list of targets installed in this SDK build.

abstract File getTestsDir()

Returns the directory that contains the extracted tests.

abstract void makeToolsExecutable()

Helper method to ensure all sdk tool binaries are executable.

abstract void setSdkDir(File sdkDir)

Sets the directory that contains the extracted SDK build.

abstract void setSdkDir(File sdkDir, boolean deleteParent)

Sets the directory that contains the extracted SDK build.

abstract void setTestsDir(File testsDir)

Sets the directory that contains the extracted tests.

Public methods

getAndroidToolPath

String getAndroidToolPath ()

Helper method to get the absolute file path to the 'android' tool in this sdk build.

A valid path must be provided to setSdkDir(File) before calling.

Returns
String the absolute file path to the android tool.
Throws
IllegalStateException if sdkDir is not set

getEmulatorToolPath

String getEmulatorToolPath ()

Helper method to get the absolute file path to the 'emulator' tool in this sdk build.

A valid path must be provided to setSdkDir(File) before calling.

Returns
String the absolute file path to the android tool.
Throws
IllegalStateException if sdkDir is not set

getSdkDir

File getSdkDir ()

Returns the directory that contains the extracted SDK build.

Returns
File

getSdkTargets

String[] getSdkTargets ()

Gets the list of targets installed in this SDK build.

A valid path must be provided to setSdkDir(File) before calling.

Returns
String[] a list of defined targets or null if targets could not be retrieved
Throws
IllegalStateException if sdkDir is not set

getTestsDir

File getTestsDir ()

Returns the directory that contains the extracted tests.

Returns
File

makeToolsExecutable

void makeToolsExecutable ()

Helper method to ensure all sdk tool binaries are executable.

setSdkDir

void setSdkDir (File sdkDir)

Sets the directory that contains the extracted SDK build.

Parameters
sdkDir File: the path to the sdk.

setSdkDir

void setSdkDir (File sdkDir, 
                boolean deleteParent)

Sets the directory that contains the extracted SDK build.

Parameters
sdkDir File: the path to the sdk
deleteParent boolean: if true, delete the parent directory of sdkDir on cleanUp(). If false, only sdkDir will be deleted.

setTestsDir

void setTestsDir (File testsDir)

Sets the directory that contains the extracted tests.

Parameters
testsDir File