DefaultTestsZipInstaller
public
class
DefaultTestsZipInstaller
extends Object
implements
ITestsZipInstaller
java.lang.Object | |
↳ | com.android.tradefed.targetprep.DefaultTestsZipInstaller |
A default implementation of tests zip installer.
Summary
Public constructors | |
---|---|
DefaultTestsZipInstaller()
Default constructor. |
|
DefaultTestsZipInstaller(
This convenience constructor allows the caller to set the skip list directly, rather than
needing to call |
|
DefaultTestsZipInstaller(String... skipList)
This convenience constructor allows the caller to set the skip list directly, rather than
needing to call |
Public methods | |
---|---|
void
|
deleteData(ITestDevice device)
Removes all of the files/directories from |
|
getDataWipeSkipList()
Get the directory of directories to wipe, used for testing only. |
void
|
pushTestsZipOntoData(ITestDevice device, IDeviceBuildInfo deviceBuild)
Pushes the contents of the tests.zip file onto the device's data partition. This implementation will reboot the device into userland before proceeding. |
void
|
setDataWipeSkipList(
Sets the list of paths under |
void
|
setDataWipeSkipList(String... skipList)
Sets the list of paths under |
Public constructors
DefaultTestsZipInstaller
public DefaultTestsZipInstaller ()
Default constructor.
DefaultTestsZipInstaller
public DefaultTestsZipInstaller (skipList)
This convenience constructor allows the caller to set the skip list directly, rather than
needing to call setDataWipeSkipList(
separately.
Parameters | |
---|---|
skipList |
: The collection of paths under /data to keep when clearing the
filesystem @see #setDataWipeSkipList
|
DefaultTestsZipInstaller
public DefaultTestsZipInstaller (String... skipList)
This convenience constructor allows the caller to set the skip list directly, rather than
needing to call setDataWipeSkipList(
separately.
Parameters | |
---|---|
skipList |
String : The collection of paths under /data to keep when clearing the
filesystem @see #setDataWipeSkipList
|
Public methods
deleteData
public void deleteData (ITestDevice device)
Removes all of the files/directories from /data
on the specified device, with the
exception of those excluded by the skip list.
Parameters | |
---|---|
device |
ITestDevice : The ITestDevice to act on |
Throws | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
getDataWipeSkipList
publicgetDataWipeSkipList ()
Get the directory of directories to wipe, used for testing only.
Returns | |
---|---|
|
the set of directories to skip when wiping a directory |
pushTestsZipOntoData
public void pushTestsZipOntoData (ITestDevice device, IDeviceBuildInfo deviceBuild)
Pushes the contents of the tests.zip file onto the device's data partition.
This implementation will reboot the device into userland before proceeding. It will also stop the Android runtime and leave it down upon return
Parameters | |
---|---|
device |
ITestDevice : the ITestDevice to flash, assumed to be in adb mode. |
deviceBuild |
IDeviceBuildInfo : the IDeviceBuildInfo that contains the tests zip to flash |
Throws | |
---|---|
DeviceNotAvailableException |
|
TargetSetupError |
setDataWipeSkipList
public void setDataWipeSkipList (skipList)
Sets the list of paths under /data
to avoid clearing.
Parameters | |
---|---|
skipList |
: the list of directories to skip.
Note that the granularity of the skip list is direct children of /data . |
setDataWipeSkipList
public void setDataWipeSkipList (String... skipList)
Sets the list of paths under /data
to avoid clearing.
Parameters | |
---|---|
skipList |
String : the list of directories to skip.
Note that the granularity of the skip list is direct children of /data . |