to top
public class

SdkBuildInfo

extends BuildInfo
implements ISdkBuildInfo
java.lang.Object
   ↳ com.android.tradefed.build.BuildInfo
     ↳ com.android.tradefed.build.SdkBuildInfo

Class Overview

Implementation of a ISdkBuildInfo

Summary

[Expand]
Inherited Constants
From interface com.android.tradefed.build.IBuildInfo
Public Constructors
SdkBuildInfo()
Creates a SdkBuildInfo using default attribute values.
SdkBuildInfo(String buildId, String testTarget, String buildName)
Creates a SdkBuildInfo
Public Methods
void cleanUp()
Clean up any temporary build files
IBuildInfo clone()
String getAndroidToolPath()
Helper method to get the absolute file path to the 'android' tool in this sdk build.
String getEmulatorToolPath()
Helper method to get the absolute file path to the 'emulator' tool in this sdk build.
File getSdkDir()
Returns the directory that contains the extracted SDK build.
String[] getSdkTargets()
Gets the list of targets installed in this SDK build.
File getTestsDir()
Returns the directory that contains the extracted tests.
void makeToolsExecutable()
Helper method to ensure all sdk tool binaries are executable.
void setSdkDir(File sdkDir)
Sets the directory that contains the extracted SDK build.
void setSdkDir(File sdkDir, boolean deleteParent)
Sets the directory that contains the extracted SDK build.
void setTestsDir(File testDir)
Sets the directory that contains the extracted tests.
[Expand]
Inherited Methods
From class com.android.tradefed.build.BuildInfo
From class java.lang.Object
From interface com.android.tradefed.build.IBuildInfo
From interface com.android.tradefed.build.ISdkBuildInfo

Public Constructors

public SdkBuildInfo ()

Creates a SdkBuildInfo using default attribute values.

public SdkBuildInfo (String buildId, String testTarget, String buildName)

Creates a SdkBuildInfo

Parameters
buildId String: the build id
testTarget String: the test target name
buildName String: the build name

Public Methods

public void cleanUp ()

Clean up any temporary build files

public IBuildInfo clone ()

Returns
IBuildInfo

public 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.

public 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.

public File getSdkDir ()

Returns the directory that contains the extracted SDK build.

Returns
File

public 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

public File getTestsDir ()

Returns the directory that contains the extracted tests.

Returns
File

public void makeToolsExecutable ()

Helper method to ensure all sdk tool binaries are executable.

public void setSdkDir (File sdkDir)

Sets the directory that contains the extracted SDK build.

Parameters
sdkDir File: the path to the sdk.

public 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.

public void setTestsDir (File testDir)

Sets the directory that contains the extracted tests.

Parameters
testDir File