Home
last modified time | relevance | path

Searched refs:config (Results 1 – 25 of 748) sorted by relevance

12345678910>>...30

/tools/test/connectivity/acts/tests/google/wifi/
DWifiEnterpriseTest.py170 def eap_negative_connect_logic(self, config, ad): argument
180 with asserts.assert_raises(signals.TestFailure, extras=config):
181 verdict = wutils.wifi_connect(ad, config)
184 def gen_negative_configs(self, config, neg_params): argument
200 negative_config = dict(config)
207 if config[Ent.EAP] == EAP.TLS and k == Ent.IDENTITY:
209 if k in config:
214 def gen_negative_eap_configs(self, config): argument
235 return self.gen_negative_configs(config, neg_params)
237 def gen_negative_passpoint_configs(self, config): argument
[all …]
DWifiSoftApTest.py113 config = {wutils.WifiEnums.SSID_KEY: ap_ssid}
114 config[wutils.WifiEnums.PWD_KEY] = ap_password
115 return config
135 def validate_traffic_between_softap_clients(self, config): argument
147 wutils.wifi_connect(ad, config, check_connectivity=False)
148 dutils.connect_wifi(wd, config)
191 config = self.create_softap_config()
193 config[wutils.WifiEnums.SSID_KEY],
194 config[wutils.WifiEnums.PWD_KEY], band, hidden)
198 config[wutils.WifiEnums.SSID_KEY])
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/config/
DConfigurationFactoryTest.java16 package com.android.tradefed.config;
23 import com.android.tradefed.config.ConfigurationDef.ConfigObjectDef;
24 import com.android.tradefed.config.ConfigurationFactory.ConfigId;
301 IConfiguration config = mFactory.createConfigurationFromArgs(new String[] {name}); in assertConfigValid() local
302 assertNotNull(config); in assertConfigValid()
310 IGlobalConfiguration config = in assertGlobalConfigValid() local
312 assertNotNull(config); in assertGlobalConfigValid()
313 assertNotNull(config.getDeviceMonitors()); in assertGlobalConfigValid()
314 assertNotNull(config.getWtfHandler()); in assertGlobalConfigValid()
360 IConfiguration config = mFactory.createConfigurationFromArgs(new String[] {TEST_CONFIG, in testCreateConfigurationFromArgs() local
[all …]
DDynamicRemoteFileResolverTest.java16 package com.android.tradefed.config;
30 import com.android.tradefed.config.DynamicRemoteFileResolver.FileResolverLoader;
31 import com.android.tradefed.config.DynamicRemoteFileResolver.ResolverLoadingException;
32 import com.android.tradefed.config.DynamicRemoteFileResolver.ServiceFileResolverLoader;
33 import com.android.tradefed.config.remote.GcsRemoteFileResolver;
34 import com.android.tradefed.config.remote.IRemoteFileResolver;
112 public IRemoteFileResolver load(String scheme, Map<String, String> config) { in setUp()
640 Map<String, String> config = ResolverWithOptions.minimalConfig(); in resolverLoader_throwsIfMissingMandatoryOption() local
641 config.remove(ResolverWithOptions.MANDATORY_OPTION_FQN); in resolverLoader_throwsIfMissingMandatoryOption()
644 loader.load(ResolverWithOptions.PROTOCOL, config); in resolverLoader_throwsIfMissingMandatoryOption()
[all …]
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java25 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;
29 import com.android.tradefed.config.proxy.AutomatedReporters;
30 import com.android.tradefed.config.proxy.TradefedDelegator;
174 private void logStartInvocation(IInvocationContext context, IConfiguration config) { in logStartInvocation() argument
176 if (config.getCommandOptions().getShardIndex() != null) { in logStartInvocation()
180 config.getCommandOptions().getShardIndex() + 1, in logStartInvocation()
181 config.getCommandOptions().getShardCount()); in logStartInvocation()
[all …]
DInvocationExecution.java28 import com.android.tradefed.config.GlobalConfiguration;
29 import com.android.tradefed.config.IConfiguration;
30 import com.android.tradefed.config.IDeviceConfiguration;
112 IConfiguration config, in fetchBuild() argument
129 IDeviceConfiguration deviceConfig = config.getDeviceConfigByName(currentDeviceName); in fetchBuild()
154 updateBuild(notFoundStub, config); in fetchBuild()
159 updateBuild(info, config); in fetchBuild()
162 if (config.getCommandOptions().shouldUseReplicateSetup()) { in fetchBuild()
170 updateBuild(errorBuild, config); in fetchBuild()
177 updateBuild(errorBuild, config); in fetchBuild()
[all …]
DRemoteInvocationExecution.java25 import com.android.tradefed.config.ConfigurationException;
26 import com.android.tradefed.config.GlobalConfiguration;
27 import com.android.tradefed.config.IConfiguration;
28 import com.android.tradefed.config.IDeviceConfiguration;
29 import com.android.tradefed.config.OptionCopier;
30 import com.android.tradefed.config.OptionSetter;
105 IConfiguration config, in fetchBuild() argument
112 String deviceName = config.getDeviceConfig().get(0).getDeviceName(); in fetchBuild()
114 config.getDeviceConfig().get(0).getBuildProvider(), stubProvider); in fetchBuild()
121 updateBuild(info, config); in fetchBuild()
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dcellular_simulator.py77 def configure_bts(self, config, bts_index=0): argument
87 if config.output_power:
88 self.set_output_power(bts_index, config.output_power)
90 if config.input_power:
91 self.set_input_power(bts_index, config.input_power)
93 if isinstance(config, sims.LteSimulation.LteSimulation.BtsConfig):
94 self.configure_lte_bts(config, bts_index)
96 def configure_lte_bts(self, config, bts_index=0): argument
104 if config.band:
105 self.set_band(bts_index, config.band)
[all …]
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/suite/
DITestSuiteIntegrationTest.java26 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 …]
DModuleSplitterTest.java23 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 …]
DITestSuiteTest.java31 import com.android.tradefed.config.Configuration;
32 import com.android.tradefed.config.ConfigurationDef;
33 import com.android.tradefed.config.ConfigurationDescriptor;
34 import com.android.tradefed.config.ConfigurationException;
35 import com.android.tradefed.config.ConfigurationFactory;
36 import com.android.tradefed.config.DynamicRemoteFileResolver;
37 import com.android.tradefed.config.IConfiguration;
38 import com.android.tradefed.config.IConfigurationReceiver;
39 import com.android.tradefed.config.Option;
40 import com.android.tradefed.config.OptionSetter;
[all …]
DValidateSuiteConfigHelperTest.java24 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 …]
/tools/asuite/aidegen/lib/
Dconfig_unittest.py28 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 …]
Dproject_config_unittest.py64 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 …]
/tools/tradefederation/core/src/com/android/tradefed/command/
DCommandScheduler.java32 import com.android.tradefed.config.ArgsOptionParser;
33 import com.android.tradefed.config.Configuration;
34 import com.android.tradefed.config.ConfigurationDescriptor;
35 import com.android.tradefed.config.ConfigurationException;
36 import com.android.tradefed.config.ConfigurationFactory;
37 import com.android.tradefed.config.DynamicRemoteFileResolver;
38 import com.android.tradefed.config.GlobalConfiguration;
39 import com.android.tradefed.config.IConfiguration;
40 import com.android.tradefed.config.IConfigurationFactory;
41 import com.android.tradefed.config.IDeviceConfiguration;
[all …]
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandConfigBuilder.java18 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/invoker/shard/
DShardHelper.java20 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/testtype/suite/
DValidateSuiteConfigHelper.java19 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 …]
DModuleSplitter.java18 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 …]
DITestSuite.java23 import com.android.tradefed.config.ConfigurationException;
24 import com.android.tradefed.config.DynamicRemoteFileResolver;
25 import com.android.tradefed.config.IConfiguration;
26 import com.android.tradefed.config.IConfigurationReceiver;
27 import com.android.tradefed.config.IDeviceConfiguration;
28 import com.android.tradefed.config.Option;
29 import com.android.tradefed.config.Option.Importance;
30 import com.android.tradefed.config.OptionCopier;
373 for (IConfiguration config : runConfig.values()) { in applyGuiceInjection()
374 for (IRemoteTest test : config.getTests()) { in applyGuiceInjection()
[all …]
/tools/test/connectivity/acts/tests/google/wifi/aware/functional/
DDiscoveryTest.py59 config = {}
61 config[aconsts.DISCOVERY_KEY_DISCOVERY_TYPE] = ptype
63 config[aconsts.DISCOVERY_KEY_DISCOVERY_TYPE] = stype
64 config[aconsts.DISCOVERY_KEY_TTL] = ttl
65 config[aconsts.DISCOVERY_KEY_TERM_CB_ENABLED] = term_ind_on
67 config[aconsts.DISCOVERY_KEY_SERVICE_NAME] = "a"
68 config[aconsts.DISCOVERY_KEY_SSI] = None
69 config[aconsts.DISCOVERY_KEY_MATCH_FILTER_LIST] = []
71 config[aconsts.DISCOVERY_KEY_SERVICE_NAME] = "GoogleTestServiceX"
73 config[aconsts.DISCOVERY_KEY_SSI] = string.ascii_letters
[all …]
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DTradefedSandbox.java20 import com.android.tradefed.config.Configuration;
21 import com.android.tradefed.config.ConfigurationException;
22 import com.android.tradefed.config.ConfigurationFactory;
23 import com.android.tradefed.config.GlobalConfiguration;
24 import com.android.tradefed.config.IConfiguration;
25 import com.android.tradefed.config.IConfigurationFactory;
26 import com.android.tradefed.config.IGlobalConfiguration;
93 public CommandResult run(IConfiguration config, ITestLogger logger) throws Throwable { in run() argument
106 mCmdArgs.addAll(getSandboxOptions(config).getJavaOptions()); in run()
119 if (config.getCommandOptions().shouldUseSandboxTestMode()) { in run()
[all …]
DSandboxConfigDump.java19 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/tradefederation/core/tests/src/com/android/tradefed/config/yaml/
DConfigurationYamlParserTest.java16 package com.android.tradefed.config.yaml;
25 import com.android.tradefed.config.ConfigurationDef;
26 import com.android.tradefed.config.IConfiguration;
63 IConfiguration config = mConfigDef.createConfiguration(); in testParseConfig() local
64 config.validateOptions(); in testParseConfig()
66 assertTrue(config.getBuildProvider() instanceof DependenciesResolver); in testParseConfig()
67 DependenciesResolver resolver = (DependenciesResolver) config.getBuildProvider(); in testParseConfig()
79 assertEquals(1, config.getTests().size()); in testParseConfig()
80 assertTrue(config.getTests().get(0) instanceof AndroidJUnitTest); in testParseConfig()
83 ((AndroidJUnitTest) config.getTests().get(0)).getPackageName()); in testParseConfig()
[all …]
/tools/test/connectivity/acts/framework/tests/
Dacts_relay_controller_test.py38 def __init__(self, config): argument
41 RelayBoard.__init__(self, config)
63 self.config = {
70 self.board = MockBoard(self.config)
210 self.config = ({
224 self.ss_board = SainSmartBoard(self.config)
312 board = SainSmartBoard(self.config)
320 board = SainSmartBoard(self.config)
342 self.config = {
367 flawed_config = copy.deepcopy(self.config)
[all …]

12345678910>>...30