/tools/test/connectivity/acts/framework/acts/controllers/ |
D | cellular_simulator.py | 60 def configure_bts(self, config, bts_index=0): argument 70 if config.output_power: 71 self.set_output_power(bts_index, config.output_power) 73 if config.input_power: 74 self.set_input_power(bts_index, config.input_power) 76 if isinstance(config, sims.LteSimulation.LteSimulation.BtsConfig): 77 self.configure_lte_bts(config, bts_index) 79 def configure_lte_bts(self, config, bts_index=0): argument 87 if config.band: 88 self.set_band(bts_index, config.band) [all …]
|
D | monsoon.py | 41 for config in configs: 43 if isinstance(config, dict): 44 if isinstance(config.get('type', None), str): 45 if 'lvpm' in config['type'].lower(): 47 elif 'hvpm' in config['type'].lower(): 51 'config %s' % (config['type'], config)) 52 if 'serial' not in config: 54 serial_number = int(config.get('serial')) 56 serial_number = int(config)
|
/tools/test/connectivity/acts/tests/google/wifi/ |
D | WifiEnterpriseTest.py | 174 def eap_negative_connect_logic(self, config, ad): argument 184 with asserts.assert_raises(signals.TestFailure, extras=config): 185 verdict = wutils.wifi_connect(ad, config) 188 def gen_negative_configs(self, config, neg_params): argument 204 negative_config = dict(config) 211 if config[Ent.EAP] == EAP.TLS and k == Ent.IDENTITY: 213 if k in config: 218 def gen_negative_eap_configs(self, config): argument 239 return self.gen_negative_configs(config, neg_params) 241 def gen_negative_passpoint_configs(self, config): argument [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/ |
D | ValidateSuiteConfigHelper.java | 19 import com.android.tradefed.config.Configuration; 20 import com.android.tradefed.config.IConfiguration; 21 import com.android.tradefed.config.IDeviceConfiguration; 57 public static void validateConfig(IConfiguration config) { in validateConfig() argument 58 if (config.getDeviceConfig().size() < 2) { in validateConfig() 60 if (!config.getBuildProvider().getClass().isAssignableFrom(StubBuildProvider.class)) { in validateConfig() 62 config, in validateConfig() 67 checkTargetPrep(config, config.getTargetPreparers()); in validateConfig() 70 for (IDeviceConfiguration deviceConfig : config.getDeviceConfig()) { in validateConfig() 76 config, in validateConfig() [all …]
|
D | ModuleSplitter.java | 18 import com.android.tradefed.config.Configuration; 19 import com.android.tradefed.config.ConfigurationException; 20 import com.android.tradefed.config.IConfiguration; 21 import com.android.tradefed.config.IDeviceConfiguration; 22 import com.android.tradefed.config.OptionCopier; 109 IConfiguration config, in createAndAddModule() argument 113 List<IRemoteTest> tests = config.getTests(); in createAndAddModule() 116 config.setTests(new ArrayList<>()); in createAndAddModule() 120 || config.getConfigurationDescription().isNotShardable() in createAndAddModule() 122 && config.getConfigurationDescription().isNotStrictShardable())) { in createAndAddModule() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/ |
D | ModuleSplitterTest.java | 23 import com.android.tradefed.config.Configuration; 24 import com.android.tradefed.config.ConfigurationDef; 25 import com.android.tradefed.config.IConfiguration; 26 import com.android.tradefed.config.OptionSetter; 59 IConfiguration config = new Configuration("fakeConfig", "desc"); in testSplitModule_configNotShardable() local 60 config.setTargetPreparer(new StubTargetPreparer()); in testSplitModule_configNotShardable() 61 List<ITargetPreparer> initialPreparers = new ArrayList<>(config.getTargetPreparers()); in testSplitModule_configNotShardable() 66 config.setTest(test); in testSplitModule_configNotShardable() 68 OptionSetter setter = new OptionSetter(config.getConfigurationDescription()); in testSplitModule_configNotShardable() 70 runConfig.put("module1", config); in testSplitModule_configNotShardable() [all …]
|
D | ValidateSuiteConfigHelperTest.java | 24 import com.android.tradefed.config.Configuration; 25 import com.android.tradefed.config.DeviceConfigurationHolder; 26 import com.android.tradefed.config.IConfiguration; 27 import com.android.tradefed.config.IDeviceConfiguration; 52 IConfiguration config = new Configuration("test", "test description"); in testCanRunAsSuite() local 53 ValidateSuiteConfigHelper.validateConfig(config); in testCanRunAsSuite() 59 IConfiguration config = new Configuration("test", "test description"); in testNotRunningAsSuite_buildProvider() local 62 config.setBuildProvider(new LocalFolderBuildProvider()); in testNotRunningAsSuite_buildProvider() 64 ValidateSuiteConfigHelper.validateConfig(config); in testNotRunningAsSuite_buildProvider() 77 IConfiguration config = new Configuration("test", "test description"); in testNotRunningAsSuite_MultiDevice_buildProvider() local [all …]
|
D | ITestSuiteIntegrationTest.java | 26 import com.android.tradefed.config.Configuration; 27 import com.android.tradefed.config.ConfigurationDef; 28 import com.android.tradefed.config.ConfigurationException; 29 import com.android.tradefed.config.ConfigurationFactory; 30 import com.android.tradefed.config.GlobalConfiguration; 31 import com.android.tradefed.config.IConfiguration; 32 import com.android.tradefed.config.OptionSetter; 132 File config = new File(testsDir, String.format(FILENAME, name)); in createConfig() local 133 FileUtil.deleteFile(config); in createConfig() 134 if (!config.createNewFile()) { in createConfig() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/ |
D | ConfigurationFactoryTest.java | 16 package com.android.tradefed.config; 20 import com.android.tradefed.config.ConfigurationDef.ConfigObjectDef; 21 import com.android.tradefed.config.ConfigurationFactory.ConfigId; 300 IConfiguration config = mFactory.createConfigurationFromArgs(new String[] {name}); in assertConfigValid() local 301 assertNotNull(config); in assertConfigValid() 309 IGlobalConfiguration config = in assertGlobalConfigValid() local 311 assertNotNull(config); in assertGlobalConfigValid() 312 assertNotNull(config.getDeviceMonitors()); in assertGlobalConfigValid() 313 assertNotNull(config.getWtfHandler()); in assertGlobalConfigValid() 359 IConfiguration config = mFactory.createConfigurationFromArgs(new String[] {TEST_CONFIG, in testCreateConfigurationFromArgs() local [all …]
|
/tools/asuite/aidegen/lib/ |
D | project_config_unittest.py | 64 config = project_config.ProjectConfig(args) 65 self.assertEqual(config.ide_name, constant.IDE_INTELLIJ) 66 self.assertFalse(config.is_launch_ide) 67 self.assertEqual(config.depth, 0) 68 self.assertFalse(config.full_repo) 69 self.assertTrue(config.is_skip_build) 70 self.assertEqual(config.targets, ['a']) 71 self.assertFalse(config.verbose) 72 self.assertEqual(config.ide_installed_path, None) 73 self.assertFalse(config.config_reset) [all …]
|
D | config_unittest.py | 28 from aidegen.lib import config 40 config.AidegenConfig._CONFIG_DIR = os.path.join( 42 config.AidegenConfig._CONFIG_FILE_PATH = os.path.join( 43 config.AidegenConfig._CONFIG_DIR, 44 config.AidegenConfig._DEFAULT_CONFIG_FILE) 45 config.AidegenConfig._ENABLE_DEBUG_DIR = os.path.join( 46 config.AidegenConfig._CONFIG_DIR, 47 config.AidegenConfig._ENABLE_DEBUG_CONFIG_DIR) 48 config.AidegenConfig.DEBUG_ENABLED_FILE_PATH = os.path.join( 49 config.AidegenConfig._CONFIG_DIR, [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/cluster/ |
D | ClusterCommandConfigBuilder.java | 18 import com.android.tradefed.config.ArgsOptionParser; 19 import com.android.tradefed.config.Configuration; 20 import com.android.tradefed.config.ConfigurationException; 21 import com.android.tradefed.config.DeviceConfigurationHolder; 22 import com.android.tradefed.config.IConfiguration; 23 import com.android.tradefed.config.IDeviceConfiguration; 174 IConfiguration config = initConfiguration(); in build() local 175 config.getCommandOptions().setTestTag(TEST_TAG); in build() 205 config.setDeviceConfigList(deviceConfigs); in build() 206 config.setTest(new ClusterCommandLauncher()); in build() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/sandbox/ |
D | SandboxConfigDump.java | 19 import com.android.tradefed.config.Configuration; 20 import com.android.tradefed.config.ConfigurationException; 21 import com.android.tradefed.config.GlobalConfiguration; 22 import com.android.tradefed.config.IConfiguration; 23 import com.android.tradefed.config.IDeviceConfiguration; 24 import com.android.tradefed.config.SandboxConfigurationFactory; 88 IConfiguration config = in parse() local 91 config.getCommandOptions().setShouldUseSandboxing(false); in parse() 92 config.getConfigurationDescription().setSandboxed(true); in parse() 94 config.getCommandOptions().setReplicateSetup(false); in parse() [all …]
|
/tools/test/connectivity/acts/framework/acts/libs/ota/ota_runners/ |
D | ota_runner_factory.py | 30 def create_all_from_configs(config, android_devices): argument 46 return [create_from_configs(config, ad) for ad in android_devices] 49 def create_from_configs(config, android_device): argument 66 config, 'ota_tool', android_device) 70 if ota_tool_class_name not in config: 80 command = config[ota_tool_class_name] 90 ota_package = get_ota_value_from_config(config, 'ota_package', 92 ota_sl4a = get_ota_value_from_config(config, 'ota_sl4a', android_device) 172 def get_ota_value_from_config(config, key, android_device): argument 184 if 'ota_map' in config: [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/shard/ |
D | ParentShardReplicate.java | 20 import com.android.tradefed.config.Configuration; 21 import com.android.tradefed.config.ConfigurationException; 22 import com.android.tradefed.config.IConfiguration; 23 import com.android.tradefed.config.IDeviceConfiguration; 39 public static void replicatedSetup(IConfiguration config, IKeyStoreClient client) { in replicatedSetup() argument 40 if (!config.getCommandOptions().shouldUseReplicateSetup()) { in replicatedSetup() 43 if (config.getDeviceConfig().size() != 1) { in replicatedSetup() 46 Integer shardCount = config.getCommandOptions().getShardCount(); in replicatedSetup() 47 Integer shardIndex = config.getCommandOptions().getShardIndex(); in replicatedSetup() 53 List<IDeviceConfiguration> currentConfigs = config.getDeviceConfig(); in replicatedSetup() [all …]
|
D | ShardHelper.java | 20 import com.android.tradefed.config.Configuration; 21 import com.android.tradefed.config.ConfigurationDescriptor; 22 import com.android.tradefed.config.ConfigurationException; 23 import com.android.tradefed.config.DynamicRemoteFileResolver; 24 import com.android.tradefed.config.GlobalConfiguration; 25 import com.android.tradefed.config.IConfiguration; 26 import com.android.tradefed.config.IGlobalConfiguration; 103 IConfiguration config, in shardConfig() argument 110 Integer shardCount = config.getCommandOptions().getShardCount(); in shardConfig() 111 for (IRemoteTest test : config.getTests()) { in shardConfig() [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/ |
D | TestInvocation.java | 25 import com.android.tradefed.config.ConfigurationException; 26 import com.android.tradefed.config.DynamicRemoteFileResolver; 27 import com.android.tradefed.config.GlobalConfiguration; 28 import com.android.tradefed.config.IConfiguration; 170 private void logStartInvocation(IInvocationContext context, IConfiguration config) { in logStartInvocation() argument 172 if (config.getCommandOptions().getShardIndex() != null) { in logStartInvocation() 176 config.getCommandOptions().getShardIndex() + 1, in logStartInvocation() 177 config.getCommandOptions().getShardCount()); in logStartInvocation() 204 IConfiguration config, in performInvocation() argument 210 ReportHostLog reportThread = new ReportHostLog(listener, config); in performInvocation() [all …]
|
/tools/repohooks/rh/ |
D | config.py | 118 config = RawConfigParser() 126 config.read(path) 134 self.config = config 141 return self.config.options(self.CUSTOM_HOOKS_SECTION, []) 145 return shlex.split(self.config.get(self.CUSTOM_HOOKS_SECTION, hook, '')) 150 return [k for k, v in self.config.items(self.BUILTIN_HOOKS_SECTION, ()) 155 return shlex.split(self.config.get(self.BUILTIN_HOOKS_OPTIONS_SECTION, 161 return dict(self.config.items(self.TOOL_PATHS_SECTION, ())) 183 self.config.get(self.OPTIONS_SECTION, 189 config = self.config [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/yaml/ |
D | ConfigurationYamlParserTest.java | 16 package com.android.tradefed.config.yaml; 24 import com.android.tradefed.config.ConfigurationDef; 25 import com.android.tradefed.config.IConfiguration; 62 IConfiguration config = mConfigDef.createConfiguration(); in testParseConfig() local 63 config.validateOptions(); in testParseConfig() 65 assertTrue(config.getBuildProvider() instanceof DependenciesResolver); in testParseConfig() 66 DependenciesResolver resolver = (DependenciesResolver) config.getBuildProvider(); in testParseConfig() 78 assertEquals(1, config.getTests().size()); in testParseConfig() 79 assertTrue(config.getTests().get(0) instanceof AndroidJUnitTest); in testParseConfig() 82 ((AndroidJUnitTest) config.getTests().get(0)).getPackageName()); in testParseConfig() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/ |
D | relay_rig.py | 88 def __init__(self, config): argument 93 validate_key('boards', config, list, 'relay config file') 95 for elem in config['boards']: 104 if 'devices' in config: 105 for elem in config['devices']: 120 def create_relay_board(self, config): argument 134 validate_key('type', config, str, '"boards" element') 136 ret = self._board_constructors[config['type']](config) 140 'to the _board_constructors dict?'.format(config['type'])) 145 def create_relay_device(self, config): argument [all …]
|
/tools/tradefederation/core/src/com/android/tradefed/config/ |
D | DeviceConfigurationHolder.java | 16 package com.android.tradefed.config; 81 public void addSpecificConfig(Object config) throws ConfigurationException { in addSpecificConfig() argument 82 if (config instanceof IBuildProvider) { in addSpecificConfig() 83 mBuildProvider = (IBuildProvider) config; in addSpecificConfig() 84 } else if (config instanceof ITargetPreparer){ in addSpecificConfig() 89 mListTargetPreparer.add((ITargetPreparer) config); in addSpecificConfig() 90 } else if (config instanceof IDeviceRecovery) { in addSpecificConfig() 91 mDeviceRecovery = (IDeviceRecovery) config; in addSpecificConfig() 92 } else if (config instanceof IDeviceSelection) { in addSpecificConfig() 93 mDeviceSelection = (IDeviceSelection) config; in addSpecificConfig() [all …]
|
/tools/tradefederation/core/tests/src/com/android/tradefed/config/gcs/ |
D | GCSConfigurationFactoryTest.java | 17 package com.android.tradefed.config.gcs; 19 import com.android.tradefed.config.ConfigurationDef; 20 import com.android.tradefed.config.ConfigurationException; 21 import com.android.tradefed.config.IConfigurationServer; 22 import com.android.tradefed.config.IGlobalConfiguration; 23 import com.android.tradefed.config.gcs.GCSConfigurationFactory.GCSConfigLoader; 164 String config = mGCSConfigLoader.findConfigName("cluster/host-config.xml", null); in testFindConfigName() local 165 Assert.assertEquals("cluster/host-config.xml", config); in testFindConfigName() 170 String config = mGCSConfigLoader.findConfigName("test-config", null); in testFindConfigName_bundled() local 171 Assert.assertEquals("test-config", config); in testFindConfigName_bundled() [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/ssh/ |
D | settings.py | 24 def from_config(config): argument 25 if config is None: 28 user = config.get('user', None) 29 host = config.get('host', None) 30 port = config.get('port', 22) 31 identity_file = config.get('identity_file', None) 32 ssh_config = config.get('ssh_config', None) 33 connect_timeout = config.get('connect_timeout', 30) 36 'host keys: %s' % config)
|
/tools/test/connectivity/acts/framework/tests/test_utils/instrumentation/ |
D | instrumentation_base_test_test.py | 62 config = self.instrumentation_test._get_merged_config( 64 self.assertEqual(config.get('param1'), 1) 65 self.assertEqual(config.get('param2'), 2) 66 self.assertEqual(config.get('param3'), 3) 72 config = self.instrumentation_test._get_merged_config( 74 self.assertEqual(config.get('param1'), 1) 75 self.assertEqual(config.get('param2'), 2) 76 self.assertEqual(config.get('param3'), 5)
|
/tools/tradefederation/core/src/com/android/tradefed/invoker/sandbox/ |
D | ParentSandboxInvocationExecution.java | 21 import com.android.tradefed.config.Configuration; 22 import com.android.tradefed.config.ConfigurationException; 23 import com.android.tradefed.config.ConfigurationFactory; 24 import com.android.tradefed.config.IConfiguration; 25 import com.android.tradefed.config.IConfigurationFactory; 57 IConfiguration config, in fetchBuild() argument 68 return super.fetchBuild(testInfo, config, rescheduler, listener); in fetchBuild() 72 public void doSetup(TestInformation testInfo, IConfiguration config, ITestLogger logger) in doSetup() argument 75 mParentPreparerConfig = getParentTargetConfig(config); in doSetup() 86 IConfiguration config, in doTeardown() argument [all …]
|