SuiteModuleLoader

public class SuiteModuleLoader
extends Object

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


يستردّ هذا الأمر تعريفات وحدة اختبار التوافق من المستودع. TODO: Add the expansion of suite when loading a module.

ملخّص

الفئات المتداخلة

class SuiteModuleLoader.ConfigFilter

استخدِم ERROR(/FilenameFilter) للعثور على جميع ملفات الإعداد في دليل. 

الثوابت

String CONFIG_EXT

الإنشاءات العامة

SuiteModuleLoader( includeFilters, excludeFilters, testArgs, moduleArgs)

دالة إنشاء SuiteModuleLoader.

الطُرق العامة

static void addFilters( stringFilters, filters, abis, foldableStates)

طريقة مساعدة تتيح تحليل وإنشاء بنية باستخدام فلاتر الخيارات.

void 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)

التحميل الرئيسي للإعدادات، والبحث في مجلد

loadConfigsFromJars( abis, String suitePrefix, String suiteTag)

التحميل الرئيسي للإعدادات، والبحث في الموارد على مسار الفئة

loadConfigsFromSpecifiedPaths( listConfigFiles, abis, String suiteTag)

التحميل الرئيسي لعمليات الإعداد، والبحث في الملفات المحدّدة

loadTfConfigsFromSpecifiedPaths( configs, abis, String suiteTag)

التحميل الرئيسي للإعدادات، والبحث في الموارد المحدّدة في مسار الفئة

final void setExcludedModuleParameters( excludedParams)

تضبط هذه السمة مجموعة ModuleParameters التي يجب عدم أخذها في الاعتبار على الإطلاق.

final void 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

Constant Value: ".config"

الإنشاءات العامة

SuiteModuleLoader

public SuiteModuleLoader ( includeFilters, 
                 excludeFilters, 
                 testArgs, 
                 moduleArgs)

دالة إنشاء SuiteModuleLoader.

المعلمات
includeFilters : تتضمّن هذه السمة الفلاتر المنسّقة والمحلَّلة.

excludeFilters : فلاتر الاستبعاد المنسَّقة والمحلَّلة

testArgs : قائمة وسيطات الاختبار (IRemoteTest)

moduleArgs : قائمة وسيطات الوحدة

الطُرق العامة

addFilters

public static void addFilters ( stringFilters, 
                 filters, 
                 abis, 
                 foldableStates)

طريقة مساعدة تتيح تحليل وإنشاء بنية باستخدام فلاتر الخيارات.

المعلمات
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)

تضبط هذه السمة ما إذا كان سيتم تحميل إعدادات الاختبار استنادًا إلى عامل التصفية المحدّد للتضمين أم لا.

المعلمات
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