SuiteModuleLoader
public class SuiteModuleLoader
extends Object
java.lang.Object | |
↳ | com.android.tradefed.testtype.suite.SuiteModuleLoader |
يسترد تعريفات وحدة اختبار التوافق من المستودع. المهام: أضف توسيع المجموعة عند تحميل الوحدة النمطية.
ملخص
فصول متداخلة | |
---|---|
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) Cctor لـ 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 | setLoadConfigsWithIncludeFilters (boolean allowed) يضبط ما إذا كان سيتم تحميل تكوين الاختبار أم لا بناءً على مرشح التضمين المحدد. |
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)
Cctor لـ 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 : IRemoteTest الذي يتم النظر فيه. |
abi | IAbi : أبي الذي نعمل عليه حاليا. |
moduleId | String : معرف الوحدة (عادة اسم الوحدة + أبي). |
includeFilters | |
excludeFilters |
getModuleNamesMatching
public staticgetModuleNamesMatching (File directory, String suitePrefix, String pattern)
حدود | |
---|---|
directory | File |
suitePrefix | String |
pattern | String |
عائدات | |
---|---|
ERROR(/Set) الوحدات التي يحتوي اسمها على النمط المحدد. |
تحميلConfigsFromDirectory
publicloadConfigsFromDirectory ( testsDirs, abis, String suitePrefix, String suiteTag, patterns)
التحميل الرئيسي للتكوينات، والنظر في مجلد
حدود | |
---|---|
testsDirs | |
abis | |
suitePrefix | String |
suiteTag | String |
patterns |
عائدات | |
---|---|
تحميلConfigsFromJars
publicloadConfigsFromJars ( abis, String suitePrefix, String suiteTag)
التحميل الرئيسي للتكوينات، والنظر في الموارد الموجودة على مسار الفصل. (تكوينات TF على سبيل المثال).
حدود | |
---|---|
abis | |
suitePrefix | String |
suiteTag | String |
عائدات | |
---|---|
تحميلConfigsFromSpecifiedPaths
publicloadConfigsFromSpecifiedPaths ( listConfigFiles, abis, String suiteTag)
التحميل الرئيسي للتكوينات، والنظر في الملفات المحددة
حدود | |
---|---|
listConfigFiles | |
abis | |
suiteTag | String |
عائدات | |
---|---|
تحميلTfConfigsFromSpecifiedPaths
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)
يضبط ما إذا كان سيتم تحميل تكوين الاختبار أم لا بناءً على مرشح التضمين المحدد.
حدود | |
---|---|
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-12-01 (حسب التوقيت العالمي المتفَّق عليه)