중첩 클래스 |
---|
enum | DeviceFlashPreparer.EncryptionOptions 사용자 데이터 이미지의 암호화를 처리하기 위한 옵션의 열거 |
공개 생성자
DeviceFlash 준비자
public DeviceFlashPreparer ()
공개 메서드
public void setUp (TestInformation testInfo)
매개변수 |
---|
testInfo | TestInformation |
던지다 |
---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError | |
public void tearDown (TestInformation testInfo,
Throwable e)
매개변수 |
---|
testInfo | TestInformation |
e | Throwable |
던지다 |
---|
DeviceNotAvailableException | |
보호된 방법
체크 장치 제품 유형
protected void checkDeviceProductType (ITestDevice device,
IDeviceBuildInfo deviceBuild)
장치가 빌드 정보와 비교하여 예상대로인지 확인하기 위해 깜박이기 전에 가능한 검사입니다.
던지다 |
---|
| com.android.tradefed.targetprep.BuildError |
DeviceNotAvailableException | |
BuildError | |
생성 플래셔
protected abstract IDeviceFlasher createFlasher (ITestDevice device)
사용할 IDeviceFlasher
를 만듭니다. 하위 클래스는 재정의할 수 있습니다.
던지다 |
---|
DeviceNotAvailableException | |
getDeviceBootWaitTime
protected long getDeviceBootWaitTime ()
장치 부팅 대기 시간을 가져옵니다.
getHost 옵션
protected IHostOptions getHostOptions ()
사용할 IHostOptions
인스턴스를 가져옵니다.
단위 테스트를 위해 노출됨
reportFlashMetrics
protected void reportFlashMetrics (String branch,
String buildFlavor,
String buildId,
String serial,
long queueTime,
long flashingTime,
CommandStatus flashingStatus)
장치 플래싱 타이밍 데이터를 메트릭 백엔드에 보고합니다.
매개변수 |
---|
branch | String : 장치 빌드가 시작된 분기 |
buildFlavor | String : 디바이스 빌드의 빌드 플레이버 |
buildId | String : 디바이스 빌드의 빌드 번호 |
serial | String : 장치의 일련 번호 |
queueTime | long : 깜박이는 제한을 사용할 수 있을 때까지 대기하는 데 소요된 시간 |
flashingTime | long : 플래싱 장치 이미지 zip에 소요된 시간 |
flashingStatus | CommandStatus : 깜박이는 명령의 실행 상태 |
setSkipPostFlashBuildIdCheck
protected void setSkipPostFlashBuildIdCheck (boolean skipPostFlashBuildIdCheck)
매개변수 |
---|
skipPostFlashBuildIdCheck | boolean |
setSkipPostFlashFlavorCheck
protected void setSkipPostFlashFlavorCheck (boolean skipPostFlashFlavorCheck)
매개변수 |
---|
skipPostFlashFlavorCheck | boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-07-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"필요한 정보가 없음"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"너무 복잡함/단계 수가 너무 많음"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"오래됨"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"번역 문제"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"샘플/코드 문제"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"기타"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"이해하기 쉬움"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"문제가 해결됨"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"기타"
}]