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 引导映像。

受保护的方法

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

验证预期的 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 IBuildInfo : IBuildInfo构建信息

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

受保护的方法

添加哈希页脚

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

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

参数
device ITestDeviceITestDevice

buildInfo IBuildInfo : IBuildInfo构建信息

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

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

获取主机选项

protected IHostOptions getHostOptions ()

获取对IHostOptions引用

退货
IHostOptions要使用的IHostOptions

getRunUtil

protected IRunUtil getRunUtil ()

获取要使用的IRunUtil实例。

退货
IRunUtil要使用的IRunUtil

验证 GkiBootImg

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

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

参数
device ITestDeviceITestDevice

buildInfo IBuildInfo : IBuildInfo构建信息

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

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