Home
last modified time | relevance | path

Searched refs:Configuration (Results 1 – 25 of 86) sorted by relevance

1234

/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationTest.java108 private Configuration mConfig;
116 mConfig = new Configuration(CONFIG_NAME, CONFIG_DESCRIPTION); in setUp()
161 mConfig.getConfigurationObject(Configuration.TEST_TYPE_NAME); in testGetConfigurationObject_typeIsList()
192 mConfig.setConfigurationObject(Configuration.TEST_TYPE_NAME, new TestConfigObject()); in testSetConfigurationObject_wrongtype()
216 mConfig.setConfigurationObjectList(Configuration.TEST_TYPE_NAME, myList); in testSetConfigurationObjectList_wrongtype()
510 mConfig.setConfigurationObject(Configuration.CMD_OPTIONS_TYPE_NAME, option); in testValidateOptionsShardException()
530 mConfig.setConfigurationObject(Configuration.CMD_OPTIONS_TYPE_NAME, option); in testValidateOptionsShardIndexException()
554 mConfig.setConfigurationObject(Configuration.CMD_OPTIONS_TYPE_NAME, option); in testValidateOptionsShardIndexAboveShardCount()
570 new Configuration(CONFIG_NAME, CONFIG_DESCRIPTION) { in testValidateOptions_localSharding_skipDownload()
619 filters.add(Configuration.TEST_TYPE_NAME); in testDumpXml_withFilter()
[all …]
DConfigurationDefTest.java69 mConfigDef.addConfigObjectDef(Configuration.BUILD_PROVIDER_TYPE_NAME, in setUp()
113 mConfigDef.addConfigObjectDef("device1:" + Configuration.BUILD_PROVIDER_TYPE_NAME, in testCreateConfiguration_withDeviceHolder()
130 Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME, in testCreateConfiguration_withCollectors()
144 Configuration.RESULT_REPORTER_TYPE_NAME, BaseDeviceMetricCollector.class.getName()); in testCreateConfiguration_withCollectors_asReporter()
DSandboxConfigurationFactoryTest.java121 assertNotNull(config.getConfigurationObject(Configuration.SANDBOX_TYPE_NAME)); in testCreateConfigurationFromArgs()
122 assertEquals(mFakeSandbox, config.getConfigurationObject(Configuration.SANDBOX_TYPE_NAME)); in testCreateConfigurationFromArgs()
160 IConfiguration originalConfig = new Configuration("name", "description"); in testCreateConfiguration_runConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DValidateSuiteConfigHelperTest.java24 import com.android.tradefed.config.Configuration;
52 IConfiguration config = new Configuration("test", "test description"); in testCanRunAsSuite()
59 IConfiguration config = new Configuration("test", "test description"); in testNotRunningAsSuite_buildProvider()
67 assertTrue(expected.getMessage().contains(Configuration.BUILD_PROVIDER_TYPE_NAME)); in testNotRunningAsSuite_buildProvider()
77 IConfiguration config = new Configuration("test", "test description"); in testNotRunningAsSuite_MultiDevice_buildProvider()
87 assertTrue(expected.getMessage().contains(Configuration.BUILD_PROVIDER_TYPE_NAME)); in testNotRunningAsSuite_MultiDevice_buildProvider()
97 IConfiguration config = new Configuration("test", "test description"); in testParse_MultiDevice()
115 IConfiguration config = new Configuration("test", "test description"); in testNotRunningAsSuite_resultReporter()
121 assertTrue(expected.getMessage().contains(Configuration.RESULT_REPORTER_TYPE_NAME)); in testNotRunningAsSuite_resultReporter()
128 IConfiguration config = new Configuration("test", "test description"); in testNotRunningAsSuite_multi_resultReporter()
[all …]
DModuleDefinitionTest.java29 import com.android.tradefed.config.Configuration;
327 new Configuration("", "")); in setUp()
371 IConfiguration config = new Configuration("", ""); in testCreateModule()
389 IConfiguration config = new Configuration("", ""); in testCreateModule_withParams()
449 new Configuration("", "") { in testDynamicDownloadThrows_ReportsRunFailed()
513 new Configuration("", "")); in testRun_aggregateRunFailures()
585 Configuration config = new Configuration("", ""); in testParseTokens()
680 new Configuration("", "")); in testRun_failPreparation()
724 new Configuration("", "")); in testRun_failPreparation_runtime()
765 new Configuration("", "")); in testRun_failPreparation_error()
[all …]
DITestSuiteTest.java31 import com.android.tradefed.config.Configuration;
306 mStubMainConfiguration = new Configuration("stub", "stub"); in setUp()
731 testConfig.put("NOT_RUN", new Configuration("test", "test")); in testRun_deviceUnavailable()
1001 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_emptyFilters()
1010 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_matchInclude()
1025 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_noMatchInclude_mismatchValue()
1040 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_noMatchInclude_mismatchKey()
1055 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_matchExclude()
1070 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_noMatchExclude_mismatchKey()
1085 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_noMatchExclude_mismatchValue()
[all …]
DModuleSplitterTest.java23 import com.android.tradefed.config.Configuration;
59 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_configNotShardable()
95 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_configNotStrictShardable_dynamic()
130 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_configNotStrictShardable_notDynamic()
161 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_noIntraModuleSharding()
194 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_testNotShardable()
234 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_testShardable_didNotShard()
267 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_testShardable_shard()
296 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_testShardable_shard_noDynamic()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardHelper.java20 import com.android.tradefed.config.Configuration;
68 CONFIG_OBJ_TO_CLONE.add(Configuration.SYSTEM_STATUS_CHECKER_TYPE_NAME);
69 CONFIG_OBJ_TO_CLONE.add(Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME);
73 CONFIG_OBJ_TO_CLONE.add(Configuration.BUILD_PROVIDER_TYPE_NAME);
74 CONFIG_OBJ_TO_CLONE.add(Configuration.TARGET_PREPARER_TYPE_NAME);
75 CONFIG_OBJ_TO_CLONE.add(Configuration.DEVICE_RECOVERY_TYPE_NAME);
76 CONFIG_OBJ_TO_CLONE.add(Configuration.DEVICE_OPTIONS_TYPE_NAME);
78 CONFIG_OBJ_TO_CLONE.add(Configuration.MULTI_PREPARER_TYPE_NAME);
79 CONFIG_OBJ_TO_CLONE.add(Configuration.CMD_OPTIONS_TYPE_NAME);
80 CONFIG_OBJ_TO_CLONE.add(Configuration.LOGGER_TYPE_NAME);
[all …]
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DValidateSuiteConfigHelper.java19 import com.android.tradefed.config.Configuration;
65 Configuration.BUILD_PROVIDER_TYPE_NAME)); in validateConfig()
79 Configuration.BUILD_PROVIDER_TYPE_NAME)); in validateConfig()
88 Configuration.RESULT_REPORTER_TYPE_NAME)); in validateConfig()
98 Configuration.RESULT_REPORTER_TYPE_NAME)); in validateConfig()
106 Configuration.MULTI_PRE_TARGET_PREPARER_TYPE_NAME)); in validateConfig()
120 Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME, in validateConfig()
130 Configuration.METRIC_POST_PROCESSOR_TYPE_NAME)); in validateConfig()
158 Configuration.TARGET_PREPARER_TYPE_NAME, in checkTargetPrep()
159 Configuration.MULTI_PREPARER_TYPE_NAME)); in checkTargetPrep()
/tools/tradefederation/core/src/com/android/tradefed/config/
DDeviceConfigurationHolder.java104 if (Configuration.BUILD_PROVIDER_TYPE_NAME.equals(type)) { in removeObjectType()
106 } else if (Configuration.TARGET_PREPARER_TYPE_NAME.equals(type)) { in removeObjectType()
108 } else if (Configuration.DEVICE_RECOVERY_TYPE_NAME.equals(type)) { in removeObjectType()
110 } else if (Configuration.DEVICE_REQUIREMENTS_TYPE_NAME.equals(type)) { in removeObjectType()
112 } else if (Configuration.DEVICE_OPTIONS_TYPE_NAME.equals(type)) { in removeObjectType()
148 case Configuration.BUILD_PROVIDER_TYPE_NAME: in getAllObjectOfType()
150 case Configuration.TARGET_PREPARER_TYPE_NAME: in getAllObjectOfType()
152 case Configuration.DEVICE_RECOVERY_TYPE_NAME: in getAllObjectOfType()
154 case Configuration.DEVICE_REQUIREMENTS_TYPE_NAME: in getAllObjectOfType()
156 case Configuration.DEVICE_OPTIONS_TYPE_NAME: in getAllObjectOfType()
DConfiguration.java76 public class Configuration implements IConfiguration { class
223 public Configuration(String name, String description) { in Configuration() method in Configuration
708 public Configuration clone() { in clone()
709 Configuration clone = new Configuration(getName(), getDescription()); in clone()
731 Configuration clonedConfig = this.clone(); in partialDeepClone()
733 if (objectToDeepClone.contains(Configuration.DEVICE_NAME)) { in partialDeepClone()
734 objToDeepClone.remove(Configuration.DEVICE_NAME); in partialDeepClone()
1348 serializer.startTag(null, Configuration.DEVICE_NAME); in dumpXml()
1390 serializer.endTag(null, Configuration.DEVICE_NAME); in dumpXml()
DConfigurationDef.java202 IConfiguration config = new Configuration(getName(), getDescription()); in createConfiguration()
305 if (Configuration.doesBuiltInObjSupportMultiDevice(entryName)) { in createConfiguration()
345 config.setConfigurationObjectList(Configuration.DEVICE_NAME, deviceObjectList); in createConfiguration()
501 if (Configuration.RESULT_REPORTER_TYPE_NAME.equals(objectTypeName) in checkObjectValid()
507 Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME, in checkObjectValid()
508 Configuration.RESULT_REPORTER_TYPE_NAME)); in checkObjectValid()
DConfigurationXmlParser.java116 Configuration.isBuiltInObjType(objectTypeName)) { in startElement()
145 } else if (Configuration.isBuiltInObjType(localName)) { in startElement()
164 Configuration.doesBuiltInObjSupportMultiDevice(localName)) { in startElement()
171 if (!Configuration.doesBuiltInObjSupportMultiDevice(localName)) { in startElement()
291 if (OBJECT_TAG.equals(localName) || Configuration.isBuiltInObjType(localName) in endElement()
305 if (Configuration.DEVICE_NAME.equals(objectTypeName)) { in addObject()
DSandboxConfigurationFactory.java54 OPTION_IGNORED_ELEMENTS.add(Configuration.DEVICE_REQUIREMENTS_TYPE_NAME);
55 OPTION_IGNORED_ELEMENTS.add(Configuration.DEVICE_OPTIONS_TYPE_NAME);
56 OPTION_IGNORED_ELEMENTS.add(Configuration.DEVICE_RECOVERY_TYPE_NAME);
57 OPTION_IGNORED_ELEMENTS.add(Configuration.CMD_OPTIONS_TYPE_NAME);
135 config.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, sandbox); in createConfigurationFromArgs()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigDump.java19 import com.android.tradefed.config.Configuration;
69 VERSIONED_ELEMENTS.add(Configuration.SYSTEM_STATUS_CHECKER_TYPE_NAME);
70 VERSIONED_ELEMENTS.add(Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME);
71 VERSIONED_ELEMENTS.add(Configuration.MULTI_PRE_TARGET_PREPARER_TYPE_NAME);
72 VERSIONED_ELEMENTS.add(Configuration.MULTI_PREPARER_TYPE_NAME);
73 VERSIONED_ELEMENTS.add(Configuration.TARGET_PREPARER_TYPE_NAME);
74 VERSIONED_ELEMENTS.add(Configuration.TEST_TYPE_NAME);
168 config.getConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME); in getSandboxOptions()
/tools/tradefederation/core/src/com/android/tradefed/config/yaml/
DConfigurationYamlParser.java19 import com.android.tradefed.config.Configuration;
75 Configuration.CMD_OPTIONS_TYPE_NAME); in parse()
140 def.addConfigObjectDef(Configuration.TARGET_PREPARER_TYPE_NAME, className); in convertDependenciesToObjects()
155 Configuration.TARGET_PREPARER_TYPE_NAME); in convertDependenciesToObjects()
164 def.addConfigObjectDef(Configuration.TARGET_PREPARER_TYPE_NAME, className); in convertDependenciesToObjects()
179 Configuration.TARGET_PREPARER_TYPE_NAME); in convertDependenciesToObjects()
193 int classCount = def.addConfigObjectDef(Configuration.TEST_TYPE_NAME, className); in convertTestsToObjects()
208 Configuration.TEST_TYPE_NAME); in convertTestsToObjects()
DOpenObjectLoader.java19 import com.android.tradefed.config.Configuration;
37 .addConfigObjectDef(Configuration.LOGGER_TYPE_NAME, FileLogger.class.getName()); in addDefaultObjects()
42 Configuration.RESULT_REPORTER_TYPE_NAME, in addDefaultObjects()
49 Configuration.BUILD_PROVIDER_TYPE_NAME, in addDefaultObjects()
68 Configuration.BUILD_PROVIDER_TYPE_NAME); in addDefaultObjects()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DSandboxedInvocationExecutionTest.java31 import com.android.tradefed.config.Configuration;
127 mConfig = new Configuration("test", "test"); in setUp()
150 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testSandboxInvocation()
218 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testParentSandboxInvocation_sharding()
219 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testParentSandboxInvocation_sharding()
245 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testParentSandboxInvocation()
249 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testParentSandboxInvocation()
305 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testInvocation_sharding_notTests()
368 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testInvocation_preInvocationFailing()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecutionTest.java31 import com.android.tradefed.config.Configuration;
116 mConfig = new Configuration("test", "test"); in setUp()
132 mConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, mOptions); in testParentConfig()
136 IConfiguration configParent = new Configuration("test1", "test1"); in testParentConfig()
154 mConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, mOptions); in testParentConfig_errorStage()
158 IConfiguration configParent = new Configuration("test1", "test1"); in testParentConfig_errorStage()
181 mConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, mOptions); in testParentConfig_exception()
/tools/tradefederation/core/tests/src/com/android/tradefed/sandbox/
DTradefedSandboxTest.java25 import com.android.tradefed.config.Configuration;
75 EasyMock.expect(mMockConfig.getConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME)) in setUp()
264 mMockConfig = new Configuration("NAME", "DESC"); in testSandboxOptions()
269 mMockConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, options); in testSandboxOptions()
290 mMockConfig = new Configuration("NAME", "DESC"); in testSandboxOptions_exclusion()
296 mMockConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, options); in testSandboxOptions_exclusion()
DSandboxInvocationRunnerTest.java21 import com.android.tradefed.config.Configuration;
47 mConfig = new Configuration("name", "description"); in setUp()
57 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testPrepareAndRun()
72 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testPrepareAndRun_prepFailure()
/tools/tradefederation/core/tests/src/com/android/tradefed/log/
DFileLoggerTest.java24 import com.android.tradefed.config.Configuration;
166 IConfiguration config = new Configuration("test", "test"); in testFilteringComponent()
190 IConfiguration config = new Configuration("test", "test"); in testFiltering_classVerbosity()
210 IConfiguration config = new Configuration("test", "test"); in testFiltering_ddms()
234 IConfiguration config = new Configuration("test", "test"); in testFiltering_ddms_log()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandConfigBuilder.java19 import com.android.tradefed.config.Configuration;
113 return Configuration.TARGET_PREPARER_TYPE_NAME; in getConfigObjectTypeName()
115 return Configuration.RESULT_REPORTER_TYPE_NAME; in getConfigObjectTypeName()
160 return new Configuration("Cluster Command " + mCommand.getCommandId(), ""); in initConfiguration()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DInstrumentationSerialTestTest.java22 import com.android.tradefed.config.Configuration;
85 mockITest.setConfiguration(new Configuration("", "")); in testRun()
132 mockITest.setConfiguration(new Configuration("", "")); in testRun_runFailure()
205 mockITest.setConfiguration(new Configuration("", "")); in testRun_package()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DShardHelperTest.java26 import com.android.tradefed.config.Configuration;
103 mConfig = new Configuration("fake_sharding_config", "desc"); in setUp()
226 File configFile = createTmpConfig(Configuration.SYSTEM_STATUS_CHECKER_TYPE_NAME, checker); in testCloneStatusChecker()
273 createTmpConfig(Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME, collector); in testCloneMetricCollector()

1234