BaseTargetPreparer

public abstract class BaseTargetPreparer
extends Object implements ITargetPreparer

java.lang.Object
   ↳ com.android.tradefed.targetprep.BaseTargetPreparer
Known Direct Subclasses
AdditionalFilesInstaller A ITargetPreparer that pushes all getFiles() to specific path on device. 
AllTestAppsInstallSetup A ITargetPreparer that installs all apps from a getTestsDir() folder onto device. 
AppSetup A ITargetPreparer that installs an apk and its tests. 
BuildInfoAttributePreparer A ITargetPreparer that adds arbitrary attributes to the IBuildInfo
BuildInfoRecorder An ITargetPreparer that writes build info meta data into a specified file. 
ConnectionChecker Target preparer that waits until an ip address is asigned to any of the specified interfaces. 
CpuThrottlingWaiter An ITargetPreparer that waits until max frequency on all cores are restored to highest level available  
DeviceBuildInfoInjector A ITargetPreparer that inserts DeviceBuildDescriptor metadata into the IBuildInfo
DeviceFlashPreparer A ITargetPreparer that flashes an image on physical Android hardware. 
DeviceSetup A ITargetPreparer that configures a device for testing based on provided Options. 
DeviceWiper A ITargetPreparer that wipes userdata  
EraseUserDataPreparer A ITargetPreparer that wipes user data on the device. 
FileCleaner A ITargetCleaner that removes filesystem files on teardown  
FolderSaver A ITargetCleaner that pulls directories off device, compresses and saves it into logging backend. 
InstallAllTestZipAppsSetup A ITargetPreparer that installs all apps in a test zip. 
InstallApkSetup A ITargetPreparer that installs one or more apks located on the filesystem. 
InstallBuildEnvApkSetup A ITargetPreparer that installs one or more test apks from an Android platform build env. 
InstrumentationPreparer A ITargetPreparer that runs instrumentation  
KernelFlashPreparer A ITargetPreparer that flashes a kernel on the device. 
KeyValueConfigPreparer A ITargetPreparer which creates and pushes a simple key/value config file to the device. 
NativeLeakCollector A ITargetCleaner that runs 'dumpsys meminfo --unreachable -a' to identify the unreachable native memory currently held by each process. 
PreloadedClassesPreparer A ITargetPreparer that replaces the preloaded classes file on a device. 
PushFilePreparer A ITargetPreparer that attempts to push any number of files from any host path to any device path. 
PythonVirtualenvPreparer Sets up a Python virtualenv on the host and installs packages. 
RemoveSystemAppPreparer A ITargetPreparer for removing an apk from the system partition before a test run. 
RunCommandTargetPreparer  
RunHostCommandTargetPreparer Target preparer to run arbitrary host commands before and after running the test. 
SdkAvdPreparer A ITargetPreparer that will create an avd and launch an emulator  
StopServicesSetup A ITargetPreparer that stops services on the device. 
TearDownPassThroughPreparer Allows for running tearDown on preparers that are included in a config as an object. 
TemperatureThrottlingWaiter An ITargetPreparer that waits until device's temperature gets down to target  
TestAppInstallSetup A ITargetPreparer that installs one or more apps from a getTestsDir() folder onto device. 
TestFilePushSetup A ITargetPreparer that pushes one or more files/dirs from a getTestsDir() folder onto device. 
TestSystemAppInstallSetup A ITargetPreparer that installs one or more apps from a getTestsDir() folder onto the /system partition on device. 
TimeWaster A simple target preparer to waste time and potentially restart the device. 
WaitForDeviceDatetimePreparer A ITargetPreparer that waits for datetime to be set on device

Optionally this preparer can force a TargetSetupError if datetime is not set within timeout, or force host datetime onto device,  

WifiPreparer A ITargetPreparer that configures wifi on the device if necessary. 
Known Indirect Subclasses
CompanionRunCommandTargetPreparer A ITargetPreparer that runs specified commands on the allocated companion device  
CompanionTestAppInstallSetup A ITargetPreparer that installs one or more apps from a getTestsDir() folder onto an allocated companion device. 
CrashCollector A ITargetPreparer that runs crash collector on device which suppresses and logs crashes during test execution. 
LocalSdkAvdPreparer A ITargetPreparer that will create an avd and launch an emulator  
PushFileInvoker A ITargetPreparer that pushes files from tests zip onto device, mark them as executable and invokes the binary or script on device. 
SuiteApkInstaller Installs specified APKs for Suite configuration: either from $ANDROID_TARGET_OUT_TESTCASES variable or the ROOT_DIR in build info. 


Base implementation class for ITargetPreparer that allows to control whether the object is disabled or not.

Summary

Public constructors

BaseTargetPreparer()

Public methods

final boolean isDisabled()

Returns True if the object should be disabled and skipped.

Public constructors

BaseTargetPreparer

BaseTargetPreparer ()

Public methods

isDisabled

boolean isDisabled ()

Returns True if the object should be disabled and skipped. False otherwise.

Returns
boolean