DeviceFolderBuildInfo

public class DeviceFolderBuildInfo
extends DeviceBuildInfo implements IDeviceBuildInfo, IFolderBuildInfo

java.lang.Object
   ↳ com.android.tradefed.build.BuildInfo
     ↳ com.android.tradefed.build.DeviceBuildInfo
       ↳ com.android.tradefed.build.DeviceFolderBuildInfo


A IDeviceBuildInfo that also contains other build artifacts contained in a directory on the local filesystem.

Summary

Public constructors

DeviceFolderBuildInfo()
DeviceFolderBuildInfo(String buildId, String buildName)
DeviceFolderBuildInfo(String buildId, String buildName, boolean useFuseZip)

Creates a DeviceFolderBuildInfo The constructor allows the flag of mUseFuseZip to be configured at the time of building up the DeviceFolderBuildInfo.

Public methods

void cleanUp()

Clean up any temporary build files Additionally, unmount fuse-zip mounted files based on the list of fuse-zip mounted files.

File getRootDir()

Get the root folder that contains the build artifacts.

void setDeviceBuild(IDeviceBuildInfo deviceBuild)

Copy all the files from the IDeviceBuildInfo.

void setFolderBuild(IFolderBuildInfo folderBuild)

Copy all the files from the IFolderBuildInfo.

void setRootDir(File rootDir)

Set the root directory that contains the build artifacts.

boolean shouldUseFuseZip()

Get the flag which indicates whether fuse-zip is in use for the build artifacts.

Protected methods

void addAllFiles(BuildInfo build)

Helper method to copy all files from the other build. Create symlinks for fuse-zip mounted files, instead of hardlinks.

Public constructors

DeviceFolderBuildInfo

public DeviceFolderBuildInfo ()

DeviceFolderBuildInfo

public DeviceFolderBuildInfo (String buildId, 
                String buildName)

Parameters
buildId String

buildName String

DeviceFolderBuildInfo

public DeviceFolderBuildInfo (String buildId, 
                String buildName, 
                boolean useFuseZip)

Creates a DeviceFolderBuildInfo The constructor allows the flag of mUseFuseZip to be configured at the time of building up the DeviceFolderBuildInfo.

Parameters
buildId String: the build id

buildName String: the build target name

useFuseZip boolean: the flag to determine if the build uses zip mounting

Public methods

cleanUp

public void cleanUp ()

Clean up any temporary build files Additionally, unmount fuse-zip mounted files based on the list of fuse-zip mounted files.

getRootDir

public File getRootDir ()

Get the root folder that contains the build artifacts.

Returns
File the ERROR(/File) directory.

setDeviceBuild

public void setDeviceBuild (IDeviceBuildInfo deviceBuild)

Copy all the files from the IDeviceBuildInfo.

Parameters
deviceBuild IDeviceBuildInfo

setFolderBuild

public void setFolderBuild (IFolderBuildInfo folderBuild)

Copy all the files from the IFolderBuildInfo.

Parameters
folderBuild IFolderBuildInfo

setRootDir

public void setRootDir (File rootDir)

Set the root directory that contains the build artifacts.

Parameters
rootDir File

shouldUseFuseZip

public boolean shouldUseFuseZip ()

Get the flag which indicates whether fuse-zip is in use for the build artifacts.

Returns
boolean

Protected methods

addAllFiles

protected void addAllFiles (BuildInfo build)

Helper method to copy all files from the other build.

Creates new hardlinks to the files so that each build will have a unique file path to the file. Create symlinks for fuse-zip mounted files, instead of hardlinks.

Parameters
build BuildInfo