Home
last modified time | relevance | path

Searched refs:Some (Results 1 – 18 of 18) sorted by relevance

/development/tools/cargo_embargo/src/cargo/
Dcargo_out.rs111 (Some(a), Some(b), Some(c)) => { in match3()
112 Some((a.as_str().to_string(), b.as_str().to_string(), c.as_str().to_string())) in match3()
125 while let Some((n, line)) = lines_iter.next() { in parse()
134 if let Some(args) = match1(&RUSTC_REGEX, line) { in parse()
151 if let Some((_, next_line)) = lines_iter.next() { in parse()
160 if let Some(args) = match1(&RUSTC_VV_CMD_ARGS, &line) { in parse()
171 if let Some((pkg, cmd, args)) = match3(&CC_AR_VV_REGEX, line) { in parse()
183 if let Some(fpath) = match1(&WARNING_FILE_REGEX, line) { in parse()
209 if let Some(captures) = CARGO_TEST_LIST_START_PAT.captures(line) { in parse()
211 Some((captures.get(2).unwrap().as_str(), captures.get(1).unwrap().as_str())); in parse()
[all …]
Dmetadata.rs66 if let Some(target) = &self.target { in enabled()
160 Some("x86_64-unknown-linux-gnu".to_string()) in parse_cargo_metadata()
168 version: Some(package.version.to_owned()), in parse_cargo_metadata()
192 version: Some(package.version.to_owned()), in parse_cargo_metadata()
230 && dependency.kind.as_deref() != Some("build") in get_externs()
233 Some(make_extern(packages, dependency)) in get_externs()
261 let Some(package) = packages.iter().find(|package| package.name == dependency.name) else { in make_extern() localVariable
264 let Some(target) = package.targets.iter().find(|target| { in make_extern() localVariable
271 if let Some(rename) = &dependency.rename { rename.clone() } else { lib_name.clone() }; in make_extern()
293 let Some(stripped) = id.strip_prefix(PREFIX) else { in package_dir_from_id() localVariable
[all …]
/development/tools/cargo_embargo/src/
Dconfig.rs101 Some(Value::Array(v)) => v, in from_json_str()
102 Some(_) => bail!("Failed to parse config: variants is not an array"), in from_json_str()
115 if let Some(packages) = config.get("package") { in from_json_str()
145 if let Some(package) = config.get_mut("package") { in from_json_str()
174 let mut packages = if let Some(Value::Object(packages)) = config.remove("package") { in to_json_string()
185 if let Some(Value::Object(variant_packages)) = in to_json_string()
188 if let Some(Value::Object(variant_package_config)) = in to_json_string()
192 == Some(package_value); in to_json_string()
210 .all(|variant| variant.as_object().unwrap().get(key) == Some(value)) in to_json_string()
227 if let Some(Value::Object(variant_packages)) = variant.get_mut("package") { in to_json_string()
[all …]
Dmain.rs115 } else if let Some(overridden_name) = module_name_overrides.get(module_name) { in override_module_name()
116 Some(overridden_name.to_string()) in override_module_name()
117 } else if let Some(renamed) = rename_map.get(module_name) { in override_module_name()
118 Some(renamed.to_string()) in override_module_name()
120 Some(module_name.to_string()) in override_module_name()
297 let cargo_bin = if let Some(cargo_bin) = &args.cargo_bin { in make_crates()
352 Some(dir_name.rsplit_once('-')?.0) in run_embargo()
476 let feature_args = if let Some(features) = &cfg.features { in generate_cargo_out()
647 if let Some(path) = &package_cfg.add_toplevel_block { in write_build_files()
673 if let Some(patch) = package_cfg.rulesmk_patch.as_deref() { in write_build_files()
[all …]
Dbp.rs158 if let Some(raw_block) = &self.raw_block { in write()
/development/tools/external_crates/crate_health/src/
Dversion_match.rs57 let compatibility = if let Some(dest_nv) = vm.dest.get_version_upgradable_from(nv) { in new()
63 Some(dest_nv.clone()) in new()
119 Some(dest) => { in print()
182 if let Some(dest_crate) = c.get(source_key).and_then(|compatibility| { in apply_patches()
262 (equal.clone(), Some(equal.clone())), in test_version_map()
263 (compatible_old.clone(), Some(compatible_new.clone())), in test_version_map()
272 assert_eq!(version_match.get_compatible_version(&equal), Some(&equal)); in test_version_map()
273 assert_eq!(version_match.get_compatible_item(&equal), Some(&"equal dest".to_string())); in test_version_map()
276 Some(&mut "equal dest".to_string()) in test_version_map()
281 assert_eq!(version_match.get_compatible_version(&compatible_old), Some(&compatible_new)); in test_version_map()
[all …]
Dname_and_version_map.rs102 .map_while(move |x| if x.0.name() == owned_name { Some(x) } else { None }), in get_versions()
115 .map_while(move |x| if x.0.name() == owned_name { Some(x) } else { None }), in get_versions_mut()
164 if let Some((nv, _crate)) = versions.into_iter().last() { in most_recent_version()
229 assert_eq!(test_map.get(&foo1), Some(&"foo v1".to_string())); in test_name_and_version_map_nonempty()
230 assert_eq!(test_map.get(&foo2), Some(&"foo v2".to_string())); in test_name_and_version_map_nonempty()
231 assert_eq!(test_map.get(&bar), Some(&"bar".to_string())); in test_name_and_version_map_nonempty()
235 assert_eq!(test_map.get_mut(&foo1), Some(&mut "foo v1".to_string())); in test_name_and_version_map_nonempty()
236 assert_eq!(test_map.get_mut(&foo2), Some(&mut "foo v2".to_string())); in test_name_and_version_map_nonempty()
237 assert_eq!(test_map.get_mut(&bar), Some(&mut "bar".to_string())); in test_name_and_version_map_nonempty()
243 Some(&foo1) in test_name_and_version_map_nonempty()
Dcrate_type.rs111 if let Some(dirname) = self.path.rel().file_name().and_then(|x| x.to_str()) { in staging_dir_name()
122 Some(format!( in aosp_url()
127 Some(format!( in aosp_url()
179 if let Some(output) = &self.generate_android_bp_output { in print()
184 if let Some(output) = &self.android_bp_diff { in print()
Dcrate_collection.rs53 Some(CrateError::VirtualCrate(_)) => (), in add_from()
Dandroid_bp.rs71 Some(p) => { in run_cargo_embargo()
/development/tools/cargo_embargo/testdata/
DREADME.md25 Some tests will likely fail because of outdated information in the other test
/development/python-packages/fetchartifact/
DREADME.md61 Some tests require network access. If you need to run the tests in an
/development/vndk/tools/sourcedr/Documentation/
Dlist-installed-files-from-source-dirs.md8 image. Some listed files are not actually installed because they are not
/development/tools/apkcheck/
DREADME.txt56 to accurately reconstruct the public API. Some popular cases have
169 Some classes are not meant for public consumption, but are still referred
/development/tools/repo_diff/
DREADME.md83 or a cherry pick. Some examples are:
/development/vndk/tools/header-checker/
DREADME.md73 * `16`: ELF incompatible (Some symbols in the `.dynsym` table, not exported by
/development/build/
Dsdk.atree142 # Note: Some samples reference a shared "common" directory. In the future
/development/sdk/
Dsdk_files_NOTICE.txt1612 using it. (Some other Free Software Foundation software is covered by
4054 using it. (Some other Free Software Foundation software is covered by
5962 using it. (Some other Free Software Foundation software is covered by
7251 Some rights reserved: <http://opensource.org/licenses/mit-license.php>
7276 Some parts of Mesa are copyrighted under the GNU LGPL. See the
9411 using it. (Some other Free Software Foundation software is covered by
10609 using it. (Some other Free Software Foundation software is covered by
12029 (Some other Free Software Foundation software is covered by
13923 authors commit to using it. (Some other Free Software Foundation software is