GkiDeviceFlashPreparer
public class GkiDeviceFlashPreparer
extends BaseTargetPreparer
java.lang.객체 | ||
↳ | 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 부팅 이미지의 유효성을 검사해야 합니다. |
보호된 메서드 | |
---|---|
void | addHashFooter ( ITestDevice device, IBuildInfo buildInfo, File tmpDir) GKI 부팅 이미지의 유효성을 검사해야 합니다. |
IHostOptions | getHostOptions () |
IRunUtil | getRunUtil () 사용할 |
void | validateGkiBootImg ( ITestDevice device, IBuildInfo buildInfo, File tmpDir) GKI 부팅 이미지의 유효성을 검사해야 합니다. |
공개 생성자
GkiDeviceFlashPreparer
public GkiDeviceFlashPreparer ()
공개 방법
설정
public void setUp (TestInformation testInfo)
매개변수 | |
---|---|
testInfo | TestInformation |
던지기 | |
---|---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError |
validationGkiBootImg
public void validateGkiBootImg (ITestDevice device, IBuildInfo buildInfo)
GKI 부팅 이미지의 유효성을 검사해야 합니다. (구식. 제공된 tmpDir로 호출하십시오)
매개변수 | |
---|---|
device | ITestDevice : ITestDevice |
buildInfo | IBuildInfo : IBuildInfo 빌드 정보 |
던지기 | |
---|---|
TargetSetupError | 유효한 gki boot.img가 없는 경우 |
보호된 메서드
addHashFooter
protected void addHashFooter (ITestDevice device, IBuildInfo buildInfo, File tmpDir)
GKI 부팅 이미지의 유효성을 검사해야 합니다. 유효한 boot.img가 없으면 예외를 발생시킵니다.
매개변수 | |
---|---|
device | ITestDevice : ITestDevice |
buildInfo | IBuildInfo : IBuildInfo 빌드 정보 |
tmpDir | File : 임시 디렉토리 ERROR(/File) |
던지기 | |
---|---|
TargetSetupError | 유효한 gki boot.img가 없는 경우 |
DeviceNotAvailableException |
getHostOptions
protected IHostOptions getHostOptions ()
IHostOptions
에 대한 참조 가져오기
보고 | |
---|---|
IHostOptions | 사용할 IHostOptions |
validationGkiBootImg
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가 없는 경우 |