DeviceLaunchControlProvider

public class DeviceLaunchControlProvider
extends LaunchControlProvider implements IDeviceBuildProvider

java.lang.Object
   ↳ com.google.android.tradefed.build.LaunchControlProvider
     ↳ com.google.android.tradefed.build.DeviceLaunchControlProvider


Một LaunchControlProvider cho IDeviceBuildInfo

Tóm tắt

Hàm khởi tạo công khai

DeviceLaunchControlProvider()

Phương thức công khai

void addDownloadKey(RemoteBuildInfo.BuildAttributeKey attrKey)

Yêu cầu tải một tệp có đuôi BuildAttributeKey nhất định xuống.

void cleanUp(IBuildInfo info)

Dọn dẹp mọi tệp bản dựng tạm thời.

static Set<String> discoverDependencies(IConfiguration config)

Khám phá các phần phụ thuộc của cấu hình.

void evaluateDeviceImageChanges(RemoteBuildInfo remoteBuild, IFileDownloader downloader, IDeviceBuildInfo localBuild)

Tải phần bắt buộc xuống để đánh giá xem hình ảnh thiết bị có thay đổi hay không.

IBuildInfo getBuild(ITestDevice device)

Truy xuất dữ liệu cho bản dựng đang được kiểm thử

ITestDevice getDevice()
static String getPathForPattern(RemoteBuildInfo buildInfo, String pattern, boolean ignoreSubdir)

Phương thức trợ giúp để lấy đường dẫn từ xa cho hình ảnh từ RemoteBuildInfo

static String getPathForPattern(RemoteBuildInfo buildInfo, String pattern)

Phương thức trợ giúp để lấy đường dẫn từ xa cho hình ảnh từ RemoteBuildInfo

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> reportTestZipFileFilter()
void setAltStaticDeviceInfoClass(String altStaticDeviceInfoClass)
void setBootstrapBuildInfo(boolean bootstrapBuildInfo)

Được hiển thị để kiểm thử

boolean shouldAutopopulateFilters()
void skipDownload(RemoteBuildInfo.BuildAttributeKey attrKey)

Bỏ qua việc tải tệp xuống bằng một BuildAttributeKey nhất định.

Phương thức được bảo vệ

void convertBuildToSigned(RemoteBuildInfo remoteBuild)

Sửa đổi các thông số trong RemoteBuildInfo này để mô tả bản dựng đã ký.

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.

void resolveBuildInfoFromDevice(ITestDevice device)

Nhận mã nhận dạng bản dựng, hương vị từ thiết bị và tìm nạp thông tin về nhánh từ máy chủ bản dựng

void setDevice(ITestDevice device)

Hàm khởi tạo công khai

DeviceLaunchControlProvider

public DeviceLaunchControlProvider ()

Phương thức công khai

addDownloadKey

public void addDownloadKey (RemoteBuildInfo.BuildAttributeKey attrKey)

Yêu cầu tải một tệp có đuôi BuildAttributeKey nhất định xuống. Xin lưu ý rằng các trường hợp loại trừ sẽ được ưu tiên hơn các trường hợp đưa vào. Vì vậy, nếu một tệp nằm trong danh sách bỏ qua, thì tệp đó sẽ không được tải xuống, ngay cả khi tệp đó được đề cập ở đây.

Tham số
attrKey RemoteBuildInfo.BuildAttributeKey

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

discoverDependencies

public static Set<String> discoverDependencies (IConfiguration config)

Khám phá các phần phụ thuộc của cấu hình.

Tham số
config IConfiguration

Giá trị trả về
Set<String>

evaluateDeviceImageChanges

public void evaluateDeviceImageChanges (RemoteBuildInfo remoteBuild, 
                IFileDownloader downloader, 
                IDeviceBuildInfo localBuild)

Tải phần bắt buộc xuống để đánh giá xem hình ảnh thiết bị có thay đổi hay không.

Tham số
remoteBuild RemoteBuildInfo

downloader IFileDownloader

localBuild IDeviceBuildInfo

getBuild

public IBuildInfo getBuild (ITestDevice device)

Truy xuất dữ liệu cho bản dựng đang được kiểm thử

Tham số
device ITestDevice: ITestDevice được phân bổ cho 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
DeviceNotAvailableException

getDevice

public ITestDevice getDevice ()

Giá trị trả về
ITestDevice

getPathForPattern

public static String getPathForPattern (RemoteBuildInfo buildInfo, 
                String pattern, 
                boolean ignoreSubdir)

Phương thức trợ giúp để lấy đường dẫn từ xa cho hình ảnh từ RemoteBuildInfo

Tham số
buildInfo RemoteBuildInfo: RemoteBuildInfo

pattern String: mẫu của đường dẫn từ xa cho hình ảnh

ignoreSubdir boolean: nếu đúng, hãy bỏ qua thư mục con trong mẫu

Giá trị trả về
String đường dẫn từ xa

getPathForPattern

public static String getPathForPattern (RemoteBuildInfo buildInfo, 
                String pattern)

Phương thức trợ giúp để lấy đường dẫn từ xa cho hình ảnh từ RemoteBuildInfo

Tham số
buildInfo RemoteBuildInfo: RemoteBuildInfo

pattern String: mẫu của đường dẫn từ xa cho hình ảnh

Giá trị trả về
String đường dẫn từ xa

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

reportTestZipFileFilter

public Set<String> reportTestZipFileFilter ()

Giá trị trả về
Set<String>

setAltStaticDeviceInfoClass

public void setAltStaticDeviceInfoClass (String altStaticDeviceInfoClass)

Tham số
altStaticDeviceInfoClass String

setBootstrapBuildInfo

public void setBootstrapBuildInfo (boolean bootstrapBuildInfo)

Được hiển thị để kiểm thử

shouldAutopopulateFilters

public boolean shouldAutopopulateFilters ()

Giá trị trả về
boolean

skipDownload

public void skipDownload (RemoteBuildInfo.BuildAttributeKey attrKey)

Bỏ qua việc tải tệp xuống bằng một BuildAttributeKey nhất định.

Tham số
attrKey RemoteBuildInfo.BuildAttributeKey

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
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

resolveBuildInfoFromDevice

protected void resolveBuildInfoFromDevice (ITestDevice device)

Nhận mã nhận dạng bản dựng, hương vị từ thiết bị và tìm nạp thông tin về nhánh từ máy chủ bản dựng

Gửi
BuildRetrievalError
DeviceNotAvailableException

setDevice

protected void setDevice (ITestDevice device)

Tham số
device ITestDevice