SuiteModuleLoader
public class SuiteModuleLoader
extends Object
java.lang.Object | |
↳ | com.android.tradefed.testtype.suite.SuiteModuleLoader |
מאחזר הגדרות מודול בדיקת תאימות מהמאגר. TODO: הוסף את הרחבת החבילה בעת טעינת מודול.
סיכום
שיעורים מקוננים | |
---|---|
class | SuiteModuleLoader.ConfigFilter |
שדות | |
---|---|
public static final String | CONFIG_EXT
|
בוני ציבור | |
---|---|
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 עבור SuiteModuleLoader. |
שיטות ציבוריות | |
---|---|
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) שיטת שירות המאפשרת לנתח וליצור מבנה עם מסנני האפשרויות. |
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) לעבור את המסננים אל |
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) טעינה ראשית של תצורות, חיפוש בתיקייה | |
loadConfigsFromJars ( abis, String suitePrefix, String suiteTag) loadConfigsFromJars ( abis, String suitePrefix, String suiteTag) טעינה ראשית של תצורות, בחינת המשאבים שבדרך הכיתה. | |
loadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag) loadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag) loadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag) טעינה ראשית של תצורות, בחינת הקבצים שצוין | |
loadTfConfigsFromSpecifiedPaths ( configs, abis, String suiteTag) loadTfConfigsFromSpecifiedPaths ( configs, abis, String suiteTag) loadTfConfigsFromSpecifiedPaths ( configs, abis, String suiteTag) טעינה ראשית של תצורות, בחינת המשאבים שצוין על מסלול הכיתה. | |
final void | setExcludedModuleParameters ( excludedParams) setExcludedModuleParameters ( excludedParams) מגדיר את הסט של |
final void | setFoldableStates ( foldableStates) setFoldableStates ( foldableStates) מגדיר את הסט של |
final void | setIgnoreNonPreloadedMainlineModule (boolean ignore) קובע אם להתעלם מהתקנת המודול או לא אם הוא נטען מראש. |
final void | setInvocationContext (IInvocationContext context) |
final void | setMainlineParameterizedModules (boolean allowed) קובע אם לאפשר או לאפשר מודולי קו פרמטריים. |
final void | setModuleParameter ( ModuleParameters param) סטים היחיד |
final void | setOptimizeMainlineTest (boolean allowed) קובע אם לבצע אופטימיזציה של בדיקת הרשת או לא. |
final void | setOptionalParameterizedModules (boolean allowed) קובע אם לאפשר מודולים פרמטריים אופציונליים או לא. |
final void | setParameterizedModules (boolean allowed) קובע אם לאפשר מודולים עם פרמטרים או לא. |
שדות
CONFIG_EXT
public static final String CONFIG_EXT
בוני ציבור
SuiteModuleLoader
public SuiteModuleLoader (includeFilters, excludeFilters, testArgs, moduleArgs)
Ctor עבור SuiteModuleLoader.
פרמטרים | |
---|---|
includeFilters | |
excludeFilters | |
testArgs | IRemoteTest ) טיעונים. |
moduleArgs |
שיטות ציבוריות
addFilters
public static void addFilters (stringFilters, filters, abis, foldableStates)
שיטת שירות המאפשרת לנתח וליצור מבנה עם מסנני האפשרויות.
פרמטרים | |
---|---|
stringFilters | |
filters | |
abis | |
foldableStates |
addFiltersToTest
public void addFiltersToTest (IRemoteTest test, IAbi abi, String moduleId,includeFilters, excludeFilters)
לעבור את המסננים אל IRemoteTest
. התנהגות ברירת המחדל היא להתעלם אם IRemoteTest לא מיישמת ITestFileFilterReceiver
. זה יכול להתגבר על מנת ליצור התנהגות מגבילה יותר.
פרמטרים | |
---|---|
test | IRemoteTest : The IRemoteTest כי נשקל. |
abi | IAbi : The אבי אנחנו עובדים כרגע על. |
moduleId | String : המזהה של מודול (בדרך כלל אב + שם המודול). |
includeFilters | |
excludeFilters |
getModuleNamesMatching
public staticgetModuleNamesMatching (File directory, String suitePrefix, String pattern)
פרמטרים | |
---|---|
directory | File |
suitePrefix | String |
pattern | String |
החזרות | |
---|---|
ERROR(/Set) של מודולים ששמו מכיל את דפוס נתון. |
loadConfigsFromDirectory
publicloadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns)
טעינה ראשית של תצורות, חיפוש בתיקייה
פרמטרים | |
---|---|
testsDirs | |
abis | |
suitePrefix | String |
suiteTag | String |
patterns |
החזרות | |
---|---|
loadConfigsFromJars
publicloadConfigsFromJars ( abis, String suitePrefix, String suiteTag)
טעינה ראשית של תצורות, בחינת המשאבים שבדרך הכיתה. (TF configs למשל).
פרמטרים | |
---|---|
abis | |
suitePrefix | String |
suiteTag | String |
החזרות | |
---|---|
loadConfigsFromSpecifiedPaths
publicloadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag)
טעינה ראשית של תצורות, בחינת הקבצים שצוין
פרמטרים | |
---|---|
listConfigFiles | |
abis | |
suiteTag | String |
החזרות | |
---|---|
loadTfConfigsFromSpecifiedPaths
publicloadTfConfigsFromSpecifiedPaths ( configs, abis, String suiteTag)
טעינה ראשית של תצורות, בחינת המשאבים שצוין על מסלול הכיתה.
פרמטרים | |
---|---|
configs | |
abis | |
suiteTag | String |
החזרות | |
---|---|
setExcludedModuleParameters
public final void setExcludedModuleParameters (excludedParams)
מגדיר את הסט של ModuleParameters
כי אין להתייחס בכלל.
פרמטרים | |
---|---|
excludedParams |
setFoldableStates
public final void setFoldableStates (foldableStates)
מגדיר את הסט של DeviceFoldableState
שצריך לרוץ.
פרמטרים | |
---|---|
foldableStates |
setIgnoreNonPreloadedMainlineModule
public final void setIgnoreNonPreloadedMainlineModule (boolean ignore)
קובע אם להתעלם מהתקנת המודול או לא אם הוא נטען מראש.
פרמטרים | |
---|---|
ignore | boolean |
setInvocationContext
public final void setInvocationContext (IInvocationContext context)
פרמטרים | |
---|---|
context | IInvocationContext |
setMainlineParameterizedModules
public final void setMainlineParameterizedModules (boolean allowed)
קובע אם לאפשר או לאפשר מודולים מרכזיים של פרמטרים.
פרמטרים | |
---|---|
allowed | boolean |
setModuleParameter
public final void setModuleParameter (ModuleParameters param)
סטים היחיד ModuleParameters
להקליד אותם יש להפעיל.
פרמטרים | |
---|---|
param | ModuleParameters |
setOptimizeMainlineTest
public final void setOptimizeMainlineTest (boolean allowed)
קובע אם לבצע אופטימיזציה של בדיקת הרשת או לא.
פרמטרים | |
---|---|
allowed | boolean |
setOptionalParameterizedModules
public final void setOptionalParameterizedModules (boolean allowed)
קובע אם לאפשר מודולים פרמטריים אופציונליים או לא.
פרמטרים | |
---|---|
allowed | boolean |
setParameterizedModules
public final void setParameterizedModules (boolean allowed)
קובע אם לאפשר מודולים עם פרמטרים או לא.
פרמטרים | |
---|---|
allowed | boolean |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-10-04 UTC.