Home
last modified time | relevance | path

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

123

/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DValidateSuiteConfigHelperTest.java25 import com.android.tradefed.config.Configuration;
60 IConfiguration config = new Configuration("test", "test description"); in testCanRunAsSuite()
67 IConfiguration config = new Configuration("test", "test description"); in testNotRunningAsSuite_buildProvider()
75 assertTrue(expected.getMessage().contains(Configuration.BUILD_PROVIDER_TYPE_NAME)); in testNotRunningAsSuite_buildProvider()
85 IConfiguration config = new Configuration("test", "test description"); in testNotRunningAsSuite_MultiDevice_buildProvider()
95 assertTrue(expected.getMessage().contains(Configuration.BUILD_PROVIDER_TYPE_NAME)); in testNotRunningAsSuite_MultiDevice_buildProvider()
105 IConfiguration config = new Configuration("test", "test description"); in testParse_MultiDevice()
123 IConfiguration config = new Configuration("test", "test description"); in testNotRunningAsSuite_resultReporter()
129 assertTrue(expected.getMessage().contains(Configuration.RESULT_REPORTER_TYPE_NAME)); in testNotRunningAsSuite_resultReporter()
136 IConfiguration config = new Configuration("test", "test description"); in testNotRunningAsSuite_multi_resultReporter()
[all …]
DModuleSplitterTest.java22 import com.android.tradefed.config.Configuration;
54 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_configNotShardable()
85 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_configNotStrictShardable_dynamic()
116 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_configNotStrictShardable_notDynamic()
143 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_noIntraModuleSharding()
172 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_testNotShardable()
207 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_testShardable_didNotShard()
234 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_testShardable_shard()
260 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_testShardable_shard_noDynamic()
DITestSuiteTest.java26 import com.android.tradefed.config.Configuration;
274 mStubMainConfiguration = new Configuration("stub", "stub"); in setUp()
696 testConfig.put("NOT_RUN", new Configuration("test", "test")); in testRun_deviceUnavailable()
968 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_emptyFilters()
977 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_matchInclude()
992 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_noMatchInclude_mismatchValue()
1007 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_noMatchInclude_mismatchKey()
1022 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_matchExclude()
1037 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_noMatchExclude_mismatchKey()
1052 IConfiguration config = new Configuration("foo", "bar"); in testMetadataFilter_noMatchExclude_mismatchValue()
[all …]
DModuleDefinitionTest.java25 import com.android.tradefed.config.Configuration;
291 new Configuration("", "")); in setUp()
400 new Configuration("", "")); in testRun_aggregateRunFailures()
460 Configuration config = new Configuration("", ""); in testParseTokens()
554 new Configuration("", "")); in testRun_failPreparation()
591 new Configuration("", "")); in testRun_failPreparation_runtime()
625 new Configuration("", "")); in testRun_failPreparation_error()
665 new Configuration("", "")); in testRun_failPreparation_moduleListener()
707 new Configuration("", "")); in testRun_failPreparation_unresponsive()
743 new Configuration("", "")); in testRun_fullPass()
[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()
150 Configuration.TARGET_PREPARER_TYPE_NAME, in checkTargetPrep()
151 Configuration.MULTI_PREPARER_TYPE_NAME)); in checkTargetPrep()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxConfigDump.java19 import com.android.tradefed.config.Configuration;
66 VERSIONED_ELEMENTS.add(Configuration.SYSTEM_STATUS_CHECKER_TYPE_NAME);
67 VERSIONED_ELEMENTS.add(Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME);
68 VERSIONED_ELEMENTS.add(Configuration.MULTI_PRE_TARGET_PREPARER_TYPE_NAME);
69 VERSIONED_ELEMENTS.add(Configuration.MULTI_PREPARER_TYPE_NAME);
70 VERSIONED_ELEMENTS.add(Configuration.TARGET_PREPARER_TYPE_NAME);
71 VERSIONED_ELEMENTS.add(Configuration.TEST_TYPE_NAME);
152 config.getConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME); in getSandboxOptions()
DSandboxInvocationRunner.java18 import com.android.tradefed.config.Configuration;
45 (ISandbox) config.getConfigurationObject(Configuration.SANDBOX_TYPE_NAME); in prepareAndRun()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationTest.java92 private Configuration mConfig;
100 mConfig = new Configuration(CONFIG_NAME, CONFIG_DESCRIPTION); in setUp()
140 mConfig.getConfigurationObject(Configuration.TEST_TYPE_NAME); in testGetConfigurationObject_typeIsList()
171 mConfig.setConfigurationObject(Configuration.TEST_TYPE_NAME, new TestConfigObject()); in testSetConfigurationObject_wrongtype()
195 mConfig.setConfigurationObjectList(Configuration.TEST_TYPE_NAME, myList); in testSetConfigurationObjectList_wrongtype()
491 Configuration.isBuiltInObjType(name)); in testGetJsonCommandUsage()
581 mConfig.setConfigurationObject(Configuration.CMD_OPTIONS_TYPE_NAME, option); in testValidateOptionsShardException()
601 mConfig.setConfigurationObject(Configuration.CMD_OPTIONS_TYPE_NAME, option); in testValidateOptionsShardIndexException()
625 mConfig.setConfigurationObject(Configuration.CMD_OPTIONS_TYPE_NAME, option); in testValidateOptionsShardIndexAboveShardCount()
682 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.java120 assertNotNull(config.getConfigurationObject(Configuration.SANDBOX_TYPE_NAME)); in testCreateConfigurationFromArgs()
121 assertEquals(mFakeSandbox, config.getConfigurationObject(Configuration.SANDBOX_TYPE_NAME)); in testCreateConfigurationFromArgs()
159 IConfiguration originalConfig = new Configuration("name", "description"); in testCreateConfiguration_runConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DSandboxedInvocationExecutionTest.java28 import com.android.tradefed.config.Configuration;
116 mConfig = new Configuration("test", "test"); in setUp()
135 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testSandboxInvocation()
202 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testParentSandboxInvocation_sharding()
203 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testParentSandboxInvocation_sharding()
229 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testParentSandboxInvocation()
233 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testParentSandboxInvocation()
288 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testInvocation_sharding_notTests()
351 Configuration.CONFIGURATION_DESCRIPTION_TYPE_NAME, descriptor); in testInvocation_preInvocationFailing()
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/
DShardHelper.java19 import com.android.tradefed.config.Configuration;
62 CONFIG_OBJ_TO_CLONE.add(Configuration.SYSTEM_STATUS_CHECKER_TYPE_NAME);
63 CONFIG_OBJ_TO_CLONE.add(Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME);
64 CONFIG_OBJ_TO_CLONE.add(Configuration.TARGET_PREPARER_TYPE_NAME);
65 CONFIG_OBJ_TO_CLONE.add(Configuration.MULTI_PREPARER_TYPE_NAME);
66 CONFIG_OBJ_TO_CLONE.add(Configuration.CMD_OPTIONS_TYPE_NAME);
67 CONFIG_OBJ_TO_CLONE.add(Configuration.LOGGER_TYPE_NAME);
69 CONFIG_OBJ_TO_CLONE.add(Configuration.LOG_SAVER_TYPE_NAME);
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecutionTest.java30 import com.android.tradefed.config.Configuration;
84 mConfig = new Configuration("test", "test"); in setUp()
100 mConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, mOptions); in testParentConfig()
104 IConfiguration configParent = new Configuration("test1", "test1"); in testParentConfig()
122 mConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, mOptions); in testParentConfig_errorStage()
126 IConfiguration configParent = new Configuration("test1", "test1"); in testParentConfig_errorStage()
149 mConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, mOptions); in testParentConfig_exception()
/tools/tradefederation/core/src/com/android/tradefed/config/
DDeviceConfigurationHolder.java130 case Configuration.BUILD_PROVIDER_TYPE_NAME: in getAllObjectOfType()
132 case Configuration.TARGET_PREPARER_TYPE_NAME: in getAllObjectOfType()
134 case Configuration.DEVICE_RECOVERY_TYPE_NAME: in getAllObjectOfType()
136 case Configuration.DEVICE_REQUIREMENTS_TYPE_NAME: in getAllObjectOfType()
138 case Configuration.DEVICE_OPTIONS_TYPE_NAME: in getAllObjectOfType()
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()
DConfigurationDef.java221 IConfiguration config = new Configuration(getName(), getDescription()); in createConfiguration()
319 if (Configuration.doesBuiltInObjSupportMultiDevice(entryName)) { in createConfiguration()
359 config.setConfigurationObjectList(Configuration.DEVICE_NAME, deviceObjectList); in createConfiguration()
509 if (Configuration.RESULT_REPORTER_TYPE_NAME.equals(objectTypeName) in checkObjectValid()
515 Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME, in checkObjectValid()
516 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()
DConfiguration.java77 public class Configuration implements IConfiguration { class
224 public Configuration(String name, String description) { in Configuration() method in Configuration
679 public Configuration clone() { in clone()
680 Configuration clone = new Configuration(getName(), getDescription()); in clone()
1358 serializer.startTag(null, Configuration.DEVICE_NAME); in dumpXml()
1395 serializer.endTag(null, Configuration.DEVICE_NAME); in dumpXml()
/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()
222 mMockConfig = new Configuration("NAME", "DESC"); in testSandboxOptions()
227 mMockConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, options); in testSandboxOptions()
248 mMockConfig = new Configuration("NAME", "DESC"); in testSandboxOptions_exclusion()
254 mMockConfig.setConfigurationObject(Configuration.SANBOX_OPTIONS_TYPE_NAME, options); in testSandboxOptions_exclusion()
DSandboxInvocationRunnerTest.java21 import com.android.tradefed.config.Configuration;
46 mConfig = new Configuration("name", "description"); in setUp()
55 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testPrepareAndRun()
69 mConfig.setConfigurationObject(Configuration.SANDBOX_TYPE_NAME, mMockSandbox); in testPrepareAndRun_prepFailure()
DSandboxedInvocationExecutionTest.java22 import com.android.tradefed.config.Configuration;
46 mConfig = new Configuration("name", "desc"); in setUp()
/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/tests/src/com/android/tradefed/invoker/shard/
DShardHelperTest.java28 import com.android.tradefed.config.Configuration;
103 mConfig = new Configuration("fake_sharding_config", "desc"); in setUp()
225 File configFile = createTmpConfig(Configuration.SYSTEM_STATUS_CHECKER_TYPE_NAME, checker); in testCloneStatusChecker()
272 createTmpConfig(Configuration.DEVICE_METRICS_COLLECTOR_TYPE_NAME, collector); in testCloneMetricCollector()
/tools/tradefederation/core/tests/src/com/android/tradefed/guice/
DInvocationScopeTest.java20 import com.android.tradefed.config.Configuration;
67 mConfiguration = new Configuration("test", "test"); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/targetprep/app/
DNoApkTestSkipperTest.java24 import com.android.tradefed.config.Configuration;
51 mConfig = new Configuration("name", "desc"); in setUp()

123