LaunchControlProvider
public
class
LaunchControlProvider
extends Object
implements
IBuildProvider,
IConfigurationReceiver,
IDiscoverDependencies,
IInvocationContextReceiver,
ITestLoggerReceiver
| java.lang.Object | |
| ↳ | com.google.android.tradefed.build.LaunchControlProvider |
Một quy trình triển khai IBuildProvider truy vấn các máy chủ kiểm soát việc phát hành của Google để kiểm thử một bản dựng.
Bạn không nên sử dụng lớp con. Sử dụng extra-target-downloads và --additional-files-filter để chỉ định các cấu phần phần mềm cần tải xuống.
TODO: cải tiến ứng dụng điều khiển khởi động và logic tải xuống, đồng thời hợp nhất ứng dụng này với "Một thư viện trình nạp dữ liệu thiết bị chung để điều khiển tất cả" (tm) trong tương lai
Tóm tắt
Các lớp học lồng ghép | |
|---|---|
class |
LaunchControlProvider.DownloadFileDescriptor
|
Hằng số | |
|---|---|
String |
BUILD_ID_PARAM
|
String |
BUILD_NAME_PARAM
|
String |
LC_BASE_URL
|
String |
MIN_BUILD_ID_PARAM
|
String |
QUERY_TYPE_PARAM
|
String |
QUERY_WINDOW_PARAM
|
String |
TEST_TAG_PARAM
|
Trường | |
|---|---|
protected
boolean |
mEnableResolveSymlinks
|
Hàm khởi tạo công khai | |
|---|---|
LaunchControlProvider()
|
|
Phương thức công khai | |
|---|---|
void
|
addFileFilter(String filter)
|
void
|
addOptionalFileFilter(String optionalFilter)
|
void
|
addRemoteZipFilter(String fileFilter)
Thêm bộ lọc cho một tệp zip từ xa có thể tải xuống một phần. |
void
|
cleanUp(IBuildInfo info)
Dọn dẹp mọi tệp bản dựng tạm thời. |
void
|
clearExtraDownloads()
|
IFileDownloader
|
createLaunchControlDownloader(RemoteBuildInfo remoteBuild)
Phương thức ban đầu để tạo một trình tải xuống dùng cho các tệp kiểm soát việc ra mắt. |
void
|
decrementTestBuild(String buildId)
|
IBuildInfo
|
fetchRemoteBuild(RemoteBuildInfo remoteBuild)
Chuyển đổi phản hồi kiểm soát việc phát hành thành một |
void
|
forceUseCas(boolean useCas)
|
Collection<String>
|
getAdditionalFilesFilters()
|
String
|
getBranch()
Lấy nhánh hiện được chỉ định để truy vấn |
IBuildInfo
|
getBuild()
Truy xuất dữ liệu cho bản dựng đang được kiểm thử. |
String
|
getBuildArchivePath()
Lấy đường dẫn đến kho lưu trữ tạo tác bản dựng |
String
|
getBuildFlavor()
Nhận hương vị bản dựng để truy vấn |
String
|
getBuildId()
Lấy mã nhận dạng bản dựng để truy vấn |
String
|
getBuildOs()
|
IConfiguration
|
getConfiguration()
Trả về |
Set<String>
|
getContentBasedReportingDefault()
|
IInvocationContext
|
getInvocationContext()
|
String
|
getLcHostname()
Lấy tên máy chủ lưu trữ Launch Control để dùng trong truy vấn |
String
|
getLcProtocol()
Lấy giao thức Launch Control để sử dụng trong truy vấn |
QueryType
|
getQueryType()
Lấy loại truy vấn sẽ được sử dụng |
RemoteBuildInfo
|
getRemoteBuild()
Nhận phản hồi kiểm soát việc chạy mà không cần tải tất cả các tệp xuống. |
Set<String>
|
getRemoteZipFilters()
Nhận một bộ lọc cho các tệp zip có thể tải xuống một phần. |
boolean
|
getReportContentBasedRollout()
|
boolean
|
getReportContentInformation()
|
String
|
getTestConfigOnlyZip()
Lấy tệp zip chỉ chứa cấu hình kiểm thử. |
ITestLogger
|
getTestLogger()
|
String
|
getTestTag()
Lấy thẻ kiểm thử để dùng trong truy vấn |
boolean
|
getUseSsoClient()
Nhận nếu nên dùng ứng dụng sso |
static
void
|
handleExtraTargetDownloads(IBuildInfo build, List<Entry<String, File>> entries)
Xử lý các tệp tải xuống động để điền sẵn siêu dữ liệu |
boolean
|
isChunkingUncompressedDisabled()
|
boolean
|
isSecondaryParallelDownload()
Tính năng tải xuống song song có được bật hay không. |
Set<String>
|
reportTestZipFileFilter()
|
void
|
resetTestBuild()
Thực hiện truy vấn |
void
|
resetTestBuild(String buildId)
Thực hiện truy vấn |
void
|
setAdditionalFilesFilters(Collection<String> additionalFilesFilters)
|
void
|
setBranch(String branch)
Đặt nhánh để truy vấn |
void
|
setBuildArchivePath(String buildArchivePath)
Đặt đường dẫn đến kho lưu trữ tạo tác bản dựng |
void
|
setBuildFlavor(String flavor)
Đặt build-flavor thành truy vấn |
void
|
setBuildId(String buildId)
Đặt mã nhận dạng bản dựng để truy vấn |
void
|
setBuildOs(String os)
|
void
|
setConfiguration(IConfiguration configuration)
Chèn |
void
|
setContentBasedReportingDefault(Set<String> contentBasedReportingDefault)
|
void
|
setEnableResolveSymlinks(boolean enableResolveSymlinks)
|
void
|
setFetchSigned(boolean fetchSigned)
|
void
|
setInvocationContext(IInvocationContext invocationContext)
|
void
|
setLcHostname(String lcHostname)
Đặt tên máy chủ Launch Control để dùng trong truy vấn |
void
|
setLcProtocol(String lcProtocol)
Đặt giao thức Launch Control để dùng trong truy vấn |
void
|
setMinBuildId(int minBuildId)
Đặt mã nhận dạng bản dựng tối thiểu để sử dụng. |
void
|
setParallelSecondaryDownload(boolean parallel)
|
void
|
setPartialDownloadForZip(boolean enableZipPartialDownload)
|
void
|
setQueryType(QueryType queryType)
Đặt loại truy vấn sẽ được sử dụng |
void
|
setReportContentBasedRollout(boolean reportContentBasedRollout)
|
void
|
setReportContentInformation(boolean reportContentInfo)
|
void
|
setSkipCloudContent(boolean skipCloudContent)
|
void
|
setTestLogger(ITestLogger testLogger)
Chèn thực thể |
void
|
setTestTag(String tag)
Đặt thẻ kiểm thử sẽ được sử dụng. |
void
|
setUseBuildApi(boolean useBuildApi)
Đặt giá trị để kiểm soát xem trình cung cấp bản dựng có nên sử dụng Android Build API hay không |
void
|
setUseSsoClient(boolean useSsoClient)
Đặt xem có nên sử dụng ứng dụng sso hay không |
boolean
|
shouldFetchSigned()
|
boolean
|
shouldReportContentInformation()
|
boolean
|
shouldUseBuildApi()
Trả về nếu trình cung cấp bản dựng nên sử dụng Android Build API |
Phương thức được bảo vệ | |
|---|---|
void
|
convertBuildToSigned(RemoteBuildInfo remoteBuild)
Sửa đổi các thông số trong |
IHttpHelper
|
createHttpHelper()
Phương thức ban đầu để tạo một |
String
|
createSignedParameter(String param)
Sửa đổi một tham số duy nhất để biểu thị một tham số đã ký. Nếu tham số đã ở định dạng đã ký, thì tham số đó sẽ được trả về mà không thay đổi. |
void
|
deleteCacheEntry(String remoteFilePath)
Xoá tệp khỏi bộ nhớ đệm trong trường hợp tệp bị hỏng. |
void
|
downloadAdditionalFiles(RemoteBuildInfo remoteBuild, IFileDownloader downloader, IBuildInfo localBuild)
|
IBuildInfo
|
downloadBuildFiles(RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)
Tải các khoá tệp cần thiết xuống như được định cấu hình trong --download-build-key từ remoteBuild và lưu trữ chúng trong |
final
List<Entry<LaunchControlProvider.DownloadFileDescriptor, File>>
|
downloadFilesNonBlocking(IFileDownloader downloader, List<LaunchControlProvider.DownloadFileDescriptor> toBeDownloaded)
Tải bộ đường dẫn tệp xuống và thực thi các đường dẫn đó nếu bắt buộc. |
AndroidBuildArtifactHelper
|
getBuildArtifactHelper()
|
MultiMap<String, File>
|
getExtraDownloadMap()
Trả về bản đồ của các mục tiêu được tải xuống bổ sung. |
Set<String>
|
getGlobalDownloadExclusionPatterns()
|
final
File
|
getWorkFolder()
Trả về thư mục công việc của lệnh gọi hiện tại. |
final
File
|
handleDirectoryDownload(File downloadedFile)
|
RemoteBuildInfo
|
performBuildApiQuery()
|
void
|
performValidityCheckForBuildApi()
|
RemoteBuildInfo
|
queryForBuild(MultiMap<String, String> params)
Thực hiện truy vấn kiểm soát khởi động, thử lại nhiều lần trong trường hợp xảy ra lỗi. |
RemoteBuildInfo
|
queryForBuild()
Thực hiện truy vấn kiểm soát khởi động, thử lại nhiều lần trong trường hợp xảy ra lỗi. |
RemoteBuildInfo
|
queryForBuildWithBuildApi()
Thực hiện truy vấn bản dựng đối với API bản dựng. |
void
|
replaceParamWithSigned(RemoteBuildInfo buildInfo, RemoteBuildInfo.BuildAttributeKey key)
|
boolean
|
useCasDefaultRollout()
|
Hằng số
BUILD_ID_PARAM
protected static final String BUILD_ID_PARAM
Giá trị không đổi: "bid"
BUILD_NAME_PARAM
protected static final String BUILD_NAME_PARAM
Giá trị không đổi: "id"
LC_BASE_URL
protected static final String LC_BASE_URL
Giá trị không đổi: "%s://%s/buildbot-update"
MIN_BUILD_ID_PARAM
protected static final String MIN_BUILD_ID_PARAM
Giá trị không đổi: "min_build_id"
QUERY_TYPE_PARAM
protected static final String QUERY_TYPE_PARAM
Giá trị không đổi: "op"
QUERY_WINDOW_PARAM
protected static final String QUERY_WINDOW_PARAM
Giá trị không đổi: "query_window"
TEST_TAG_PARAM
protected static final String TEST_TAG_PARAM
Giá trị không đổi: "test_tag"
Trường
mEnableResolveSymlinks
protected boolean mEnableResolveSymlinks
Hàm khởi tạo công khai
LaunchControlProvider
public LaunchControlProvider ()
Phương thức công khai
addFileFilter
public void addFileFilter (String filter)
| Tham số | |
|---|---|
filter |
String |
addOptionalFileFilter
public void addOptionalFileFilter (String optionalFilter)
| Tham số | |
|---|---|
optionalFilter |
String |
addRemoteZipFilter
public void addRemoteZipFilter (String fileFilter)
Thêm bộ lọc cho một tệp zip từ xa có thể tải xuống một phần.
| Tham số | |
|---|---|
fileFilter |
String |
cleanUp
public void cleanUp (IBuildInfo info)
Dọn dẹp mọi tệp bản dựng tạm thời.
| Tham số | |
|---|---|
info |
IBuildInfo |
clearExtraDownloads
public void clearExtraDownloads ()
createLaunchControlDownloader
public IFileDownloader createLaunchControlDownloader (RemoteBuildInfo remoteBuild)
Phương thức ban đầu để tạo một trình tải xuống dùng cho các tệp kiểm soát việc ra mắt.
| Tham số | |
|---|---|
remoteBuild |
RemoteBuildInfo |
| Giá trị trả về | |
|---|---|
IFileDownloader |
|
decrementTestBuild
public void decrementTestBuild (String buildId)
| Tham số | |
|---|---|
buildId |
String |
fetchRemoteBuild
public IBuildInfo fetchRemoteBuild (RemoteBuildInfo remoteBuild)
Chuyển đổi phản hồi kiểm soát việc phát hành thành một IBuildInfo cục bộ chứa tất cả các tệp cần thiết.
Được công khai để các chuyên môn hoá bên ngoài gói này có thể sử dụng trực tiếp. Thông thường, bạn nên sử dụng getBuild().
| Tham số | |
|---|---|
remoteBuild |
RemoteBuildInfo: phản hồi của máy chủ điều khiển hoạt động khởi chạy |
| Giá trị trả về | |
|---|---|
IBuildInfo |
IBuildInfo được điền sẵn các phiên bản cục bộ của tệp bản dựng |
| Gửi | |
|---|---|
BuildRetrievalError |
nếu không tải được tệp bản dựng xuống |
forceUseCas
public void forceUseCas (boolean useCas)
| Tham số | |
|---|---|
useCas |
boolean |
getAdditionalFilesFilters
public Collection<String> getAdditionalFilesFilters ()
| Giá trị trả về | |
|---|---|
Collection<String> |
|
getBranch
public String getBranch ()
Lấy nhánh hiện được chỉ định để truy vấn
| Giá trị trả về | |
|---|---|
String |
nhánh |
getBuild
public IBuildInfo getBuild ()
Truy xuất dữ liệu cho bản dựng đang được kiểm thử.
| Giá trị trả về | |
|---|---|
IBuildInfo |
IBuildInfo cho bản dựng đang được kiểm thử hoặc null nếu không có bản dựng nào để kiểm thử |
| Gửi | |
|---|---|
BuildRetrievalError |
|
getBuildArchivePath
public String getBuildArchivePath ()
Lấy đường dẫn đến kho lưu trữ của các cấu phần phần mềm bản dựng
| Giá trị trả về | |
|---|---|
String |
|
getBuildFlavor
public String getBuildFlavor ()
Nhận hương vị bản dựng để truy vấn
| Giá trị trả về | |
|---|---|
String |
|
getBuildId
public String getBuildId ()
Lấy mã nhận dạng bản dựng để truy vấn
| Giá trị trả về | |
|---|---|
String |
|
getBuildOs
public String getBuildOs ()
| Giá trị trả về | |
|---|---|
String |
|
getConfiguration
public IConfiguration getConfiguration ()
Trả về IConfiguration được chèn đang dùng.
| Giá trị trả về | |
|---|---|
IConfiguration |
|
getContentBasedReportingDefault
public Set<String> getContentBasedReportingDefault ()
| Giá trị trả về | |
|---|---|
Set<String> |
|
getInvocationContext
public IInvocationContext getInvocationContext ()
| Giá trị trả về | |
|---|---|
IInvocationContext |
|
getLcHostname
public String getLcHostname ()
Lấy tên máy chủ lưu trữ Launch Control để dùng trong truy vấn
| Giá trị trả về | |
|---|---|
String |
|
getLcProtocol
public String getLcProtocol ()
Lấy giao thức Launch Control để sử dụng trong truy vấn
| Giá trị trả về | |
|---|---|
String |
|
getQueryType
public QueryType getQueryType ()
Lấy loại truy vấn sẽ được sử dụng
| Giá trị trả về | |
|---|---|
QueryType |
|
getRemoteBuild
public RemoteBuildInfo getRemoteBuild ()
Nhận phản hồi kiểm soát việc chạy mà không cần tải tất cả các tệp xuống.
Được công khai để các chuyên môn hoá bên ngoài gói này có thể sử dụng trực tiếp. Thông thường, bạn nên sử dụng getBuild().
| Giá trị trả về | |
|---|---|
RemoteBuildInfo |
phản hồi RemoteBuildInfo của chế độ kiểm soát khởi động |
| Gửi | |
|---|---|
BuildRetrievalError |
nếu không truy xuất được thông tin bản dựng do lỗi không mong muốn |
getRemoteZipFilters
public Set<String> getRemoteZipFilters ()
Nhận một bộ lọc cho các tệp zip có thể tải xuống một phần.
| Giá trị trả về | |
|---|---|
Set<String> |
|
getReportContentBasedRollout
public boolean getReportContentBasedRollout ()
| Giá trị trả về | |
|---|---|
boolean |
|
getReportContentInformation
public boolean getReportContentInformation ()
| Giá trị trả về | |
|---|---|
boolean |
|
getTestConfigOnlyZip
public String getTestConfigOnlyZip ()
Lấy tệp zip chỉ chứa cấu hình kiểm thử.
| Giá trị trả về | |
|---|---|
String |
|
getTestTag
public String getTestTag ()
Lấy thẻ kiểm thử để dùng trong truy vấn
| Giá trị trả về | |
|---|---|
String |
|
getUseSsoClient
public boolean getUseSsoClient ()
Nhận nếu nên dùng ứng dụng sso
| Giá trị trả về | |
|---|---|
boolean |
|
handleExtraTargetDownloads
public static void handleExtraTargetDownloads (IBuildInfo build, List<Entry<String, File>> entries)
Xử lý các tệp tải xuống động để điền sẵn siêu dữ liệu
| Tham số | |
|---|---|
build |
IBuildInfo |
entries |
List |
| Gửi | |
|---|---|
BuildRetrievalError |
|
isChunkingUncompressedDisabled
public boolean isChunkingUncompressedDisabled ()
| Giá trị trả về | |
|---|---|
boolean |
|
isSecondaryParallelDownload
public boolean isSecondaryParallelDownload ()
Tính năng tải xuống song song có được bật hay không.
| Giá trị trả về | |
|---|---|
boolean |
|
reportTestZipFileFilter
public Set<String> reportTestZipFileFilter ()
| Giá trị trả về | |
|---|---|
Set<String> |
|
resetTestBuild
public void resetTestBuild ()
Thực hiện truy vấn QueryType.RESET_TEST_BUILD để yêu cầu kiểm soát việc khởi chạy nhằm xoá bản dựng đã định cấu hình khỏi tập hợp "bản dựng đã kiểm thử".
Có cơ chế xử lý lỗi và thử lại hạn chế Không dùng nữa vì LCProxy đã ngừng hoạt động.
resetTestBuild
public void resetTestBuild (String buildId)
Thực hiện truy vấn QueryType.RESET_TEST_BUILD để yêu cầu kiểm soát việc ra mắt nhằm xoá bản dựng đã cho khỏi tập hợp "bản dựng đã kiểm thử".
Có cơ chế xử lý lỗi và thử lại hạn chế Không dùng nữa vì LCProxy đã ngừng hoạt động.
| Tham số | |
|---|---|
buildId |
String: mã nhận dạng bản dựng cần đặt lại |
setAdditionalFilesFilters
public void setAdditionalFilesFilters (Collection<String> additionalFilesFilters)
| Tham số | |
|---|---|
additionalFilesFilters |
Collection |
setBranch
public void setBranch (String branch)
Đặt nhánh để truy vấn
setBuildArchivePath
public void setBuildArchivePath (String buildArchivePath)
Đặt đường dẫn đến kho lưu trữ tạo tác bản dựng
setBuildFlavor
public void setBuildFlavor (String flavor)
Đặt build-flavor thành truy vấn
setBuildId
public void setBuildId (String buildId)
Đặt mã nhận dạng bản dựng để truy vấn
setBuildOs
public void setBuildOs (String os)
| Tham số | |
|---|---|
os |
String |
setConfiguration
public void setConfiguration (IConfiguration configuration)
Chèn IConfiguration đang dùng.
| Tham số | |
|---|---|
configuration |
IConfiguration |
setContentBasedReportingDefault
public void setContentBasedReportingDefault (Set<String> contentBasedReportingDefault)
| Tham số | |
|---|---|
contentBasedReportingDefault |
Set |
setEnableResolveSymlinks
public void setEnableResolveSymlinks (boolean enableResolveSymlinks)
| Tham số | |
|---|---|
enableResolveSymlinks |
boolean |
setFetchSigned
public void setFetchSigned (boolean fetchSigned)
| Tham số | |
|---|---|
fetchSigned |
boolean |
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
| Tham số | |
|---|---|
invocationContext |
IInvocationContext |
setLcHostname
public void setLcHostname (String lcHostname)
Đặt tên máy chủ Launch Control để dùng trong truy vấn
| Tham số | |
|---|---|
lcHostname |
String |
setLcProtocol
public void setLcProtocol (String lcProtocol)
Đặt giao thức Launch Control để dùng trong truy vấn
setMinBuildId
public void setMinBuildId (int minBuildId)
Đặt mã nhận dạng bản dựng tối thiểu để sử dụng.
| Tham số | |
|---|---|
minBuildId |
int |
setParallelSecondaryDownload
public void setParallelSecondaryDownload (boolean parallel)
| Tham số | |
|---|---|
parallel |
boolean |
setPartialDownloadForZip
public void setPartialDownloadForZip (boolean enableZipPartialDownload)
| Tham số | |
|---|---|
enableZipPartialDownload |
boolean |
setReportContentBasedRollout
public void setReportContentBasedRollout (boolean reportContentBasedRollout)
| Tham số | |
|---|---|
reportContentBasedRollout |
boolean |
setReportContentInformation
public void setReportContentInformation (boolean reportContentInfo)
| Tham số | |
|---|---|
reportContentInfo |
boolean |
setSkipCloudContent
public void setSkipCloudContent (boolean skipCloudContent)
| Tham số | |
|---|---|
skipCloudContent |
boolean |
setTestLogger
public void setTestLogger (ITestLogger testLogger)
Chèn thực thể ITestLogger
| Tham số | |
|---|---|
testLogger |
ITestLogger |
setTestTag
public void setTestTag (String tag)
Đặt thẻ kiểm thử sẽ được sử dụng.
| Tham số | |
|---|---|
tag |
String |
setUseBuildApi
public void setUseBuildApi (boolean useBuildApi)
Đặt giá trị để kiểm soát xem trình cung cấp bản dựng có nên sử dụng Android Build API hay không
| Tham số | |
|---|---|
useBuildApi |
boolean |
setUseSsoClient
public void setUseSsoClient (boolean useSsoClient)
Đặt xem có nên sử dụng ứng dụng sso hay không
| Tham số | |
|---|---|
useSsoClient |
boolean |
shouldFetchSigned
public boolean shouldFetchSigned ()
| Giá trị trả về | |
|---|---|
boolean |
|
shouldReportContentInformation
public boolean shouldReportContentInformation ()
| Giá trị trả về | |
|---|---|
boolean |
|
shouldUseBuildApi
public boolean shouldUseBuildApi ()
Trả về nếu trình cung cấp bản dựng nên sử dụng Android Build API
| Giá trị trả về | |
|---|---|
boolean |
|
Phương thức được bảo vệ
convertBuildToSigned
protected void convertBuildToSigned (RemoteBuildInfo remoteBuild)
Sửa đổi các thông số trong RemoteBuildInfo này để mô tả bản dựng đã ký.
| Tham số | |
|---|---|
remoteBuild |
RemoteBuildInfo: RemoteBuildInfo cần sửa đổi |
| Gửi | |
|---|---|
|
com.android.tradefed.build.BuildRetrievalError |
BuildRetrievalError |
|
createHttpHelper
protected IHttpHelper createHttpHelper ()
Phương thức ban đầu để tạo một HttpHelper.
Được hiển thị để có thể mô phỏng cho kiểm thử đơn vị.
| Giá trị trả về | |
|---|---|
IHttpHelper |
|
createSignedParameter
protected String createSignedParameter (String param)
Sửa đổi một tham số duy nhất để biểu thị một tham số đã ký. Nếu tham số đã ở định dạng đã ký, thì tham số đó sẽ được trả về mà không thay đổi.
| Tham số | |
|---|---|
param |
String: tham số ban đầu (có thể chưa được ký hoặc đã được ký) |
| Giá trị trả về | |
|---|---|
String |
tham số đã ký |
| Gửi | |
|---|---|
BuildRetrievalError |
nếu tham số sai định dạng và không xử lý được |
deleteCacheEntry
protected void deleteCacheEntry (String remoteFilePath)
Xoá tệp khỏi bộ nhớ đệm trong trường hợp tệp bị hỏng.
| Tham số | |
|---|---|
remoteFilePath |
String: Tệp từ xa giống như tệp được chỉ định trong IFileDownloader.downloadFile(String). |
downloadAdditionalFiles
protected void downloadAdditionalFiles (RemoteBuildInfo remoteBuild, IFileDownloader downloader, IBuildInfo localBuild)
| Tham số | |
|---|---|
remoteBuild |
RemoteBuildInfo |
downloader |
IFileDownloader |
localBuild |
IBuildInfo |
| Gửi | |
|---|---|
BuildRetrievalError |
|
downloadBuildFiles
protected IBuildInfo downloadBuildFiles (RemoteBuildInfo remoteBuild, String testTargetName, String buildName, IFileDownloader downloader)
Tải các khoá tệp cần thiết xuống như được định cấu hình trong --download-build-key từ remoteBuild và lưu trữ chúng trong IBuildInfo.
| Tham số | |
|---|---|
remoteBuild |
RemoteBuildInfo: phản hồi của máy chủ điều khiển hoạt động khởi chạy |
testTargetName |
String: tên mục tiêu kiểm thử |
buildName |
String: tên của bản dựng, do chế độ kiểm soát việc phát hành xác định |
downloader |
IFileDownloader: IFileDownloader để dùng tải các tệp bản dựng xuống |
| Giá trị trả về | |
|---|---|
IBuildInfo |
IBuildInfo được điền sẵn các phiên bản cục bộ của tệp bản dựng |
| Gửi | |
|---|---|
BuildRetrievalError |
nếu không tải được tệp bản dựng xuống |
downloadFilesNonBlocking
protected final List<Entry<LaunchControlProvider.DownloadFileDescriptor, File>> downloadFilesNonBlocking (IFileDownloader downloader, List<LaunchControlProvider.DownloadFileDescriptor> toBeDownloaded)
Tải bộ đường dẫn tệp xuống và thực thi các đường dẫn đó nếu bắt buộc.
| Tham số | |
|---|---|
downloader |
IFileDownloader |
toBeDownloaded |
List |
| Giá trị trả về | |
|---|---|
List<Entry<LaunchControlProvider.DownloadFileDescriptor, File>> |
|
| Gửi | |
|---|---|
BuildRetrievalError |
|
getBuildArtifactHelper
protected AndroidBuildArtifactHelper getBuildArtifactHelper ()
| Giá trị trả về | |
|---|---|
AndroidBuildArtifactHelper |
|
| Gửi | |
|---|---|
BuildRetrievalError |
|
getExtraDownloadMap
protected MultiMap<String, File> getExtraDownloadMap ()
Trả về bản đồ của các mục tiêu được tải xuống bổ sung.
| Giá trị trả về | |
|---|---|
MultiMap<String, File> |
|
getGlobalDownloadExclusionPatterns
protected Set<String> getGlobalDownloadExclusionPatterns ()
| Giá trị trả về | |
|---|---|
Set<String> |
|
getWorkFolder
protected final File getWorkFolder ()
Trả về thư mục công việc của lệnh gọi hiện tại.
| Giá trị trả về | |
|---|---|
File |
|
handleDirectoryDownload
protected final File handleDirectoryDownload (File downloadedFile)
| Tham số | |
|---|---|
downloadedFile |
File |
| Giá trị trả về | |
|---|---|
File |
|
performBuildApiQuery
protected RemoteBuildInfo performBuildApiQuery ()
| Giá trị trả về | |
|---|---|
RemoteBuildInfo |
|
| Gửi | |
|---|---|
BuildRetrievalError |
|
performValidityCheckForBuildApi
protected void performValidityCheckForBuildApi ()
queryForBuild
protected RemoteBuildInfo queryForBuild (MultiMap<String, String> params)
Thực hiện truy vấn kiểm soát khởi động, thử lại nhiều lần trong trường hợp xảy ra lỗi.
| Tham số | |
|---|---|
params |
MultiMap: các tham số để kiểm soát việc khởi chạy |
| Giá trị trả về | |
|---|---|
RemoteBuildInfo |
RemoteBuildInfo được truy xuất từ chế độ kiểm soát khởi động |
| Gửi | |
|---|---|
BuildRetrievalError |
|
queryForBuild
protected RemoteBuildInfo queryForBuild ()
Thực hiện truy vấn kiểm soát khởi động, thử lại nhiều lần trong trường hợp xảy ra lỗi.
| Giá trị trả về | |
|---|---|
RemoteBuildInfo |
RemoteBuildInfo được truy xuất từ chế độ kiểm soát khởi động |
| Gửi | |
|---|---|
BuildRetrievalError |
|
queryForBuildWithBuildApi
protected RemoteBuildInfo queryForBuildWithBuildApi ()
Thực hiện truy vấn bản dựng đối với API bản dựng.
Lưu ý: các tham số đầu vào được ngụ ý bởi nhiều biến có phạm vi lớp
| Giá trị trả về | |
|---|---|
RemoteBuildInfo |
RemoteBuildInfo được phân tích cú pháp từ phản hồi. |
| Gửi | |
|---|---|
|
com.android.tradefed.build.BuildRetrievalError |
BuildRetrievalError |
|
replaceParamWithSigned
protected void replaceParamWithSigned (RemoteBuildInfo buildInfo, RemoteBuildInfo.BuildAttributeKey key)
| Tham số | |
|---|---|
buildInfo |
RemoteBuildInfo |
key |
RemoteBuildInfo.BuildAttributeKey |
| Gửi | |
|---|---|
BuildRetrievalError |
|
useCasDefaultRollout
protected boolean useCasDefaultRollout ()
| Giá trị trả về | |
|---|---|
boolean |
|