SuiteModuleLoader

public class SuiteModuleLoader
extends Object

java.lang.Object
com.android.tradefed.testtype.suite.SuiteModuleLoader


מאחזר את הגדרות מודול בדיקת התאימות מהמאגר. TODO: הוסף את הרחבת החבילה בעת טעינת מודול.

סיכום

כיתות מקוננות

class SuiteModuleLoader.ConfigFilter

ERROR(/FilenameFilter) כדי למצוא את כל קבצי התצורה בספרייה.

שדות

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)

העבר את המסננים ל- IRemoteTest .

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)

מגדיר את ערכת ה- ModuleParameters שאסור להתייחס אליהם כלל.

final void setFoldableStates ( foldableStates) setFoldableStates ( foldableStates)

מגדיר את קבוצת ה- DeviceFoldableState שיש להפעיל.

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)

מגדיר את סוג ModuleParameters היחיד שיש להפעיל.

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 : ה-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 static  getModuleNamesMatching (File directory, 
                String suitePrefix, 
                String pattern)

פרמטרים
directory File

suitePrefix String

pattern String

החזרות
ה- ERROR(/Set) של מודולים ששמם מכיל את התבנית הנתונה.

loadConfigsFromDirectory

public  loadConfigsFromDirectory ( testsDirs, 
                 abis, 
                String suitePrefix, 
                String suiteTag, 
                 patterns)

טעינה ראשית של תצורות, הסתכלות לתוך תיקיה

פרמטרים
testsDirs

abis

suitePrefix String

suiteTag String

patterns

החזרות

loadConfigsFromJars

public  loadConfigsFromJars ( abis, 
                String suitePrefix, 
                String suiteTag)

טעינה ראשית של תצורות, תוך התבוננות במשאבים בנתיב הכיתה. (תצורות TF למשל).

פרמטרים
abis

suitePrefix String

suiteTag String

החזרות

loadConfigsFromSpecifiedPaths

public  loadConfigsFromSpecifiedPaths ( listConfigFiles, 
                 abis, 
                String suiteTag)

טעינה ראשית של תצורות, תוך התבוננות בקבצים שצוינו

פרמטרים
listConfigFiles

abis

suiteTag String

החזרות

loadTfConfigsFromSpecifiedPaths

public  loadTfConfigsFromSpecifiedPaths ( 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