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 tính 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 |
Lĩnh vực | |
---|---|
public static final String | CONFIG_EXT
|
Nhà thầu 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 tới |
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, nhìn vào 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 chính các cấu hình, xem xét các tập tin đượ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 tập hợp |
final void | setFoldableStates ( foldableStates) setFoldableStates ( foldableStates) Đặt tập hợp |
final void | setIgnoreNonPreloadedMainlineModule (boolean ignore) Đặt xem có bỏ qua việc cài đặt mô-đun nếu nó không được tải sẵn hay không. |
final void | setInvocationContext ( IInvocationContext context) |
final void | setLoadConfigsWithIncludeFilters (boolean allowed) Đặt xem có tải cấu hình kiểm tra hay không dựa trên bộ lọc bao gồm đã cho. |
final void | setMainlineParameterizedModules (boolean allowed) Đặt xem có cho phép các mô-đun đườ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 xem có tối ưu hóa thử nghiệm tuyến chính hay không. |
final void | setOptionalParameterizedModules (boolean allowed) Đặt xem có cho phép các mô-đun được tham số hóa tùy chọn hay không. |
final void | setParameterizedModules (boolean allowed) Đặt xem 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
Nhà thầu 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
thêmBộ 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 | |
filters | |
abis | |
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 module (thường là abi + tên module). |
includeFilters | |
excludeFilters |
getModuleNamesMatching
public staticgetModuleNamesMatching (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. |
tảiConfigsFromDirectory
publicloadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns)
Tải cấu hình chính, nhìn vào một thư mục
Thông số | |
---|---|
testsDirs | |
abis | |
suitePrefix | String |
suiteTag | String |
patterns |
Trả lại | |
---|---|
tảiConfigsFromJars
publicloadConfigsFromJars ( 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 | |
---|---|
tảiConfigsFromSpecifiedPaths
publicloadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag)
Tải chính các cấu hình, xem xét các tập tin được chỉ định
Thông số | |
---|---|
listConfigFiles | |
abis | |
suiteTag | String |
Trả lại | |
---|---|
LoadTfConfigsFromSpecifiedPaths
publicloadTfConfigsFromSpecifiedPaths ( 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 | |
---|---|
setExcludedModuleParameter
public final void setExcludedModuleParameters (excludedParams)
Đặt tập hợp ModuleParameters
không nên đượ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 xem có bỏ qua việc cài đặt mô-đun nếu nó không được tải trước hay không.
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 xem có tải cấu hình kiểm tra hay không dựa trên bộ lọc bao gồm đã cho.
Thông số | |
---|---|
allowed | boolean |
setMainlineParameterizedModules
public final void setMainlineParameterizedModules (boolean allowed)
Đặt xem có cho phép các mô-đun đườ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 xem có tối ưu hóa thử nghiệm tuyến chính hay không.
Thông số | |
---|---|
allowed | boolean |
setOptionalParameterizedModules
public final void setOptionalParameterizedModules (boolean allowed)
Đặt xem có cho phép các mô-đun được tham số hóa tùy chọn hay không.
Thông số | |
---|---|
allowed | boolean |
setParameterizedModules
public final void setParameterizedModules (boolean allowed)
Đặt xem 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: 2023-12-01 UTC.