public abstract class

DeviceFlashPreparer

extends Object
implements ITargetPreparer
java.lang.Object
   ↳ com.android.tradefed.targetprep.DeviceFlashPreparer

Class Overview

A ITargetPreparer that flashes an image on physical Android hardware.

Summary

Public Constructors
DeviceFlashPreparer()
Public Methods
void setUp(ITestDevice device, IBuildInfo buildInfo)
Perform the target setup for testing.
void setUserDataFlashOption(IDeviceFlasher.UserDataFlashOption flashOption)
Set the userdata-flash option
Protected Methods
abstract IDeviceFlasher createFlasher(ITestDevice device)
Create IDeviceFlasher to use.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.targetprep.ITargetPreparer

Public Constructors

public DeviceFlashPreparer ()

Public Methods

public void setUp (ITestDevice device, IBuildInfo buildInfo)

Perform the target setup for testing.

Parameters
device the ITestDevice to prepare.
buildInfo data about the build under test.

public void setUserDataFlashOption (IDeviceFlasher.UserDataFlashOption flashOption)

Set the userdata-flash option

Protected Methods

protected abstract IDeviceFlasher createFlasher (ITestDevice device)

Create IDeviceFlasher to use. Subclasses can override