DeviceBuildDescriptor
public class DeviceBuildDescriptor
extends Object
java.lang.객체 | |
↳ | com.android.tradefed.build.DeviceBuildDescriptor |
장치 플랫폼 빌드 정보를 검색하기 위한 도우미 메서드가 포함된 IBuildInfo
의 래퍼 클래스입니다.
IBuildInfo
가 아닌 "번들 해제된" 일명 사용하기 위한 것입니다.요약
필드 | |
---|---|
public static final String | DEVICE_BUILD_ALIAS |
public static final String | DEVICE_BUILD_BRANCH |
public static final String | DEVICE_BUILD_FLAVOR |
public static final String | DEVICE_BUILD_ID |
public static final String | DEVICE_DESC |
public static final String | DEVICE_PRODUCT
|
공개 생성자 | |
---|---|
DeviceBuildDescriptor ( IBuildInfo build) |
공개 방법 | |
---|---|
static boolean | describesDeviceBuild ( IBuildInfo build) 주어진 |
static String | generateDeviceDesc ( ITestDevice device) 장치 속성에서 장치 설명 문자열을 생성합니다. |
static String | generateDeviceProduct ( ITestDevice device) product:variant 형식으로 장치의 제품 및 변형을 쿼리합니다. |
String | getDeviceBuildAlias () 장치 빌드 별칭을 가져옵니다. |
String | getDeviceBuildBranch () 장치 빌드 분기(예: git_master)를 가져옵니다. |
String | getDeviceBuildFlavor () yakju-userdebug와 같은 장치 빌드 풍미를 가져옵니다. |
String | getDeviceBuildId () 장치 빌드 ID를 가져옵니다. |
String | getDeviceProduct () product:variant 형식으로 장치의 제품 및 변형을 가져옵니다. |
String | getDeviceUserDescription () 장치 및 빌드에 대한 설명을 가져옵니다. |
static void | injectDeviceAttributes ( ITestDevice device, IBuildInfo b) 기기의 속성을 빌드에 삽입합니다. |
필드
DEVICE_BUILD_ALIAS
public static final String DEVICE_BUILD_ALIAS
DEVICE_BUILD_BRANCH
public static final String DEVICE_BUILD_BRANCH
DEVICE_BUILD_FLAVOR
public static final String DEVICE_BUILD_FLAVOR
DEVICE_BUILD_ID
public static final String DEVICE_BUILD_ID
DEVICE_DESC
public static final String DEVICE_DESC
DEVICE_PRODUCT
public static final String DEVICE_PRODUCT
공개 생성자
공개 방법
describeDeviceBuild
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 |
생성 장치 제품
public static String generateDeviceProduct (ITestDevice device)
product:variant 형식으로 장치의 제품 및 변형을 쿼리합니다.
매개변수 | |
---|---|
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 ()
product:variant 형식으로 장치의 제품 및 변형을 가져옵니다.
보고 | |
---|---|
String |
getDeviceUserDescription
public String getDeviceUserDescription ()
장치 및 빌드에 대한 설명을 가져옵니다. 이것은 일반적으로 getDeviceBuildAlias()
및 getDeviceBuildFlavor()
에 비해 최종 사용자에게 더 친숙한 설명이지만 덜 정확할 수 있는 페널티가 있습니다. 예. 이 문자열을 사용하여 Google Galaxy Nexus의 GSM(약주) 및 CDMA(mysid) 변형을 구별할 수 없습니다.
보고 | |
---|---|
String |
주입장치속성
public static void injectDeviceAttributes (ITestDevice device, IBuildInfo b)
기기의 속성을 빌드에 삽입합니다.
매개변수 | |
---|---|
b | IBuildInfo |
던지기 | |
---|---|
| com.android.tradefed.device.DeviceNotAvailableException |
DeviceNotAvailableException |