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 부팅 이미지가 예상대로 있는지 확인합니다. (지원 중단됨. 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

validateGkiBootImg

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가 없는 경우