GkiDeviceFlashPreparer

public class GkiDeviceFlashPreparer
extends BaseTargetPreparer

java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.GkiDeviceFlashPreparer


一个目标准备器,使用 Android 通用内核通用映像刷新设备。有关详细信息,请参阅 https://source.android.com/devices/architecture/kernel/android-common。

概括

公共构造函数

GkiDeviceFlashPreparer ()

公共方法

void setUp (TestInformation testInfo)

void validateGkiBootImg (ITestDevice device, IBuildInfo buildInfo)

验证预期的 GKI 启动映像。

受保护的方法

IHostOptions getHostOptions ()

获取对IHostOptions引用

IRunUtil getRunUtil ()

获取要使用的IRunUtil实例。

void validateGkiBootImg (ITestDevice device, IBuildInfo buildInfo, File tmpDir)

验证预期的 GKI 启动映像。

公共构造函数

GkiDeviceFlashPreparer

public GkiDeviceFlashPreparer ()

公共方法

设置

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

投掷
BuildError
DeviceNotAvailableException
TargetSetupError

验证GkiBootImg

public void validateGkiBootImg (ITestDevice device, 
                IBuildInfo buildInfo)

验证预期的 GKI 启动映像。 (已废弃。请提供 tmpDir 来电)

参数
device ITestDeviceITestDevice

buildInfo IBuildInfoIBuildInfo构建信息

投掷
TargetSetupError如果没有有效的 gki boot.img

受保护的方法

获取主机选项

protected IHostOptions getHostOptions ()

获取对IHostOptions引用

退货
IHostOptions要使用的IHostOptions

获取运行工具

protected IRunUtil getRunUtil ()

获取要使用的IRunUtil实例。

退货
IRunUtil要使用的IRunUtil

验证GkiBootImg

protected void validateGkiBootImg (ITestDevice device, 
                IBuildInfo buildInfo, 
                File tmpDir)

验证预期的 GKI 启动映像。如果没有有效的 boot.img,则抛出异常。

参数
device ITestDeviceITestDevice

buildInfo IBuildInfoIBuildInfo构建信息

tmpDir File :临时目录ERROR(/File)

投掷
TargetSetupError如果没有有效的 gki boot.img