MixKernelTargetPreparer

public class MixKernelTargetPreparer
extends BaseTargetPreparer implements ILabPreparer , IConfigurationReceiver

Obiekt Java.lang.Object
com.android.tradefed.targetprep.BaseTargetPreparer
com.android.tradefed.targetprep.MixKernelTargetPreparer


ITargetPreparer , który umożliwia mieszanie obrazu jądra z obrazem urządzenia.

Streszczenie

Konstruktorzy publiczni

MixKernelTargetPreparer ()

Metody publiczne

void setConfiguration ( IConfiguration configuration)

Wstrzykuje używaną IConfiguration .

void setUp ( TestInformation testInfo)

Wykonaj konfigurację docelową do testów.

Metody chronione

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

Uruchom narzędzie jądra mix, aby wygenerować nową wersję urządzenia

Narzędzie do miksowania Użycie: build_mixed_kernels katalog_urządzenia out_dir docelowy smak kernel_dir

Konstruktorzy publiczni

MixKernelTargetPreparer

public MixKernelTargetPreparer ()

Metody publiczne

ustaw konfigurację

public void setConfiguration (IConfiguration configuration)

Wstrzykuje używaną IConfiguration .

Parametry
configuration IConfiguration

organizować coś

public void setUp (TestInformation testInfo)

Wykonaj konfigurację docelową do testów.

Parametry
testInfo TestInformation : TestInformation wywołania.

Rzuca
BuildError
DeviceNotAvailableException
TargetSetupError

Metody chronione

uruchomMixKernelTool

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

Uruchom narzędzie jądra mix, aby wygenerować nową wersję urządzenia

Narzędzie do miksowania Użycie: build_mixed_kernels katalog_urządzenia out_dir docelowy smak kernel_dir

Parametry
device ITestDevice : urządzenie testowe

oldDeviceDir File : katalog ERROR(/File) zawiera stare obrazy urządzeń

kernelDir File : katalog ERROR(/File) zawiera miejsce docelowe obrazów jądra

gkiDir File : katalog ERROR(/File) zawiera miejsce docelowe obrazów jądra GKI

newDeviceDir File : katalog ERROR(/File) , w którym będą generowane nowe obrazy urządzeń

Rzuca
TargetSetupError jeśli nie uda się uruchomić narzędzia jądra mix
Wyjątek IO