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 |
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 |
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ô |
final void | setFoldableStates ( foldableStates) setFoldableStates ( foldableStates) Đặt tập hợp |
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 |
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 | |
excludeFilters | |
testArgs | IRemoteTest ). |
moduleArgs |
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 | |
filters | |
abis | |
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 | |
excludeFilters |
getModuleNamesMatching
public staticgetModuleNamesMatching (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
publicloadConfigsFromDirectory ( 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
publicloadConfigsFromJars ( 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
publicloadConfigsFromSpecifiedPaths ( 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
publicloadTfConfigsFromSpecifiedPaths ( 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 |
Nội dung và mã mẫu trên trang này phải tuân thủ các giấy phép như mô tả trong phần Giấy phép nội dung. Java và OpenJDK là nhãn hiệu hoặc nhãn hiệu đã đăng ký của Oracle và/hoặc đơn vị liên kết của Oracle.
Cập nhật lần gần đây nhất: 2022-11-07 UTC.