设备更新目标准备器

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

postUpdateActions

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