DeviceBuildDescriptor
public
class
DeviceBuildDescriptor
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.build.DeviceBuildDescriptor |
기기 플랫폼 빌드 정보를 가져오는 도우미 메서드가 포함된 IBuildInfo의 래퍼 클래스입니다.
'번들 해제' 즉 기기 빌드가 아닌 IBuildInfo에 사용하기 위한 것으로, 빌드가 실행된 기기에 관한 메타데이터를 원합니다.
요약
상수 | |
|---|---|
String |
DEVICE_BUILD_ALIAS
|
String |
DEVICE_BUILD_BRANCH
|
String |
DEVICE_BUILD_FLAVOR
|
String |
DEVICE_BUILD_ID
|
String |
DEVICE_DESC
|
String |
DEVICE_PRODUCT
|
공개 생성자 | |
|---|---|
DeviceBuildDescriptor(IBuildInfo build)
|
|
공개 메서드 | |
|---|---|
static
boolean
|
describesDeviceBuild(IBuildInfo build)
지정된 |
static
String
|
generateDeviceDesc(ITestDevice device)
기기 속성에서 기기 설명 문자열을 생성합니다. |
static
String
|
generateDeviceProduct(ITestDevice device)
제품:변형 형식으로 기기의 제품과 변형을 쿼리합니다. |
String
|
getDeviceBuildAlias()
기기 빌드 별칭을 가져옵니다. |
String
|
getDeviceBuildBranch()
기기 빌드 브랜치(예: git_master)를 가져옵니다. |
String
|
getDeviceBuildFlavor()
기기 빌드 버전(예: yakju-userdebug)을 가져옵니다. |
String
|
getDeviceBuildId()
기기 빌드 ID를 가져옵니다. |
String
|
getDeviceProduct()
제품:옵션 형식으로 기기의 제품과 옵션을 가져옵니다. |
String
|
getDeviceUserDescription()
기기 및 빌드에 관한 설명을 가져옵니다. |
static
void
|
injectDeviceAttributes(ITestDevice device, IBuildInfo b)
기기의 속성을 빌드에 삽입합니다. |
상수
DEVICE_BUILD_ALIAS
public static final String DEVICE_BUILD_ALIAS
상수 값: 'device_build_alias'
DEVICE_BUILD_BRANCH
public static final String DEVICE_BUILD_BRANCH
상수 값: 'device_build_branch'
DEVICE_BUILD_FLAVOR
public static final String DEVICE_BUILD_FLAVOR
상수 값: 'device_build_flavor'
DEVICE_BUILD_ID
public static final String DEVICE_BUILD_ID
상수 값: 'device_build_id'
DEVICE_DESC
public static final String DEVICE_DESC
상수 값: "device_description"
DEVICE_PRODUCT
public static final String DEVICE_PRODUCT
상수 값: 'device_product'
공개 생성자
공개 메서드
describesDeviceBuild
public static boolean describesDeviceBuild (IBuildInfo build)
지정된 IBuildInfo에 기기 빌드 메타데이터가 포함되어 있는지 확인합니다.
| 반환 값 | |
|---|---|
boolean |
IBuildInfo에 기기 빌드 메타데이터가 포함되어 있으면 true, 그렇지 않으면 false입니다. |
generateDeviceDesc
public static String generateDeviceDesc (ITestDevice device)
기기 속성에서 기기 설명 문자열을 생성합니다.
설명은 Google Galaxy Nexus 4.2와 같은 형식을 따라야 합니다.
| 반환 값 | |
|---|---|
String |
기기 설명 문자열 |
| 생성 값 | |
|---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
|
generateDeviceProduct
public static String generateDeviceProduct (ITestDevice device)
제품:변형 형식으로 기기의 제품과 변형을 쿼리합니다.
| 매개변수 | |
|---|---|
device |
ITestDevice |
| 반환 값 | |
|---|---|
String |
|
| 생성 값 | |
|---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
|
getDeviceBuildAlias
public String getDeviceBuildAlias ()
기기 빌드 별칭을 가져옵니다. 기기의 ro.build.id 속성에 매핑됩니다. 일반적으로 IMM76 형식을 따릅니다.
| 반환 값 | |
|---|---|
String |
|
getDeviceBuildBranch
public String getDeviceBuildBranch ()
기기 빌드 브랜치(예: git_master)를 가져옵니다.
| 반환 값 | |
|---|---|
String |
|
getDeviceBuildFlavor
public String getDeviceBuildFlavor ()
기기 빌드 버전(예: yakju-userdebug)을 가져옵니다.
| 반환 값 | |
|---|---|
String |
|
getDeviceBuildId
public String getDeviceBuildId ()
기기 빌드 ID를 가져옵니다. 기기의 ro.build.incremental.id 속성에 매핑됩니다.
| 반환 값 | |
|---|---|
String |
|
getDeviceProduct
public String getDeviceProduct ()
제품:옵션 형식으로 기기의 제품과 옵션을 가져옵니다.
| 반환 값 | |
|---|---|
String |
|
getDeviceUserDescription
public String getDeviceUserDescription ()
기기 및 빌드에 관한 설명을 가져옵니다. 이는 일반적으로 getDeviceBuildAlias() 및 getDeviceBuildFlavor()에 비해 최종 사용자에게 더 친숙한 설명이지만 정확도가 떨어질 수 있습니다.
예를 들어 이 문자열을 사용하면 Google Galaxy Nexus의 GSM (yakju) 및 CDMA (mysid) 변형을 구분할 수 없습니다.
| 반환 값 | |
|---|---|
String |
|
injectDeviceAttributes
public static void injectDeviceAttributes (ITestDevice device, IBuildInfo b)
기기의 속성을 빌드에 삽입합니다.
| 매개변수 | |
|---|---|
b |
IBuildInfo |
| 생성 값 | |
|---|---|
|
com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |
|