MixKernelTargetPreparer

public class MixKernelTargetPreparer
extends BaseTargetPreparer implements ILabPreparer , IConfigurationReceiver

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


一個ITargetPreparer ,允許將核心映像與裝置映像混合。

概括

公共構造函數

MixKernelTargetPreparer ()

公共方法

void setConfiguration ( IConfiguration configuration)

注入正在使用的IConfiguration

void setUp ( TestInformation testInfo)

執行測試目標設定。

受保護的方法

void runMixKernelTool ( ITestDevice device, File oldDeviceDir, File kernelDir, File gkiDir, File newDeviceDir)

執行 mix kernel 工具來產生新的裝置版本

混合工具用法:build_mixed_kernels device_dir out_dir 目標風味 kernel_dir

公共構造函數

MixKernelTargetPreparer

public MixKernelTargetPreparer ()

公共方法

設定配置

public void setConfiguration (IConfiguration configuration)

注入正在使用的IConfiguration

參數
configuration IConfiguration

設定

public void setUp (TestInformation testInfo)

執行測試目標設定。

參數
testInfo TestInformation :呼叫的TestInformation

投擲
BuildError
DeviceNotAvailableException
TargetSetupError

受保護的方法

運行MixKernel工具

protected void runMixKernelTool (ITestDevice device, 
                File oldDeviceDir, 
                File kernelDir, 
                File gkiDir, 
                File newDeviceDir)

執行 mix kernel 工具來產生新的裝置版本

混合工具用法:build_mixed_kernels device_dir out_dir 目標風味 kernel_dir

參數
device ITestDevice :測試設備

oldDeviceDir File :目錄ERROR(/File)包含舊設備映像

kernelDir File :目錄ERROR(/File)包含核心映像目標

gkiDir File :目錄ERROR(/File)包含 GKI 核心映像目標

newDeviceDir File : 將產生新設備映像的目錄ERROR(/File)

投擲
TargetSetupError如果無法運行混合內核工具
IO異常