Home
last modified time | relevance | path

Searched refs:ConfigurationDef (Results 1 – 25 of 50) sorted by relevance

12

/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationXmlParserTest.java60 ConfigurationDef configDef = new ConfigurationDef(configName); in testParse()
82 ConfigurationDef configDef = new ConfigurationDef(configName); in testParse_interleaved()
105 ConfigurationDef configDef = new ConfigurationDef(configName); in testParse_globalOption()
130 ConfigurationDef configDef = new ConfigurationDef(configName); in testParse_multiple()
155 xmlParser.parse(new ConfigurationDef("foo"), "foo", getStringAsStream(config), null); in testParse_objectMissingAttr()
168 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_optionMissingAttr()
180 ConfigurationDef configDef = new ConfigurationDef("name"); in testParse_object()
191 ConfigurationDef configDef = new ConfigurationDef("foo"); in testParse_include()
208 ConfigurationDef parent = new ConfigurationDef("name"); in testParse_includeMissing()
233 xmlParser.parse(new ConfigurationDef("name"), "name", getStringAsStream(config), null); in testParse_badTag()
[all …]
DConfigurationFactoryTest.java23 import com.android.tradefed.config.ConfigurationDef.ConfigObjectDef;
109 for (Entry<ConfigId, ConfigurationDef> entry : spyFactory.getMapConfig().entrySet()) { in testLoadAllConfigs()
116 ConfigurationDef cDef = entry.getValue(); in testLoadAllConfigs()
737 ConfigurationDef test = mFactory.new ConfigLoader(false) in testTopDescriptionIsPreserved()
1289 assertNotNull(config.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME)); in testCreateConfigurationFromArgs_old_config_with_deviceHolder()
1290 assertEquals("20", config.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME) in testCreateConfigurationFromArgs_old_config_with_deviceHolder()
1292 assertEquals("stub", config.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME) in testCreateConfigurationFromArgs_old_config_with_deviceHolder()
1294 assertEquals(1, config.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME) in testCreateConfigurationFromArgs_old_config_with_deviceHolder()
1301 config.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME) in testCreateConfigurationFromArgs_old_config_with_deviceHolder()
1702 ConfigurationDef.DEFAULT_DEVICE_NAME, in testCreateConfiguration_singleDeviceConfig_withFake()
[all …]
DConfigurationDefTest.java63 private ConfigurationDef mConfigDef;
67 mConfigDef = new ConfigurationDef(CONFIG_NAME); in setUp()
109 mConfigDef = new ConfigurationDef(CONFIG_NAME); in testCreateConfiguration_withDeviceHolder()
128 mConfigDef = new ConfigurationDef(CONFIG_NAME); in testCreateConfiguration_withCollectors()
142 mConfigDef = new ConfigurationDef(CONFIG_NAME); in testCreateConfiguration_withCollectors_asReporter()
DConfigurationTest.java748 original.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME), in testDeepClone()
749 copy.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME)); in testDeepClone()
771 original.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME), in testDeepClone_innerDevice()
772 copy.getDeviceConfigByName(ConfigurationDef.DEFAULT_DEVICE_NAME)); in testDeepClone_innerDevice()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationFactory.java71 private Map<ConfigId, ConfigurationDef> mConfigDefMap;
184 private static class ConfigDefComparator implements Comparator<ConfigurationDef> {
190 public int compare(ConfigurationDef d1, ConfigurationDef d2) { in compare()
266 public ConfigurationDef getConfigurationDef(String name, Map<String, String> templateMap) in getConfigurationDef()
271 ConfigurationDef def = mConfigDefMap.get(configId); in getConfigurationDef()
274 def = new ConfigurationDef(configName); in getConfigurationDef()
372 ConfigurationDef def, in loadIncludedConfiguration()
408 ConfigurationDef def, in loadConfiguration()
440 protected void trackConfig(String name, ConfigurationDef def) { in trackConfig()
468 mConfigDefMap = new Hashtable<ConfigId, ConfigurationDef>(); in ConfigurationFactory()
[all …]
DConfigurationXmlParser.java66 private final ConfigurationDef mConfigDef;
82 ConfigurationDef def, in ConfigHandler()
132 if (deviceName.equals(ConfigurationDef.DEFAULT_DEVICE_NAME)) { in startElement()
135 ConfigurationDef.DEFAULT_DEVICE_NAME))); in startElement()
375 ConfigurationDef configDef, in parse()
397 ConfigurationDef configDef, in parse()
444 ConfigHandler configHandler, ConfigurationDef configDef) throws SAXException { in checkValidMultiConfiguration()
DSandboxConfigurationFactory.java70 protected ConfigurationDef getConfigurationDef( in getConfigurationDef()
75 ConfigurationDef def = createConfigurationDef(name); in getConfigurationDef()
81 protected ConfigurationDef createConfigurationDef(String name) { in createConfigurationDef()
82 return new ConfigurationDef(name); in createConfigurationDef()
199 protected ConfigurationDef createConfigurationDef(String name) { in createConfigurationDef()
200 return new ConfigurationDef(name) { in createConfigurationDef()
DIConfigDefLoader.java35 ConfigurationDef getConfigurationDef(String name, Map<String, String> templateMap) in getConfigurationDef()
52 ConfigurationDef def, in loadIncludedConfiguration()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteIntegrationTest.java27 import com.android.tradefed.config.ConfigurationDef;
168 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
169 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp()
524 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_sharding_firstModuleRunsAll()
525 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in testRun_sharding_firstModuleRunsAll()
566 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_sharding_parallelRun()
567 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in testRun_sharding_parallelRun()
615 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_sharding_withIndex()
616 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in testRun_sharding_withIndex()
695 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in helperTestShardIndex()
[all …]
DTestMappingSuiteRunnerTest.java23 import com.android.tradefed.config.ConfigurationDef;
121 context.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
122 context.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp()
507 .addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mockBuildInfo); in testLoadTests_shard()
553 .addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mockBuildInfo); in testLoadTests_shardNoTest()
861 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mockBuildInfo); in testLoadTests_moduleDifferentoptions()
912 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mockBuildInfo); in testLoadTestsForMainline()
DTfSuiteRunnerTest.java28 import com.android.tradefed.config.ConfigurationDef;
89 context.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, null); in setUp()
90 context.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp()
233 context.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mock(ITestDevice.class)); in testLoadTests_suite()
DITestSuiteTest.java32 import com.android.tradefed.config.ConfigurationDef;
314 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
315 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuildInfo); in setUp()
433 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun()
460 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_whiteListPreparer()
1462 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_withModuleListener()
1587 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testRun_GranularRerunwithModuleListener()
DModuleMergerTest.java24 import com.android.tradefed.config.ConfigurationDef;
48 context.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, null); in setUp()
49 context.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp()
DBaseTestSuiteTest.java29 import com.android.tradefed.config.ConfigurationDef;
80 context.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
81 context.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/config/yaml/
DConfigurationYamlParser.java20 import com.android.tradefed.config.ConfigurationDef;
60 ConfigurationDef configDef, in parse()
85 ConfigurationDef configDef, Map<String, Object> yamlObjects) in translateYamlInTradefed()
134 ConfigurationDef def, YamlTestDependencies testDeps) { in convertDependenciesToObjects()
188 private void convertTestsToObjects(ConfigurationDef def, YamlTestRunners tests) { in convertTestsToObjects()
DIDefaultObjectLoader.java18 import com.android.tradefed.config.ConfigurationDef;
35 private ConfigurationDef mConfigDef;
39 public LoaderConfiguration setConfigurationDef(ConfigurationDef configDef) { in setConfigurationDef()
59 public ConfigurationDef getConfigDef() { in getConfigDef()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/proto/
DProtoResultParserTest.java24 import com.android.tradefed.config.ConfigurationDef;
133 ConfigurationDef.DEFAULT_DEVICE_NAME, EasyMock.createMock(ITestDevice.class)); in setUp()
135 ConfigurationDef.DEFAULT_DEVICE_NAME, EasyMock.createMock(ITestDevice.class)); in setUp()
136 mInvocationContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, info); in setUp()
138 ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp()
720 ConfigurationDef.DEFAULT_DEVICE_NAME, mInvocationContext.getBuildInfos().get(0)); in createModuleContext()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/sandbox/
DParentSandboxInvocationExecutionTest.java32 import com.android.tradefed.config.ConfigurationDef;
113 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
114 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp()
226 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in testParentSandbox_NotTestMode()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DSandboxedInvocationExecutionTest.java32 import com.android.tradefed.config.ConfigurationDef;
130 mContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
131 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp()
409 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, info); in testBackFill()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/shard/
DStrictShardHelperTest.java28 import com.android.tradefed.config.ConfigurationDef;
88 ConfigurationDef.DEFAULT_DEVICE_NAME, Mockito.mock(ITestDevice.class)); in setUp()
89 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, new BuildInfo()); in setUp()
108 new DeviceConfigurationHolder(ConfigurationDef.DEFAULT_DEVICE_NAME); in testShardConfig_internal()
DShardHelperTest.java27 import com.android.tradefed.config.ConfigurationDef;
106 mContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mBuildInfo); in setUp()
108 ConfigurationDef.DEFAULT_DEVICE_NAME, Mockito.mock(ITestDevice.class)); in setUp()
/tools/tradefederation/core/global_configuration/com/android/tradefed/config/gcs/
DGCSConfigurationFactory.java19 import com.android.tradefed.config.ConfigurationDef;
103 protected ConfigurationDef getConfigurationDef( in getConfigurationDef()
151 protected void trackConfig(String name, ConfigurationDef def) { in trackConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/yaml/
DConfigurationYamlParserTest.java25 import com.android.tradefed.config.ConfigurationDef;
50 private ConfigurationDef mConfigDef;
55 mConfigDef = new ConfigurationDef("test"); in setUp()
/tools/tradefederation/core/tests/src/com/android/tradefed/config/gcs/
DGCSConfigurationFactoryTest.java19 import com.android.tradefed.config.ConfigurationDef;
135 ConfigurationDef def = in testGetConfigurationDef()
142 ConfigurationDef def = in testGetConfigurationDef_include()
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/junit4/
DBaseHostJUnit4TestTest.java27 import com.android.tradefed.config.ConfigurationDef;
139 mMockContext.addAllocatedDevice(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockDevice); in setUp()
140 mMockContext.addDeviceBuildInfo(ConfigurationDef.DEFAULT_DEVICE_NAME, mMockBuild); in setUp()

12