设备更新目标准备器

public abstract class DeviceUpdateTargetPreparer
extends DeviceBuildInfoBootStrapper

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.DeviceBuildInfoBootStrapper
com.android.tradefed.targetprep.DeviceUpdateTargetPreparer


一个抽象的ITargetPreparer ,负责使用外部源(而不是构建服务)的设备映像文件更新设备的常见步骤。实际的更新机制委托给子类的实现者。

概括

公共构造函数

DeviceUpdateTargetPreparer ()

公共方法

void setUp ( TestInformation testInfo)

受保护的方法

abstract File getDeviceUpdateImage ()

提供一个ERROR(/File)实例,表示用于更新的设备映像文件

abstract void performDeviceUpdate (File deviceUpdateImage, ITestDevice device)

在设备上执行设备映像更新

abstract void postUpdateActions (File deviceUpdateImage, ITestDevice device)

更新设备后但执行更新后设置步骤之前要执行的操作。

abstract void preUpdateActions (File deviceUpdateImage, ITestDevice device)

更新设备之前要执行的操作。

公共构造函数

设备更新目标准备器

public DeviceUpdateTargetPreparer ()

公共方法

设置

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

投掷
BuildError
DeviceNotAvailableException
TargetSetupError

受保护的方法

获取设备更新图像

protected abstract File getDeviceUpdateImage ()

提供一个ERROR(/File)实例,表示用于更新的设备映像文件

退货
File

执行设备更新

protected abstract void performDeviceUpdate (File deviceUpdateImage, 
                ITestDevice device)

在设备上执行设备映像更新

投掷
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError

更新后操作

protected abstract void postUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

更新设备后但执行更新后设置步骤之前要执行的操作。该方法将在闪存并发控制之外调用。

投掷
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError

更新前动作

protected abstract void preUpdateActions (File deviceUpdateImage, 
                ITestDevice device)

更新设备之前要执行的操作。该方法将在闪存并发控制之外调用。

投掷
com.android.tradefed.targetprep.TargetSetupError
DeviceNotAvailableException
TargetSetupError