GkiDeviceFlashPreparer

public class GkiDeviceFlashPreparer
extends BaseTargetPreparer

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


안드로이드 공통 커널 일반 이미지로 장치를 플래시하는 대상 준비자입니다. 자세한 내용은 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 ()

공개 메소드

설정

public void setUp (TestInformation testInfo)

매개변수
testInfo TestInformation

던지기
BuildError
DeviceNotAvailableException
TargetSetupError

검증GkiBootImg

public void validateGkiBootImg (ITestDevice device, 
                IBuildInfo buildInfo)

GKI 부팅 이미지가 필요한지 확인하세요. (더 이상 사용되지 않습니다. 제공된 tmpDir을 사용하여 호출하세요)

매개변수
device ITestDevice : ITestDevice

buildInfo IBuildInfo : IBuildInfo 빌드 정보

던지기
TargetSetupError 유효한 gki boot.img가 없는 경우

보호된 방법

getHostOptions

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 ITestDevice : ITestDevice

buildInfo IBuildInfo : IBuildInfo 빌드 정보

tmpDir File : 임시 디렉터리 ERROR(/File)

던지기
TargetSetupError 유효한 gki boot.img가 없는 경우