Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 22 of 22) sorted by relevance

/development/vndk/tools/header-checker/src/utils/
Dconfig_file_test.cpp66 ConfigFile cfg; in TEST() local
67 cfg.Load(stream); in TEST()
68 EXPECT_TRUE(cfg.HasSection("global", "")); in TEST()
69 EXPECT_TRUE(cfg.HasSection("library1", "current")); in TEST()
70 EXPECT_FALSE(cfg.HasSection("library1", "35")); in TEST()
71 EXPECT_FALSE(cfg.HasSection("library2", "current")); in TEST()
73 auto &&section1 = cfg.GetSection("global", ""); in TEST()
83 auto &&section2 = cfg.GetSection("library1", "current"); in TEST()
90 EXPECT_TRUE(cfg.GetProperty("global", "", "key1")); in TEST()
91 EXPECT_TRUE(cfg.GetProperty("library1", "34", "key2")); in TEST()
/development/tools/cargo_embargo/src/
Dmain.rs197 let cfg = Config::from_file(config_filename)?; in dump_crates() localVariable
198 let crates = make_all_crates(args, &cfg, intermediates_dir)?; in dump_crates()
253 let platform_rustfmt = if cfg!(all(target_arch = "x86_64", target_os = "linux")) { in find_android_rust_toolchain()
255 } else if cfg!(all(target_arch = "x86_64", target_os = "macos")) { in find_android_rust_toolchain()
257 } else if cfg!(all(target_arch = "x86_64", target_os = "windows")) { in find_android_rust_toolchain()
284 fn make_all_crates(args: &Args, cfg: &Config, intermediates_dir: &Path) -> Result<Vec<Vec<Crate>>> { in make_all_crates()
285 cfg.variants.iter().map(|variant| make_crates(args, variant, intermediates_dir)).collect() in make_all_crates()
288 fn make_crates(args: &Args, cfg: &VariantConfig, intermediates_dir: &Path) -> Result<Vec<Crate>> { in make_crates()
314 generate_cargo_out(cfg, intermediates_dir).context("generate_cargo_out failed")?; in make_crates()
315 if cfg.run_cargo { in make_crates()
[all …]
Dconfig.rs457 #[cfg(test)]
/development/tools/repo_diff/service/repodiff/persistence/sql/
Dsql.go21 cfg := mysql.Cfg(
26 cfg.DBName = constants.GetConfigVar("GCP_DB_NAME")
27 return mysql.DialCfg(cfg)
/development/vndk/tools/header-checker/src/diff/
Dheader_abi_diff.cpp195 ConfigFile cfg; in ReadConfigFile() local
196 if (!cfg.Load(config_file_path)) { in ReadConfigFile()
199 if (cfg.HasGlobalSection()) { in ReadConfigFile()
200 UpdateFlags(cfg.GetGlobalSection()); in ReadConfigFile()
202 if (cfg.HasSection(lib_name, target_version)) { in ReadConfigFile()
203 UpdateFlags(cfg.GetSection(lib_name, target_version)); in ReadConfigFile()
/development/tools/external_crates/crate_health/src/
Dname_and_version.rs21 #[cfg(test)]
57 #[cfg(test)]
137 #[cfg(test)]
Drepo_path.rs55 #[cfg(test)]
Dlib.rs54 #[cfg(test)]
Dname_and_version_map.rs170 #[cfg(test)]
181 #[cfg(test)]
Dcrate_type.rs289 #[cfg(test)]
Dversion_match.rs219 #[cfg(test)]
/development/tools/cargo_embargo/src/cargo/
Dmetadata.rs107 pub fn parse_cargo_metadata_str(cargo_metadata: &str, cfg: &VariantConfig) -> Result<Vec<Crate>> { in parse_cargo_metadata_str()
110 parse_cargo_metadata(&metadata, &cfg.features, &cfg.extra_cfg, cfg.tests) in parse_cargo_metadata_str()
363 #[cfg(test)]
684 let cfg = Config::from_json_str( in parse_metadata() localVariable
704 let crates = cfg in parse_metadata()
/development/python-packages/adb/
D.gitignore24 .installed.cfg
/development/tools/cargo_embargo/testdata/plotters/
Dcargo.metadata86 "--cfg=docsrs"
233 "--cfg",
642 "target": "cfg(target_os = \"hermit\")",
654 "target": "cfg(unix)",
672 "target": "cfg(windows)",
739 "description": "Automatic cfg for Rust compiler features",
2024 "target": "cfg(unix)",
2109 …"description": "A macro to ergonomically define an item depending on a large number of #[cfg]\npar…
2110 "documentation": "https://docs.rs/cfg-if",
2124 "homepage": "https://github.com/alexcrichton/cfg-if",
[all …]
/development/python-packages/
D.gitignore25 .installed.cfg
/development/tools/ndk/
D.gitignore25 .installed.cfg
/development/tools/cargo_embargo/
DREADME.md83 … | `[]` | `cfg` flags in this list…
84 … | `[]` | Extra `cfg` flags to enable in…
/development/tools/cargo_embargo/testdata/rustc-demangle-capi/
Dcargo.metadata66 "--cfg",
/development/tools/external_crates/
DCargo.lock17 "cfg-if",
302 name = "cfg-if"
442 "cfg-if",
692 "cfg-if",
745 "cfg-if",
1945 "cfg-if",
2305 "cfg-if",
2322 "cfg-if",
2452 "cfg-if",
2761 "cfg-if",
/development/tools/cargo_embargo/testdata/async-trait/
Dcargo.metadata216 "description": "Automatic cfg for Rust compiler features",
675 "cfg-target-has-atomic": [],
737 "--cfg",
1612 "cfg-target-has-atomic": [],
1640 "--cfg",
1779 "cfg-target-has-atomic": [],
1803 "--cfg",
1919 "--cfg",
2004 "--cfg",
2179 "cfg-target-has-atomic": [],
[all …]
/development/tools/cargo_embargo/testdata/either/
Dcargo.metadata313 "--cfg",
317 "--cfg",
319 "--cfg",
888 "target": "cfg(any())",
930 "--cfg",
1327 "--cfg",
1716 "--cfg",
2439 "target": "cfg(any())"
/development/scripts/
Dcargo2rulesmk.py628 for cfg in self.cfgs: