GkiDeviceFlashPreparer
public
class
GkiDeviceFlashPreparer
extends BaseTargetPreparer
A target preparer that flash the device with android common kernel generic image. Please see
https://source.android.com/devices/architecture/kernel/android-common for details.
Summary
Public methods |
void
|
setUp(TestInformation testInfo)
|
void
|
validateGkiBootImg(ITestDevice device, IBuildInfo buildInfo)
Validate GKI boot image is expected.
|
Protected methods |
IRunUtil
|
getRunUtil()
Get the IRunUtil instance to use.
|
void
|
validateGkiBootImg(ITestDevice device, IBuildInfo buildInfo, File tmpDir)
Validate GKI boot image is expected.
|
Public constructors
GkiDeviceFlashPreparer
public GkiDeviceFlashPreparer ()
Public methods
public void setUp (TestInformation testInfo)
Parameters |
testInfo |
TestInformation |
Throws |
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
validateGkiBootImg
public void validateGkiBootImg (ITestDevice device,
IBuildInfo buildInfo)
Validate GKI boot image is expected. (Obsoleted. Please call with tmpDir provided)
Throws |
TargetSetupError |
if there is no valid gki boot.img
|
Protected methods
getRunUtil
protected IRunUtil getRunUtil ()
Get the IRunUtil
instance to use.
validateGkiBootImg
protected void validateGkiBootImg (ITestDevice device,
IBuildInfo buildInfo,
File tmpDir)
Validate GKI boot image is expected. Throw exception if there is no valid boot.img.
Throws |
TargetSetupError |
if there is no valid gki boot.img
|