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 |
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 |
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ộ |
final void | setFoldableStates ( foldableStates) setFoldableStates ( foldableStates) Đặt bộ |
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 |
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 | |
excludeFilters | |
testArgs | IRemoteTest ). |
moduleArgs |
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 | |
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 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 |
trả lại | |
---|---|
ERROR(/Set) của các mô-đun có tên chứa mẫu đã cho. |
loadConfigsFromDirectory
publicloadConfigsFromDirectory ( 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
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 | |
---|---|
loadConfigsFromSpecifiedPaths
publicloadConfigsFromSpecifiedPaths ( 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
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 | |
---|---|
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 |
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-03-30 UTC.