Google is committed to advancing racial equity for Black communities. See how.


FlashingResourcesParser.Constraint A filtering interface, intended to allow FlashingResourcesParser to ignore some resources that it otherwise might use  
IDeviceFlasher Flashes a device image on a device. 
IFlashingResourcesParser Interface for providing required versions of auxiliary image files needed to flash a device. 
IFlashingResourcesRetriever Interface for retrieving auxiliary image files needed to flash a device. 
IHostCleaner Cleans up the host after the test run has finished. 
ITargetCleaner Cleans up the target device after the test run has finished. 
ITargetPreparer Prepares the test environment for the test run. 
ITestsZipInstaller Installs tests from a tests zip file (as outputted by the build system) on a device. 


AbstractTargetCleaner An ITargetCleaner class with a stub setUp(ITestDevice, IBuildInfo) method  
AdditionalFilesInstaller A ITargetPreparer that pushes all IBuildInfo#getFiles() to specific path on device. 
AllTestAppsInstallSetup A ITargetPreparer that installs all apps from a IDeviceBuildInfo#getTestsDir() folder onto device. 
AoaTargetPreparer ITargetPreparer that executes a series of actions (e.g. clicks and swipes) using the Android Open Accessory (AOAv2) protocol. 
AppSetup A ITargetPreparer that installs an apk and its tests. 
BaseTargetPreparer Base implementation class for ITargetPreparer that allows to control whether the object is disabled or not. 
BuildError Thrown if the provided build fails to run. 
BuildInfoAttributePreparer A ITargetPreparer that adds arbitrary attributes to the IBuildInfo
BuildInfoRecorder An ITargetPreparer that writes build info meta data into a specified file. 
CdmaDeviceFlasher A class that flashes an image on a physical Android device with a CDMA radio. 
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  
CrashCollector A ITargetPreparer that runs crash collector on device which suppresses and logs crashes during test execution. 
CreateUserPreparer Target preparer for creating user and cleaning it up at the end. 
DefaultTestsZipInstaller A default implementation of tests zip installer. 
DeviceBuildInfoInjector A ITargetPreparer that inserts DeviceBuildDescriptor metadata into the IBuildInfo
DeviceCleaner Performs reboot or format as cleanup action after test, and optionally turns screen off  
DeviceFailedToBootError Thrown if a device fails to boot after being flashed with a build. 
DeviceFlashPreparer A ITargetPreparer that flashes an image on physical Android hardware. 
DeviceSetup A ITargetPreparer that configures a device for testing based on provided Options. 
DeviceStorageFiller Target preparer to fill up storage so some amount of free space is available. 
DeviceStringPusher Target preparer to write a string to a file. 
DeviceWiper A ITargetPreparer that wipes userdata  
DisableSELinuxTargetPreparer Target preparer that disables SELinux if enabled. 
EraseUserDataPreparer A ITargetPreparer that wipes user data on the device. 
FastbootCommandPreparer Target preparer that triggers fastboot and sends fastboot commands. 
FastbootDeviceFlasher A class that relies on fastboot to flash an image on physical Android hardware. 
FileCleaner A ITargetCleaner that removes filesystem files on teardown  
FlashingResourcesParser A class that parses out required versions of auxiliary image files needed to flash a device. 
FlashingResourcesParser.AndroidInfo A typedef for Map<String, MultiMap<String, String>>
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  
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. 
PerfettoPreparer Perfetto preparer pushes the config file in to the device at a standard location to which perfetto have access. 
PreloadedClassesPreparer A ITargetPreparer that replaces the preloaded classes file on a device. 
PushFileInvoker A ITargetPreparer that pushes files from tests zip onto device, mark them as executable and invokes the binary or script on 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. 
RebootTargetPreparer Target preparer that reboots the device. 
RemoveSystemAppPreparer A ITargetPreparer for removing an apk from the system partition before a test run. 
RestartSystemServerTargetPreparer Target preparer that restarts the system server without rebooting the device. 
RootTargetPreparer Target preparer that performs "adb root". 
RunHostCommandTargetPreparer Target preparer to run arbitrary host commands before and after running the test. 
SemaphoreTokenTargetPreparer This is a preparer used to use token to serialize test excution in tradefed host. 
StopServicesSetup A ITargetPreparer that stops services on the device. 
StubTargetPreparer Placeholder empty implementation of a ITargetPreparer
SwitchUserTargetPreparer A ITargetPreparer that switches to the specified user kind in setUp. 
SystemUpdaterDeviceFlasher A IDeviceFlasher that relies on the system updater to install a system image bundled in a OTA update package. 
TargetSetupError A fatal error occurred while preparing the target for testing. 
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 IDeviceBuildInfo#getTestsDir() folder onto device. 
TestFilePushSetup A ITargetPreparer that pushes one or more files/dirs from a IDeviceBuildInfo#getTestsDir() folder onto device. 
TestSystemAppInstallSetup A ITargetPreparer that installs one or more apps from a IDeviceBuildInfo#getTestsDir() folder onto the /system partition on device. 
TimeSetterTargetPreparer Target preparer to restore the correct time to the device on cleanup. 
TimeWaster A simple target preparer to waste time and potentially restart the device. 
UserCleaner A ITargetCleaner that removes secondary users on teardown. 
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. 


AltDirBehavior An enum to define alternative directory behaviors for various test artifact installers/pushers


DeviceFlashPreparer.EncryptionOptions Enum of options for handling the encryption of userdata image  
IDeviceFlasher.UserDataFlashOption Enum of options for handling the userdata image