특정 GCE AVD 인스턴스에 대한 관련 데이터를 보관하는 구조입니다.
중첩 클래스 |
---|
enum | GceAvdInfo.GceStatus |
필드
BUILD_VARS
public static final BUILD_VARS
공개 생성자
GceAvd정보
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort)
매개변수 |
---|
instanceName | String |
hostAndPort | HostAndPort |
GceAvd정보
public GceAvdInfo (String instanceName,
HostAndPort hostAndPort,
ErrorIdentifier errorType,
String errors,
GceAvdInfo.GceStatus status)
매개변수 |
---|
instanceName | String |
hostAndPort | HostAndPort |
errorType | ErrorIdentifier |
errors | String |
status | GceAvdInfo.GceStatus |
공개 메소드
getBuildVars
public getBuildVars ()
GCE AVD 기기의 빌드 변수 정보 해시를 반환합니다.
가능한 빌드 변수 키는 BUILD_VARS에 설명되어 있습니다(예: build_id, build_target, Branch, kernel_build_id, kernel_build_target, kernel_branch, system_build_id, system_build_target, system_branch, Emulator_build_id, Emulator_build_target, Emulator_branch).
getErrorType
public ErrorIdentifier getErrorType ()
getErrors
public String getErrors ()
호스트 및 포트
public HostAndPort hostAndPort ()
인스턴스 이름
public String instanceName ()
구문 분석GceInfoFromFile
public static GceAvdInfo parseGceInfoFromFile (File f,
DeviceDescriptor descriptor,
int remoteAdbPort)
주어진 파일을 구문 분석하여 GCE AVD 장치 정보를 얻습니다.
매개변수 |
---|
f | File : GCE 드라이버에서 JSON 출력을 읽는 ERROR(/File) 파일입니다. |
descriptor | DeviceDescriptor : 정보가 필요한 장치의 설명자입니다. |
remoteAdbPort | int : adb 연결에 사용해야 하는 원격 포트 |
구문 분석GceInfoFromString
public static GceAvdInfo parseGceInfoFromString (String data,
DeviceDescriptor descriptor,
int remoteAdbPort)
주어진 문자열을 구문 분석하여 GCE AVD 장치 정보를 얻습니다.
매개변수 |
---|
data | String : JSON 문자열입니다. |
descriptor | DeviceDescriptor : 정보가 필요한 장치의 설명자입니다. |
remoteAdbPort | int : adb 연결에 사용해야 하는 원격 포트 |
toString
public String toString ()
이 페이지에 나와 있는 콘텐츠와 코드 샘플에는 콘텐츠 라이선스에서 설명하는 라이선스가 적용됩니다. 자바 및 OpenJDK는 Oracle 및 Oracle 계열사의 상표 또는 등록 상표입니다.
최종 업데이트: 2023-12-01(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":"기타"
}]