/tools/asuite/adevice/src/ |
D | tracking.rs | 22 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 …]
|
D | cli.rs | 84 pub config_path: Option<String>, field
|
D | adevice.rs | 145 let mut config = Config::load(&cli.global_options.config_path)?; in adevice()
|
/tools/acloud/setup/ |
D | gcp_setup_runner.py | 65 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/ |
D | constants.py | 58 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/ |
D | cvd_runtime_config.py | 123 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
|
D | cvd_runtime_config_test.py | 123 self.assertEqual(fake_cvd_runtime_config.config_path, 132 self.assertEqual(fake_cvd_runtime_config_webrtc.config_path, None) 154 config_path=None,
|
D | ota_tools_test.py | 277 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/ |
D | config_parser.py | 78 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)
|
D | test_runner.py | 304 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/ |
D | hostapd.rs | 110 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/ |
D | config.py | 96 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/ |
D | hostapd.rs | 28 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/ |
D | tcpdump.py | 26 def __init__(self, config_path, logger, base_configs=None): argument 32 config_path, logger, base_configs=base_configs)
|
D | tshark.py | 25 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/ |
D | mobly_test_runner.py | 560 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/ |
D | test_finder_utils.py | 1207 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/ |
D | ffx.py | 214 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/ |
D | bits_service.py | 148 config_path = os.path.join( 151 with open(config_path, 'w') as f: 160 config_path]
|
/tools/test/mobly_extensions/scripts/ |
D | local_mobly_runner.py | 394 _, 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/ |
D | project_file_gen.py | 288 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/ |
D | relay_tool.py | 45 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/ |
D | integration_test.rs | 35 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/ |
D | instance.py | 578 cvd_env[constants.ENV_CUTTLEFISH_CONFIG_FILE] = self._cf_runtime_cfg.config_path 647 self._cf_runtime_cfg.config_path)
|
D | instance_test.py | 75 config_path="fake_config_path",
|