GkiDeviceFlashPreparer
public
class
GkiDeviceFlashPreparer
extends BaseTargetPreparer
| java.lang.Object | ||
| ↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
| ↳ | com.android.tradefed.targetprep.GkiDeviceFlashPreparer | |
Narzędzie do przygotowywania urządzeń, które flashuje urządzenie za pomocą ogólnego obrazu jądra Androida. Szczegółowe informacje znajdziesz na stronie https://source.android.com/devices/architecture/kernel/android-common.
Podsumowanie
Konstruktory publiczne | |
|---|---|
GkiDeviceFlashPreparer()
|
|
Metody publiczne | |
|---|---|
void
|
setUp(TestInformation testInfo)
|
void
|
validateGkiBootImg(ITestDevice device, IBuildInfo buildInfo)
Sprawdź, czy oczekiwany jest obraz GKI. |
Chronione metody | |
|---|---|
IHostOptions
|
getHostOptions()
Pobieranie referencji do |
IRunUtil
|
getRunUtil()
Uzyskaj instancję |
void
|
validateGkiBootImg(ITestDevice device, IBuildInfo buildInfo, File tmpDir)
Sprawdź, czy oczekiwany jest obraz GKI. |
Konstruktory publiczne
GkiDeviceFlashPreparer
public GkiDeviceFlashPreparer ()
Metody publiczne
setUp
public void setUp (TestInformation testInfo)
| Parametry | |
|---|---|
testInfo |
TestInformation |
| Rzuty | |
|---|---|
BuildError |
|
DeviceNotAvailableException |
|
TargetSetupError |
|
validateGkiBootImg
public void validateGkiBootImg (ITestDevice device,
IBuildInfo buildInfo)Sprawdź, czy oczekiwany jest obraz GKI. (Wycofane. Zadzwoń z podanym tmpDir)
| Parametry | |
|---|---|
device |
ITestDevice: ITestDevice |
buildInfo |
IBuildInfo: IBuildInfo informacje o kompilacji |
| Rzuty | |
|---|---|
TargetSetupError |
jeśli nie ma prawidłowego pliku gki boot.img |
Chronione metody
getHostOptions
protected IHostOptions getHostOptions ()
Pobieranie referencji do IHostOptions
| Zwroty | |
|---|---|
IHostOptions |
IHostOptions do użycia
|
getRunUtil
protected IRunUtil getRunUtil ()
Uzyskaj instancję IRunUtil, której chcesz użyć.
| Zwroty | |
|---|---|
IRunUtil |
IRunUtil do użycia
|
validateGkiBootImg
protected void validateGkiBootImg (ITestDevice device,
IBuildInfo buildInfo,
File tmpDir)Sprawdź, czy oczekiwany jest obraz GKI. Wyjątek, jeśli nie ma prawidłowego pliku boot.img.
| Parametry | |
|---|---|
device |
ITestDevice: ITestDevice |
buildInfo |
IBuildInfo: IBuildInfo informacje o kompilacji |
tmpDir |
File: katalog tymczasowy ERROR(/File) |
| Rzuty | |
|---|---|
TargetSetupError |
jeśli nie ma prawidłowego pliku gki boot.img |