Home
last modified time | relevance | path

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

/tools/asuite/adevice/src/
Dtracking.rs22 config_path: String, field
35 pub fn load(config_path: &Option<String>) -> Result<Self> { in load()
36 match &config_path { in load()
50 config.config_path.clone_from(path); in from_json_file()
54 Ok(Config { base: "droid".to_string(), modules: Vec::new(), config_path: path.clone() }) in from_json_file()
58 Config { base: "droid".to_string(), modules: Vec::new(), config_path: String::new() } in default()
102 if self.config_path.is_empty() { in save()
105 let mut file = fs::File::create(&self.config_path) in save()
106 .context(format!("Creating config file {:?}", self.config_path))?; in save()
108 debug!("Wrote config file {:?}", &self.config_path); in save()
[all …]
Dcli.rs84 pub config_path: Option<String>, field
Dadevice.rs145 let mut config = Config::load(&cli.global_options.config_path)?; in adevice()
/tools/acloud/setup/
Dgcp_setup_runner.py65 def UpdateConfigFile(config_path, item, value): argument
86 if os.path.isfile(config_path):
87 with open(config_path, "r") as cfg_file:
96 with open(config_path, "w") as cfg_file:
100 def SetupSSHKeys(config_path, private_key_path, public_key_path): argument
117 UpdateConfigFile(config_path, "ssh_private_key_path",
119 UpdateConfigFile(config_path, "ssh_public_key_path",
245 def __init__(self, config_path): argument
254 config_mgr = config.AcloudConfigManager(config_path)
256 self.config_path = config_mgr.user_config_path
[all …]
/tools/asuite/atest/
Dconstants.py58 config_path = os.environ.get('ATEST_VENDOR_CONFIG_PATH', None)
59 if config_path:
60 with open(config_path, 'r') as config_file:
69 config_path = pathlib.Path(build_top).joinpath(
72 if config_path.exists():
78 with open(config_path, 'r') as config_file:
/tools/acloud/internal/lib/
Dcvd_runtime_config.py123 def __init__(self, config_path=None, raw_data=None): argument
124 if not config_path and not raw_data:
126 self._config_path = config_path
127 self._config_dict = self._GetCuttlefishRuntimeConfig(config_path,
130 config_path, self._config_dict)
155 (self._instance_id, config_path))
232 def config_path(self): member in CvdRuntimeConfig
Dcvd_runtime_config_test.py123 self.assertEqual(fake_cvd_runtime_config.config_path,
132 self.assertEqual(fake_cvd_runtime_config_webrtc.config_path, None)
154 config_path=None,
Dota_tools_test.py277 config_path = os.path.join(self._temp_dir, "misc_info.txt")
278 self._CreateFile(config_path, _INPUT_SYSTEM_QEMU_CONFIG)
290 self._ota.MkCombinedImg("/unit/test", config_path, _GetImage)
/tools/test/connectivity/acts/framework/acts/
Dconfig_parser.py78 def _update_file_paths(config, config_path): argument
98 config_file = os.path.join(config_path, config_file)
106 def _validate_testbed_configs(testbed_configs, config_path): argument
119 _update_file_paths(config, config_path)
230 config_path, _ = os.path.split(utils.abs_path(test_config_path))
231 configs[keys.Config.key_config_path.value] = config_path
233 _validate_testbed_configs(testbeds, config_path)
Dtest_runner.py304 config_path = os.path.join(self.log_path, 'test_configs.json')
305 with open(config_path, 'a') as f:
/tools/netsim/rust/hostapd-rs/src/
Dhostapd.rs110 config_path: PathBuf, field
129 pub fn new(tx_bytes: mpsc::Sender<Bytes>, verbose: bool, config_path: PathBuf) -> Self { in new()
159 config_path, in new()
184 self.config_path.display(), in run()
199 let config_path = self.config_path.to_string_lossy().into_owned(); in run() localVariable
201 Self::hostapd_task(verbose, config_path).await; in run()
434 … let conf_file = File::create(self.config_path.clone()).await?; // Create or overwrite the file in gen_config_file()
498 async fn hostapd_task(verbose: bool, config_path: String) { in hostapd_task()
504 CString::new(config_path.clone()).unwrap_or_else(|_| { in hostapd_task()
505 panic!("CString::new error on config file path: {}", config_path) in hostapd_task()
[all …]
/tools/acloud/public/
Dconfig.py96 config_path = os.path.join(os.path.expanduser("~"), ".config", "acloud")
98 if not os.path.exists(config_path):
99 os.makedirs(config_path)
100 return os.path.join(config_path, _DEFAULT_CONFIG_FILE)
103 def GetUserConfigPath(config_path): argument
114 if config_path:
115 return config_path
/tools/netsim/rust/daemon/src/wifi/
Dhostapd.rs28 let config_path = get_discovery_directory().join("hostapd.conf"); in hostapd_run() localVariable
29 let mut hostapd = Hostapd::new(tx, true, config_path); in hostapd_run()
/tools/test/connectivity/acts/framework/acts/controllers/sniffer_lib/local/
Dtcpdump.py26 def __init__(self, config_path, logger, base_configs=None): argument
32 config_path, logger, base_configs=base_configs)
Dtshark.py25 def __init__(self, config_path, logger, base_configs=None): argument
30 super().__init__(config_path, logger, base_configs=base_configs)
/tools/asuite/atest/test_runners/
Dmobly_test_runner.py560 config_path = os.path.abspath(os.path.expanduser(mobly_args.config))
561 logging.debug('Using existing custom Mobly config at %s', config_path)
562 with open(config_path, encoding='utf-8') as f:
598 config_path = os.path.join(log_path, CONFIG_FILE)
599 logging.debug('Generating Mobly config at %s', config_path)
600 with open(config_path, 'w', encoding='utf-8') as f:
602 return config_path
708 config_path: str,
728 config_path,
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py1207 config_path = os.path.join(
1210 if os.path.isfile(config_path):
1211 return config_path, mod_info.get(constants.MODULE_SRCS, [])
1214 config_path = os.path.join(android_root_dir, test_config)
1215 if os.path.isfile(config_path):
1216 return config_path, mod_info.get(constants.MODULE_SRCS, [])
1228 config_path = atest_utils.get_build_top(test_config)
1229 config_name = config_path.stem
1230 if config_name == test_name and os.path.isfile(config_path):
1231 return config_path, info.get(constants.MODULE_SRCS, [])
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/
Dffx.py214 config_path = os.path.join(target_dir, "ffx_config.json")
215 with open(config_path, 'w', encoding="utf-8") as f:
219 "user": config_path,
/tools/test/connectivity/acts/framework/acts/controllers/bits_lib/
Dbits_service.py148 config_path = os.path.join(
151 with open(config_path, 'w') as f:
160 config_path]
/tools/test/mobly_extensions/scripts/
Dlocal_mobly_runner.py394 _, config_path = tempfile.mkstemp(prefix='mobly_config_', suffix='.yaml')
396 with open(config_path, 'w') as f:
398 _tempfiles.append(config_path)
399 return config_path
/tools/asuite/aidegen/lib/
Dproject_file_gen.py288 config_path = os.path.join(
290 if os.path.isfile(config_path):
293 templates.TEST_MAPPING_SCHEMAS_XML.format(SCHEMA_PATH=config_path))
/tools/test/connectivity/acts_tests/tests/google/bt/
Drelay_tool.py45 def get_relay_device(config_path, testbed_name, device_name): argument
56 with open(config_path) as config_file:
/tools/netsim/rust/hostapd-rs/tests/
Dintegration_test.rs35 let config_path = env::temp_dir().join("hostapd.conf"); in init_test_hostapd() localVariable
36 (Hostapd::new(tx, true, config_path), rx) in init_test_hostapd()
/tools/acloud/list/
Dinstance.py578 cvd_env[constants.ENV_CUTTLEFISH_CONFIG_FILE] = self._cf_runtime_cfg.config_path
647 self._cf_runtime_cfg.config_path)
Dinstance_test.py75 config_path="fake_config_path",