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 ()

公共方法

setUp

public void setUp (TestInformation testInfo)

参数
testInfo TestInformation

抛出
BuildError
DeviceNotAvailableException
TargetSetupError

validateGkiBootImg

public void validateGkiBootImg (ITestDevice device, 
                IBuildInfo buildInfo)

验证 GKI 启动映像是否符合预期。(已废弃。Please call with tmpDir provided)

参数
device ITestDeviceITestDevice

buildInfo IBuildInfoIBuildInfo build 信息

抛出
TargetSetupError 如果没有有效的 gki boot.img

受保护的方法

getHostOptions

protected IHostOptions getHostOptions ()

获取对 IHostOptions 的引用

返回
IHostOptions 要使用的 IHostOptions

getRunUtil

protected IRunUtil getRunUtil ()

获取要使用的 IRunUtil 实例。

返回
IRunUtil 要使用的 IRunUtil

validateGkiBootImg

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

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

参数
device ITestDeviceITestDevice

buildInfo IBuildInfoIBuildInfo build 信息

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

抛出
TargetSetupError 如果没有有效的 gki boot.img