DeviceLaunchControlProvider
public
class
DeviceLaunchControlProvider
extends LaunchControlProvider
implements
IDeviceBuildProvider
| java.lang.Object | ||
| ↳ | com.google.android.tradefed.build.LaunchControlProvider | |
| ↳ | com.google.android.tradefed.build.DeviceLaunchControlProvider | |
IDeviceBuildInfo의 LaunchControlProvider
요약
공개 생성자 | |
|---|---|
DeviceLaunchControlProvider()
|
|
공개 메서드 | |
|---|---|
void
|
addDownloadKey(RemoteBuildInfo.BuildAttributeKey attrKey)
지정된 |
void
|
cleanUp(IBuildInfo info)
임시 빌드 파일을 정리합니다. |
static
Set<String>
|
discoverDependencies(IConfiguration config)
구성의 종속 항목을 검색합니다. |
void
|
evaluateDeviceImageChanges(RemoteBuildInfo remoteBuild, IFileDownloader downloader, IDeviceBuildInfo localBuild)
기기 이미지가 변경되었는지 평가하는 데 필요한 부분을 다운로드합니다. |
IBuildInfo
|
getBuild(ITestDevice device)
테스트 중인 빌드의 데이터 가져오기 |
ITestDevice
|
getDevice()
|
static
String
|
getPathForPattern(RemoteBuildInfo buildInfo, String pattern, boolean ignoreSubdir)
RemoteBuildInfo에서 이미지의 원격 경로를 가져오는 도움말 메서드 |
static
String
|
getPathForPattern(RemoteBuildInfo buildInfo, String pattern)
RemoteBuildInfo에서 이미지의 원격 경로를 가져오는 도움말 메서드 |
RemoteBuildInfo
|
getRemoteBuild()
모든 파일을 다운로드하지 않고도 실행 제어 응답을 가져옵니다. |
Set<String>
|
reportTestZipFileFilter()
|
void
|
setAltStaticDeviceInfoClass(String altStaticDeviceInfoClass)
|
void
|
setBootstrapBuildInfo(boolean bootstrapBuildInfo)
테스트를 위해 노출됨 |
boolean
|
shouldAutopopulateFilters()
|
void
|
skipDownload(RemoteBuildInfo.BuildAttributeKey attrKey)
특정 |
보호된 메서드 | |
|---|---|
void
|
convertBuildToSigned(RemoteBuildInfo remoteBuild)
이 |
IBuildInfo
|
downloadBuildFiles(RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)
remoteBuild에서 --download-build-key에 구성된 대로 필요한 파일 키를 다운로드하고 |
void
|
resolveBuildInfoFromDevice(ITestDevice device)
기기에서 빌드 ID, 버전을 가져오고 빌드 서버에서 브랜치 정보를 가져옵니다. |
void
|
setDevice(ITestDevice device)
|
공개 생성자
DeviceLaunchControlProvider
public DeviceLaunchControlProvider ()
공개 메서드
addDownloadKey
public void addDownloadKey (RemoteBuildInfo.BuildAttributeKey attrKey)
지정된 BuildAttributeKey로 파일을 다운로드해야 합니다. 제외가 포함보다 우선하므로 파일이 건너뛰기 목록에 있으면 여기에 언급되어 있더라도 다운로드되지 않습니다.
| 매개변수 | |
|---|---|
attrKey |
RemoteBuildInfo.BuildAttributeKey |
discoverDependencies
public static Set<String> discoverDependencies (IConfiguration config)
구성의 종속 항목을 검색합니다.
| 매개변수 | |
|---|---|
config |
IConfiguration |
| 반환 | |
|---|---|
Set<String> |
|
evaluateDeviceImageChanges
public void evaluateDeviceImageChanges (RemoteBuildInfo remoteBuild, IFileDownloader downloader, IDeviceBuildInfo localBuild)
기기 이미지가 변경되었는지 평가하는 데 필요한 부분을 다운로드합니다.
| 매개변수 | |
|---|---|
remoteBuild |
RemoteBuildInfo |
downloader |
IFileDownloader |
localBuild |
IDeviceBuildInfo |
getBuild
public IBuildInfo getBuild (ITestDevice device)
테스트 중인 빌드의 데이터 가져오기
| 매개변수 | |
|---|---|
device |
ITestDevice: 테스트에 할당된 ITestDevice |
| 반환 | |
|---|---|
IBuildInfo |
테스트 중인 빌드의 IBuildInfo 또는 테스트에 사용할 수 있는 빌드가 없는 경우 null |
| 생성 값 | |
|---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
|
getPathForPattern
public static String getPathForPattern (RemoteBuildInfo buildInfo, String pattern, boolean ignoreSubdir)
RemoteBuildInfo에서 이미지의 원격 경로를 가져오는 도움말 메서드
| 매개변수 | |
|---|---|
buildInfo |
RemoteBuildInfo: RemoteBuildInfo |
pattern |
String: 이미지의 원격 경로 패턴 |
ignoreSubdir |
boolean: true인 경우 패턴에서 하위 디렉터리를 무시합니다. |
| 반환 | |
|---|---|
String |
원격 경로 |
getPathForPattern
public static String getPathForPattern (RemoteBuildInfo buildInfo, String pattern)
RemoteBuildInfo에서 이미지의 원격 경로를 가져오는 도움말 메서드
| 매개변수 | |
|---|---|
buildInfo |
RemoteBuildInfo: RemoteBuildInfo |
pattern |
String: 이미지의 원격 경로 패턴 |
| 반환 | |
|---|---|
String |
원격 경로 |
getRemoteBuild
public RemoteBuildInfo getRemoteBuild ()
모든 파일을 다운로드하지 않고도 실행 제어 응답을 가져옵니다.
이 패키지 외부의 전문 분야에서 직접 사용할 수 있도록 공개되었습니다. 일반적으로 getBuild()를 대신 사용해야 합니다.
| 반환 | |
|---|---|
RemoteBuildInfo |
실행 제어의 RemoteBuildInfo 응답 |
| 생성 값 | |
|---|---|
BuildRetrievalError |
|
reportTestZipFileFilter
public Set<String> reportTestZipFileFilter ()
| 반환 | |
|---|---|
Set<String> |
|
setAltStaticDeviceInfoClass
public void setAltStaticDeviceInfoClass (String altStaticDeviceInfoClass)
| 매개변수 | |
|---|---|
altStaticDeviceInfoClass |
String |
setBootstrapBuildInfo
public void setBootstrapBuildInfo (boolean bootstrapBuildInfo)
테스트를 위해 노출됨
shouldAutopopulateFilters
public boolean shouldAutopopulateFilters ()
| 반환 | |
|---|---|
boolean |
|
skipDownload
public void skipDownload (RemoteBuildInfo.BuildAttributeKey attrKey)
특정 BuildAttributeKey로 파일을 다운로드하는 것을 건너뜁니다.
| 매개변수 | |
|---|---|
attrKey |
RemoteBuildInfo.BuildAttributeKey |
보호된 메서드
convertBuildToSigned
protected void convertBuildToSigned (RemoteBuildInfo remoteBuild)
이 RemoteBuildInfo에서 매개변수를 수정하여 서명된 빌드를 설명합니다.
| 매개변수 | |
|---|---|
remoteBuild |
RemoteBuildInfo: 수정할 RemoteBuildInfo |
| 생성 값 | |
|---|---|
BuildRetrievalError |
|
downloadBuildFiles
protected IBuildInfo downloadBuildFiles (RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)
remoteBuild에서 --download-build-key에 구성된 대로 필요한 파일 키를 다운로드하고 IBuildInfo에 저장합니다.
| 매개변수 | |
|---|---|
remoteBuild |
RemoteBuildInfo: 출시 관리 서버 응답 |
testTargetName |
String: 테스트 타겟 이름 |
buildName |
String: 출시 제어에 의해 정의된 빌드 이름 |
downloader |
IFileDownloader: 빌드 파일을 다운로드하는 데 사용할 IFileDownloader |
| 반환 | |
|---|---|
IBuildInfo |
빌드 파일의 로컬 버전으로 채워진 IBuildInfo |
| 생성 값 | |
|---|---|
BuildRetrievalError |
|
resolveBuildInfoFromDevice
protected void resolveBuildInfoFromDevice (ITestDevice device)
기기에서 빌드 ID, 버전을 가져오고 빌드 서버에서 브랜치 정보를 가져옵니다.
| 생성 값 | |
|---|---|
BuildRetrievalError |
|
DeviceNotAvailableException |
|