Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.

SuiteModuleLoader

public class SuiteModuleLoader
extends Object

java.lang.Object
com.android.tradefed.testtype.suite.SuiteModuleLoader


Truy xuất các định nghĩa mô-đun kiểm tra khả năng tương thích từ kho lưu trữ. VIỆC CẦN LÀM: Thêm phần mở rộng của bộ phần mềm khi tải mô-đun.

Bản tóm tắt

các lớp lồng nhau

class SuiteModuleLoader.ConfigFilter

ERROR(/FilenameFilter) để tìm tất cả các tệp cấu hình trong một thư mục.

Lĩnh vực

public static final String CONFIG_EXT

nhà thầu công cộng

SuiteModuleLoader ( includeFilters, excludeFilters, testArgs, moduleArgs) SuiteModuleLoader ( includeFilters, excludeFilters, testArgs, moduleArgs) SuiteModuleLoader ( includeFilters, excludeFilters, testArgs, moduleArgs) SuiteModuleLoader ( includeFilters, excludeFilters, testArgs, moduleArgs) SuiteModuleLoader ( includeFilters, excludeFilters, testArgs, moduleArgs)

Ctor cho SuiteModuleLoader.

Phương thức công khai

static void addFilters ( stringFilters, filters, abis, foldableStates) addFilters ( stringFilters, filters, abis, foldableStates) addFilters ( stringFilters, filters, abis, foldableStates) addFilters ( stringFilters, filters, abis, foldableStates) addFilters ( stringFilters, filters, abis, foldableStates)

Phương thức tiện ích cho phép phân tích cú pháp và tạo cấu trúc với các bộ lọc tùy chọn.

void addFiltersToTest ( IRemoteTest test, IAbi abi, String moduleId, includeFilters, excludeFilters) addFiltersToTest ( IRemoteTest test, IAbi abi, String moduleId, includeFilters, excludeFilters) addFiltersToTest ( IRemoteTest test, IAbi abi, String moduleId, includeFilters, excludeFilters)

Chuyển các bộ lọc tới IRemoteTest .

static getModuleNamesMatching (File directory, String suitePrefix, String pattern)
loadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns) loadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns) loadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns) loadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns)

Tải cấu hình chính, xem trong một thư mục

loadConfigsFromJars ( abis, String suitePrefix, String suiteTag) loadConfigsFromJars ( abis, String suitePrefix, String suiteTag)

Tải cấu hình chính, xem xét các tài nguyên trên đường dẫn lớp.

loadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag) loadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag) loadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag)

Tải cấu hình chính, xem xét các tệp được chỉ định

loadTfConfigsFromSpecifiedPaths ( configs, abis, String suiteTag) loadTfConfigsFromSpecifiedPaths ( configs, abis, String suiteTag) loadTfConfigsFromSpecifiedPaths ( configs, abis, String suiteTag)

Tải cấu hình chính, xem xét các tài nguyên được chỉ định trên đường dẫn lớp.

final void setExcludedModuleParameters ( excludedParams) setExcludedModuleParameters ( excludedParams)

Đặt bộ ModuleParameters hoàn toàn không được xem xét.

final void setFoldableStates ( foldableStates) setFoldableStates ( foldableStates)

Đặt bộ DeviceFoldableState sẽ được chạy.

final void setIgnoreNonPreloadedMainlineModule (boolean ignore)

Đặt có hay không bỏ qua việc cài đặt mô-đun nếu nó chưa được tải sẵn.

final void setInvocationContext ( IInvocationContext context)
final void setLoadConfigsWithIncludeFilters (boolean allowed)

Đặt có hay không tải cấu hình thử nghiệm dựa trên bộ lọc bao gồm đã cho.

final void setMainlineParameterizedModules (boolean allowed)

Đặt có hay không cho phép các mô-đun dòng chính được tham số hóa.

final void setModuleParameter ( ModuleParameters param)

Đặt loại ModuleParameters duy nhất sẽ được chạy.

final void setOptimizeMainlineTest (boolean allowed)

Đặt có hay không tối ưu hóa thử nghiệm tuyến chính.

final void setOptionalParameterizedModules (boolean allowed)

Đặt có hay không cho phép các mô-đun được tham số hóa tùy chọn.

final void setParameterizedModules (boolean allowed)

Đặt có hay không cho phép các mô-đun được tham số hóa.

Lĩnh vực

CONFIG_EXT

public static final String CONFIG_EXT

nhà thầu công cộng

SuiteModuleLoader

public SuiteModuleLoader ( includeFilters, 
                 excludeFilters, 
                 testArgs, 
                 moduleArgs)

Ctor cho SuiteModuleLoader.

Thông số
includeFilters : Các bộ lọc được định dạng và phân tích cú pháp bao gồm.

excludeFilters : Bộ lọc loại trừ được định dạng và phân tích cú pháp.

testArgs : danh sách các đối số kiểm tra ( IRemoteTest ).

moduleArgs : danh sách các đối số mô-đun.

Phương thức công khai

thêm bộ lọc

public static void addFilters ( stringFilters, 
                 filters, 
                 abis, 
                 foldableStates)

Phương thức tiện ích cho phép phân tích cú pháp và tạo cấu trúc với các bộ lọc tùy chọn.

Thông số
stringFilters : Định dạng bộ lọc tùy chọn ban đầu.

filters : Các bộ lọc được phân tích cú pháp từ định dạng chuỗi.

abis : Abis để xem xét trong quá trình lọc.

foldableStates

addFiltersToTest

public void addFiltersToTest (IRemoteTest test, 
                IAbi abi, 
                String moduleId, 
                 includeFilters, 
                 excludeFilters)

Chuyển các bộ lọc tới IRemoteTest . Hành vi mặc định là bỏ qua nếu IRemoteTest không triển khai ITestFileFilterReceiver . Điều này có thể được ghi đè để tạo ra một hành vi hạn chế hơn.

Thông số
test IRemoteTest : IRemoteTest đang được xem xét.

abi IAbi : Abi mà chúng tôi hiện đang làm việc.

moduleId String : Id của mô-đun (thường là abi + tên mô-đun).

includeFilters : Các bộ lọc được định dạng và phân tích cú pháp bao gồm.

excludeFilters : Bộ lọc loại trừ được định dạng và phân tích cú pháp.

getModuleNamesMatching

public static  getModuleNamesMatching (File directory, 
                String suitePrefix, 
                String pattern)

Thông số
directory File

suitePrefix String

pattern String

trả lại
ERROR(/Set) của các mô-đun có tên chứa mẫu đã cho.

loadConfigsFromDirectory

public  loadConfigsFromDirectory ( testsDirs, 
                 abis, 
                String suitePrefix, 
                String suiteTag, 
                 patterns)

Tải cấu hình chính, xem trong một thư mục

Thông số
testsDirs

abis

suitePrefix String

suiteTag String

patterns

trả lại

loadConfigsFromJars

public  loadConfigsFromJars ( abis, 
                String suitePrefix, 
                String suiteTag)

Tải cấu hình chính, xem xét các tài nguyên trên đường dẫn lớp. (ví dụ cấu hình TF).

Thông số
abis

suitePrefix String

suiteTag String

trả lại

loadConfigsFromSpecifiedPaths

public  loadConfigsFromSpecifiedPaths ( listConfigFiles, 
                 abis, 
                String suiteTag)

Tải cấu hình chính, xem xét các tệp được chỉ định

Thông số
listConfigFiles

abis

suiteTag String

trả lại

loadTfConfigsFromSpecifiedPaths

public  loadTfConfigsFromSpecifiedPaths ( configs, 
                 abis, 
                String suiteTag)

Tải cấu hình chính, xem xét các tài nguyên được chỉ định trên đường dẫn lớp.

Thông số
configs

abis

suiteTag String

trả lại

setExcludedModuleParameters

public final void setExcludedModuleParameters ( excludedParams)

Đặt bộ ModuleParameters hoàn toàn không được xem xét.

Thông số
excludedParams

setFoldableStates

public final void setFoldableStates ( foldableStates)

Đặt bộ DeviceFoldableState sẽ được chạy.

Thông số
foldableStates

setIgnoreNonPreloadedMainlineModule

public final void setIgnoreNonPreloadedMainlineModule (boolean ignore)

Đặt có hay không bỏ qua việc cài đặt mô-đun nếu nó chưa được tải trước.

Thông số
ignore boolean

setInvocationContext

public final void setInvocationContext (IInvocationContext context)

Thông số
context IInvocationContext

setLoadConfigsWithIncludeFilters

public final void setLoadConfigsWithIncludeFilters (boolean allowed)

Đặt có hay không tải cấu hình thử nghiệm dựa trên bộ lọc bao gồm đã cho.

Thông số
allowed boolean

setMainlineParameterizedModules

public final void setMainlineParameterizedModules (boolean allowed)

Đặt có hay không cho phép các mô-đun dòng chính được tham số hóa.

Thông số
allowed boolean

setModuleParameter

public final void setModuleParameter (ModuleParameters param)

Đặt loại ModuleParameters duy nhất sẽ được chạy.

Thông số
param ModuleParameters

setOptimizeMainlineTest

public final void setOptimizeMainlineTest (boolean allowed)

Đặt có hay không tối ưu hóa thử nghiệm tuyến chính.

Thông số
allowed boolean

setOptionalParameterizedModules

public final void setOptionalParameterizedModules (boolean allowed)

Đặt có hay không cho phép các mô-đun được tham số hóa tùy chọn.

Thông số
allowed boolean

setParameterizedModules

public final void setParameterizedModules (boolean allowed)

Đặt có hay không cho phép các mô-đun được tham số hóa.

Thông số
allowed boolean