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ộ khi tải một 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

Các nhà xây dựng 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 pháp 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 đến 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 chính các cấu hình, xem xét một thư mục

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

Tải chính các cấu hình, xem xét các tài nguyên trên classpath.

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

Tải chính các cấu hì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 chính các cấu hình, xem xét các tài nguyên được chỉ định trên classpath.

final void setExcludedModuleParameters ( excludedParams) setExcludedModuleParameters ( excludedParams)

Đặt tập hợp các Tham số mô ModuleParameters không được xem xét.

final void setFoldableStates ( foldableStates) setFoldableStates ( foldableStates)

Đặt tập hợp DeviceFoldableState sẽ được chạy.

final void setIgnoreNonPreloadedMainlineModule (boolean ignore)

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

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ó cho phép mô-đun dòng chính được tham số hóa hay không.

final void setModuleParameter ( ModuleParameters param)

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

final void setOptimizeMainlineTest (boolean allowed)

Đặt có tối ưu hóa kiểm tra dòng chính hay không.

final void setOptionalParameterizedModules (boolean allowed)

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

final void setParameterizedModules (boolean allowed)

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

Lĩnh vực

CONFIG_EXT

public static final String CONFIG_EXT

Các nhà xây dựng công cộng

SuiteModuleLoader

public SuiteModuleLoader ( includeFilters, 
                 excludeFilters, 
                 testArgs, 
                 moduleArgs)

Ctor cho SuiteModuleLoader.

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

excludeFilters : Các 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ố của mô-đun.

Phương pháp công khai

addFilters

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 : Tùy chọn gốc lọc định dạng.

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

abis : Abis cần xem xét trong bộ lọc.

foldableStates

addFiltersToTest

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

Chuyển các bộ lọc đến 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 : Định dạng và phân tích cú pháp bao gồm các bộ lọc.

excludeFilters : Các 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

Lợi nhuận
ERROR(/Set) các mô-đun có tên chứa mẫu đã cho.

loadConfigsFromDirectory

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

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

Thông số
testsDirs

abis

suitePrefix String

suiteTag String

patterns

Lợi nhuận

loadConfigsFromJars

public  loadConfigsFromJars ( abis, 
                String suitePrefix, 
                String suiteTag)

Tải chính các cấu hình, xem xét các tài nguyên trên classpath. (Ví dụ: cấu hình TF).

Thông số
abis

suitePrefix String

suiteTag String

Lợi nhuận

loadConfigsFromSpecifiedPaths

public  loadConfigsFromSpecifiedPaths ( listConfigFiles, 
                 abis, 
                String suiteTag)

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

Thông số
listConfigFiles

abis

suiteTag String

Lợi nhuận

loadTfConfigsFromSpecifiedPaths

public  loadTfConfigsFromSpecifiedPaths ( configs, 
                 abis, 
                String suiteTag)

Tải chính các cấu hình, xem xét các tài nguyên được chỉ định trên classpath.

Thông số
configs

abis

suiteTag String

Lợi nhuận

setExcludedModuleParameters

public final void setExcludedModuleParameters ( excludedParams)

Đặt tập hợp các Tham số mô ModuleParameters không được xem xét.

Thông số
excludedParams

setFoldableStates

public final void setFoldableStates ( foldableStates)

Đặt tập hợp DeviceFoldableState sẽ được chạy.

Thông số
foldableStates

setIgnoreNonPreloadedMainlineModule

public final void setIgnoreNonPreloadedMainlineModule (boolean ignore)

Đặt có bỏ qua cài đặt mô-đun hay không 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ó cho phép mô-đun dòng chính được tham số hóa hay không.

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ó tối ưu hóa kiểm tra dòng chính hay không.

Thông số
allowed boolean

setOptionalParameterizedModules

public final void setOptionalParameterizedModules (boolean allowed)

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

Thông số
allowed boolean

setParameterizedModules

public final void setParameterizedModules (boolean allowed)

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

Thông số
allowed boolean