| /development/tools/external_crates/crate_tool/src/ |
| D | upgradable.rs | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 16 use semver::{Version, VersionReq}; 21 /// Ignore semantic version. Consider any two versions compatible. 25 /// Follow standard semantic version rules, under which 0.x and 0.y are incompatible. 30 /// Returns true if the object version is upgradable to 'other', according to 31 /// the specified semantic version compatibility strictness. 34 other: &Version, in is_upgradable_to() argument 39 impl IsUpgradableTo for semver::Version { implementation 42 other: &Version, in is_upgradable_to() argument 53 /// Returns true if the version matches the req, according to the [all …]
|
| D | crates_io.rs | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 19 use crates_index::{Crate, Dependency, DependencyKind, Version}; 26 fn safe_versions(&self) -> impl DoubleEndedIterator<Item = &Version>; in safe_versions() 27 // Versions of the crate greater than 'version'. 28 fn versions_gt(&self, version: &semver::Version) -> impl DoubleEndedIterator<Item = &Version> { in versions_gt() 30 semver::Version::parse(v.version()).map_or(false, |parsed| parsed.gt(version)) in versions_gt() 33 // Get a specific version of a crate. 34 fn get_version(&self, version: &semver::Version) -> Option<&Version> { in get_version() argument 36 semver::Version::parse(v.version()).map_or(false, |parsed| parsed.eq(version)) in get_version() 41 fn safe_versions(&self) -> impl DoubleEndedIterator<Item = &Version> { in safe_versions() [all …]
|
| D | managed_repo.rs | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 32 use semver::{Version, VersionReq}; 58 version: String, field 99 fn legacy_dir_for(&self, crate_name: &str, version: Option<&Version>) -> Result<RootedPath> { in legacy_dir_for() 100 match version { in legacy_dir_for() 170 for version in cio_crate.safe_versions() { in analyze_import() 171 println!("Version {}", version.version()); in analyze_import() 173 for (dep, req) in version.android_deps_with_version_reqs() { in analyze_import() 202 nv.version(), in analyze_import() 219 dep_crate.version(), in analyze_import() [all …]
|
| D | crate_type.rs | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 19 use semver::Version; 33 fn version(&self) -> &Version { in version() argument 34 &self.metadata.version in version() 37 NameAndVersionRef::new(self.name(), self.version()) in key() 83 fn write_test_manifest(temp_crate_dir: &Path, name: &str, version: &str) -> Result<RootedPath> { in write_test_manifest() 87 format!("[package]\nname = \"{}\"\nversion = \"{}\"\n", name, version), in write_test_manifest() 101 assert_eq!(krate.version().to_string(), "1.2.0"); in test_from_and_properties()
|
| /development/tools/external_crates/name_and_version/src/ |
| D | name_and_version.rs | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 15 //! Data structures for representing a crate name and version, which can be 24 use semver::{BuildMetadata, Prerelease, Version}; 26 static MIN_VERSION: Version = 27 Version { major: 0, minor: 0, patch: 0, pre: Prerelease::EMPTY, build: BuildMetadata::EMPTY }; 29 /// A name and version pair trait. 33 /// Returns the version. 34 fn version(&self) -> &Version; in version() argument 39 /// An owned namd and version. 43 version: Version, field [all …]
|
| D | lib.rs | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 15 //! A name and version data structure that can be used as map key. 17 use semver::Version; 31 /// Duplicate crate version 32 #[error("Duplicate crate version: {0} {1}")] 33 DuplicateVersion(String, Version), 34 /// Version parse error
|
| /development/tools/crate-updater/ |
| D | Cargo.lock | 3 version = 4 7 version = "0.1.1" 13 version = "0.1.5" 22 version = "0.6.18" 37 version = "1.0.10" 43 version = "0.2.6" 52 version = "1.1.2" 61 version = "3.0.7" 72 version = "1.0.94" 78 version = "1.4.0" [all …]
|
| D | Cargo.toml | 3 version = "0.1.0" 8 clap = { version = "4.4.6", features = ["derive"] } 9 chrono = { version = "0.4", features = ["serde"] } 11 serde = { version = "=1.0.210", features = ["derive"] }
|
| /development/tools/repo_diff/service/repodiff/ |
| D | Gopkg.lock | 8 version = "v0.19.0" 20 version = "1.11" 26 version = "v1.1.0" 32 version = "v1.3" 38 version = "v1.0.0" 53 version = "v0.8.0" 59 version = "v1.0.0" 65 version = "v1.2.0" 71 version = "v1.2.1" 120 version = "v1.0.0" [all …]
|
| D | Gopkg.toml | 11 # version = "1.0.0" 20 # version = "2.4.0" 30 version = "1.11.0" 34 version = "0.8.0" 38 version = "1.2.0" 42 version = "1.2.1"
|
| /development/tools/external_crates/crates_io_util/examples/ |
| D | dump_json.rs | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 24 let version = args[2].as_str(); in main() localVariable 28 let version = in main() localVariable 29 cio_crate.versions().iter().find(|v| v.version() == version).expect("Version not found"); in main() 31 println!("{}", serde_json::to_string_pretty(version).expect("Failed to serialize JSON")); in main()
|
| /development/vndk/snapshot/ |
| D | multi_update.py | 5 # Licensed under the Apache License, Version 2.0 (the "License"); 33 for version in versions: 34 if version not in VNDK_SNAPSHOT_SOURCE_BRANCHES: 35 raise ValueError ('Unknown VNDK version: {}'.format(version)) 36 logging.info('Updating snapshot version {}'.format(version)) 37 branch = VNDK_SNAPSHOT_SOURCE_BRANCHES[version] 40 update.run(version, branch, bid, None, args.use_current_branch,
|
| /development/tools/winscope/ |
| D | package-lock.json | 3 "version": "0.0.0", string 9 "version": "0.0.0", string 91 "version": "1.2.6", string 100 "version": "4.3.3", string 106 "version": "2.2.0", string 119 "version": "0.1402.10", string 134 "version": "6.6.7", string 146 "version": "1.14.1", string 152 "version": "14.2.10", string 260 "version": "14.2.10", string [all …]
|
| D | protractor.config.js | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 18 // Chrome driver must match the system's Chrome browser version. 19 // Use this command to update to the specified Chrome driver version: 20 // node node_modules/.bin/webdriver-manager update -- versions.chrome=<NEW VERSION> 21 // and change the hardcoded version here
|
| /development/tools/crate-updater/src/ |
| D | updates_tried.rs | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 33 version: String, field 57 pub fn contains(&self, name: &str, version: &str) -> bool { in contains() 58 self.attempts.contains_key(&key(name, version)) in contains() 60 pub fn record(&mut self, name: String, version: String, success: bool) -> Result<()> { in record() 62 key(&name, &version), in record() 63 CrateUpdate { name, version, time: chrono::Local::now(), success }, in record() 69 fn key(name: &str, version: &str) -> String { in key() 70 format!("{name}-v{version}") in key()
|
| /development/tools/rmtypedefs/.idea/ |
| D | misc.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project version="4"> 4 <entry_points version="2.0" /> 6 …<component name="ProjectRootManager" version="2" languageLevel="JDK_1_6" assert-keyword="true" jdk…
|
| /development/tools/motion/motion_test_watcher_app/ |
| D | package-lock.json | 3 "version": "0.0.0", string 9 "version": "0.0.0", string 46 "version": "5.2.0", string 58 "version": "2.3.0", string 71 "version": "0.1900.4", string 86 "version": "19.0.4", string 211 "version": "0.1900.4", string 230 "version": "19.0.4", string 257 "version": "19.0.4", string 275 "version": "19.0.3", string [all …]
|
| /development/tools/external_crates/crates_io_util/src/ |
| D | feature_resolver.rs | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 17 use crates_index::Version; 26 version: &'a Version, field 32 pub fn new(version: &'a Version) -> FeatureResolver<'a> { in new() 33 let features = version.features_and_optional_deps(); in new() 34 let deps = BTreeMap::from_iter(version.dependencies().iter().map(|d| (d.name(), d))); in new() 35 FeatureResolver { version, features, deps } in new() 46 return Err(Error::FeatureNotFound(feature, self.version.name().to_string())); in resolve() 60 for child in self.version.features().get(f).unwrap() { in resolve() 68 self.version.name().to_string(), in resolve() [all …]
|
| /development/samples/training/ContactsList/src/com/example/android/contactslist/util/ |
| D | Utils.java | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 73 * Uses static final constants to detect if the device's platform version is Gingerbread or 77 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.GINGERBREAD; in hasGingerbread() 81 * Uses static final constants to detect if the device's platform version is Honeycomb or 85 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB; in hasHoneycomb() 89 * Uses static final constants to detect if the device's platform version is Honeycomb MR1 or 93 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR1; in hasHoneycombMR1() 97 * Uses static final constants to detect if the device's platform version is ICS or 101 return Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH; in hasICS()
|
| /development/samples/browseable/DisplayingBitmaps/src/com.example.android.displayingbitmaps/util/ |
| D | Utils.java | 4 * Licensed under the Apache License, Version 2.0 (the "License"); 60 return Build.VERSION.SDK_INT >= VERSION_CODES.FROYO; in hasFroyo() 64 return Build.VERSION.SDK_INT >= VERSION_CODES.GINGERBREAD; in hasGingerbread() 68 return Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB; in hasHoneycomb() 72 return Build.VERSION.SDK_INT >= VERSION_CODES.HONEYCOMB_MR1; in hasHoneycombMR1() 76 return Build.VERSION.SDK_INT >= VERSION_CODES.JELLY_BEAN; in hasJellyBean() 80 return Build.VERSION.SDK_INT >= VERSION_CODES.KITKAT; in hasKitKat()
|
| /development/samples/NsdManagerSample/ |
| D | build.gradle | 3 id 'com.android.application' version '8.0.0' apply false 4 id 'com.android.library' version '8.0.0' apply false 5 id 'org.jetbrains.kotlin.android' version '1.8.20-RC' apply false
|
| /development/samples/PictureInPicture/ComposePip/ |
| D | build.gradle | 8 id 'com.android.application' version '7.3.0' apply false 9 id 'com.android.library' version '7.3.0' apply false 10 id 'org.jetbrains.kotlin.android' version '1.8.0' apply false
|
| /development/tools/cargo_embargo/testdata/ |
| D | README.md | 17 cargo metadata --format-version 1 | jq --sort-keys \ 28 - `expected_Android.bp`: Adjust the version numbers to match the current version 30 - `crates.json`: Adjust version numbers and `package_dir` as necessary.
|
| /development/samples/devbytes/telephony/SmsSampleProject/.idea/ |
| D | misc.xml | 1 <?xml version="1.0" encoding="UTF-8"?> 2 <project version="4"> 4 <entry_points version="2.0" /> 16 …<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" assert-key…
|
| /development/vndk/tools/header-checker/src/utils/ |
| D | config_file.h | 3 // Licensed under the Apache License, Version 2.0 (the "License"); 90 const std::string &version) const { in HasSection() argument 91 return map_.find({section_name, version}) != map_.end(); in HasSection() 95 const std::string &version) const { in GetSection() argument 96 auto &&it = map_.find({section_name, version}); in GetSection() 105 bool HasProperty(const std::string §ion_name, const std::string &version, in HasProperty() argument 107 auto &&it = map_.find({section_name, version}); in HasProperty() 114 bool GetProperty(const std::string §ion_name, const std::string &version, in GetProperty() argument 116 auto &&it = map_.find({section_name, version}); in GetProperty()
|