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) סקטור עבור 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) שיטת Utility המאפשרת לנתח וליצור מבנה עם מסנני האופציות. |
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 | setLoadConfigsWithIncludeFilters (boolean allowed) מגדיר אם לטעון תצורת בדיקה או לא בהתבסס על ה-include-filter הנתון. |
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)
סקטור עבור SuiteModuleLoader.
פרמטרים | |
---|---|
includeFilters | |
excludeFilters | |
testArgs | IRemoteTest ). |
moduleArgs |
שיטות ציבוריות
addFilters
public static void addFilters (stringFilters, filters, abis, foldableStates)
שיטת Utility המאפשרת לנתח וליצור מבנה עם מסנני האופציות.
פרמטרים | |
---|---|
stringFilters | |
filters | |
abis | |
foldableStates |
addFiltersToTest
public void addFiltersToTest (IRemoteTest test, IAbi abi, String moduleId,includeFilters, excludeFilters)
העבר את המסננים ל- IRemoteTest
. התנהגות ברירת המחדל היא להתעלם אם ה-IRemoteTest אינו מיישם ITestFileFilterReceiver
. ניתן לעקוף זאת כדי ליצור התנהגות מגבילה יותר.
פרמטרים | |
---|---|
test | IRemoteTest : ה- IRemoteTest שנבחן. |
abi | IAbi : ה-Abi שאנחנו עובדים עליו כרגע. |
moduleId | String : המזהה של המודול (בדרך כלל abi + שם מודול). |
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 למשל).
פרמטרים | |
---|---|
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 |
setLoadConfigsWithIncludeFilters
public final void setLoadConfigsWithIncludeFilters (boolean allowed)
מגדיר אם לטעון תצורת בדיקה או לא בהתבסס על ה-include-filter הנתון.
פרמטרים | |
---|---|
allowed | boolean |
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 |
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-03-30 (שעון UTC).