| /external/pigweed/pw_bluetooth/public/pw_bluetooth/ |
| D | assigned_uuids.h | 16 // 16-bit UUID Assigned Numbers. 17 // Source: Bluetooth "16-bit UUID Numbers Document" revision 2022-10-07 23 #include "pw_bluetooth/uuid.h" 30 static constexpr Uuid kCharacteristicExtendedProperties{0x2900}; 31 static constexpr Uuid kCharacteristicUserDescription{0x2901}; 32 static constexpr Uuid kClientCharacteristicConfiguration{0x2902}; 33 static constexpr Uuid kServerCharacteristicConfiguration{0x2903}; 34 static constexpr Uuid kCharacteristicPresentationFormat{0x2904}; 35 static constexpr Uuid kCharacteristicAggregateFormat{0x2905}; 36 static constexpr Uuid kValidRange{0x2906}; [all …]
|
| D | uuid.h | 27 // A 128-bit Universally Unique Identifier (UUID). 30 // Bluetooth defines 16-bit, 32-bit and 128-bit UUID representations for a 31 // 128-bit UUID, all of which are used in the protocol. 16-bit UUIDs values 32 // define only the "YYYY" portion in the following UUID pattern (with XXXX set 33 // as 0), while 32-bit UUID value define the "XXXXYYYY" portion. When using 38 // This class always stores UUID in their 128-bit representation in little 40 class Uuid { 42 // String size of a hexadecimal representation of a UUID, not including the 46 // Create a UUID from a span of 128-bit data. UUIDs are represented as 48 explicit constexpr Uuid(const span<const uint8_t, 16> uuid_span) : uuid_() { in Uuid() function [all …]
|
| /external/rust/crates/uuid/tests/ui/compile_fail/ |
| D | invalid_parse.rs | 1 use uuid::{uuid, Uuid}; 3 const _: Uuid = uuid!(""); 4 const _: Uuid = uuid!("!"); 5 const _: Uuid = uuid!("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E45"); 6 const _: Uuid = uuid!("F9168C5E-CEB2-4faa-BBF-329BF39FA1E4"); 7 const _: Uuid = uuid!("F9168C5E-CEB2-4faa-BGBF-329BF39FA1E4"); 8 const _: Uuid = uuid!("F9168C5E-CEB2-4faa-B6BFF329BF39FA1E4"); 9 const _: Uuid = uuid!("F9168C5E-CEB2-4faa"); 10 const _: Uuid = uuid!("F9168C5E-CEB2-4faaXB6BFF329BF39FA1E4"); 11 const _: Uuid = uuid!("F9168C5E-CEB-24fa-eB6BFF32-BF39FA1E4"); [all …]
|
| D | invalid_parse.stderr | 4 3 | const _: Uuid = uuid!(""); 7 …= note: this error originates in the macro `uuid` (in Nightly builds, run with -Z macro-backtrace … 9 error: invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-zA-Z], found… 12 4 | const _: Uuid = uuid!("!"); 18 5 | const _: Uuid = uuid!("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E45"); 24 6 | const _: Uuid = uuid!("F9168C5E-CEB2-4faa-BBF-329BF39FA1E4"); 27 error: invalid character: expected an optional prefix of `urn:uuid:` followed by [0-9a-zA-Z], found… 30 7 | const _: Uuid = uuid!("F9168C5E-CEB2-4faa-BGBF-329BF39FA1E4"); 36 8 | const _: Uuid = uuid!("F9168C5E-CEB2-4faa-B6BFF329BF39FA1E4"); 39 …= note: this error originates in the macro `uuid` (in Nightly builds, run with -Z macro-backtrace … [all …]
|
| /external/python/cpython2/Lib/test/ |
| D | test_uuid.py | 5 import uuid 27 'urn:uuid:00000000-0000-0000-0000-000000000000', 28 0, 0, uuid.RESERVED_NCS, None), 36 'urn:uuid:00010203-0405-0607-0809-0a0b0c0d0e0f', 37 0x607040500010203L, 0x809, uuid.RESERVED_NCS, None), 45 'urn:uuid:02d9e6d5-9467-382e-8f9b-9300a64ac3cd', 46 0x82e946702d9e6d5L, 0xf9b, uuid.RFC_4122, 3), 54 'urn:uuid:12345678-1234-5678-1234-567812345678', 55 0x678123412345678L, 0x1234, uuid.RESERVED_NCS, None), 63 'urn:uuid:6ba7b810-9dad-11d1-80b4-00c04fd430c8', [all …]
|
| /external/cronet/base/ |
| D | uuid.cc | 5 #include "base/uuid.h" 30 // Returns a canonical Uuid string given that `input` is validly formatted 65 Uuid uuid = Uuid::GenerateRandomV4(); in GenerateUuid() local 66 return uuid.AsLowercaseString(); in GenerateUuid() 78 Uuid Uuid::GenerateRandomV4() { in GenerateRandomV4() 87 Uuid Uuid::FormatRandomDataAsV4( in FormatRandomDataAsV4() 94 Uuid Uuid::FormatRandomDataAsV4ForTesting(base::span<const uint8_t, 16> input) { in FormatRandomDataAsV4ForTesting() 99 Uuid Uuid::FormatRandomDataAsV4Impl(base::span<const uint8_t, 16> input) { in FormatRandomDataAsV4Impl() 105 // Set the Uuid to version 4 as described in RFC 4122, section 4.4. in FormatRandomDataAsV4Impl() 106 // The format of Uuid version 4 must be xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, in FormatRandomDataAsV4Impl() [all …]
|
| D | uuid.h | 26 // DEPRECATED(crbug.com/1195446): Use Uuid::GenerateRandomV4() instead. 29 // DEPRECATED(crbug.com/1195446): Use Uuid::ParseCaseInsensitive() and 30 // Uuid::is_valid() instead. 33 // DEPRECATED(crbug.com/1195446): Use Uuid::ParseLowercase() and 34 // Uuid::is_valid() instead. 37 class BASE_EXPORT Uuid { 39 // Length in bytes of the input required to format the input as a Uuid in the 43 // Generate a 128-bit random Uuid in the form of version 4. see RFC 4122, 44 // section 4.4. The format of Uuid version 4 must be 48 // UnguessableToken for greater type-safety if Uuid format is unnecessary. [all …]
|
| D | uuid_unittest.cc | 5 #include "base/uuid.h" 39 const Uuid guid1 = Uuid::ParseCaseInsensitive(guid_str1); in TEST() 41 const Uuid guid2 = Uuid::ParseCaseInsensitive(guid_str2); in TEST() 48 // The format of Uuid version 4 must be xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, 50 bool IsValidV4(const Uuid& guid) { in IsValidV4() 62 const Uuid guid1 = Uuid::GenerateRandomV4(); in TEST() 63 const Uuid guid2 = Uuid::GenerateRandomV4(); in TEST() 77 const Uuid guid = Uuid::ParseCaseInsensitive(input); in TestUuidValidity() 81 const Uuid guid = Uuid::ParseLowercase(input); in TestUuidValidity() 89 // Empty Uuid is invalid. in TEST() [all …]
|
| /external/rust/crates/uuid/src/ |
| D | fmt.rs | 2 // Copyright 2018 The Uuid Project Developers. 16 Uuid, Variant, 19 impl std::fmt::Debug for Uuid { implementation 26 impl fmt::Display for Uuid { implementation 43 impl fmt::LowerHex for Uuid { implementation 49 impl fmt::UpperHex for Uuid { implementation 56 /// Format a [`Uuid`] as a hyphenated string, like 60 pub struct Hyphenated(Uuid); 62 /// Format a [`Uuid`] as a simple string, like 66 pub struct Simple(Uuid); [all …]
|
| D | macros.rs | 6 macro_rules! uuid { 7 ($uuid:literal) => {{ 8 $crate::Uuid::from_bytes($crate::uuid_macro_internal::parse_lit!($uuid)) 15 macro_rules! uuid { 16 ($uuid:literal) => {{ 17 const OUTPUT: $crate::Uuid = match $crate::Uuid::try_parse($uuid) { 23 let _ = ["invalid uuid representation"][1]; 35 /// Parse [`Uuid`][uuid::Uuid]s from string literals at compile time. 40 /// [`Uuid`][uuid::Uuid] into the bytes representation, raising a compilation 48 /// # use uuid::{uuid, Uuid}; [all …]
|
| D | builder.rs | 2 // Copyright 2018 The Uuid Project Developers. 12 //! A Builder type for [`Uuid`]s. 14 //! [`Uuid`]: ../struct.Uuid.html 16 use crate::{error::*, timestamp, Bytes, Uuid, Variant, Version}; 18 /// A builder for creating a UUID. 20 /// This type is useful if you need to mutate individual fields of a [`Uuid`] 21 /// while constructing it. Since the [`Uuid`] type is `Copy`, it doesn't offer 24 /// The `Builder` type also always exposes APIs to construct [`Uuid`]s for any 26 /// lower-level API than the methods on [`Uuid`]. 30 /// Creating a version 4 UUID from externally generated random bytes: [all …]
|
| D | v5.rs | 1 use crate::Uuid; 3 impl Uuid { implementation 4 /// Creates a UUID using a name from a namespace, based on the SHA-1 hash. 18 /// Generating a SHA1 DNS UUID for `rust-lang.org`: 21 /// # use uuid::{Uuid, Version}; 22 /// let uuid = Uuid::new_v5(&Uuid::NAMESPACE_DNS, b"rust-lang.org"); 24 /// assert_eq!(Some(Version::Sha1), uuid.get_version()); 31 /// [`NAMESPACE_DNS`]: struct.Uuid.html#associatedconst.NAMESPACE_DNS 32 /// [`NAMESPACE_OID`]: struct.Uuid.html#associatedconst.NAMESPACE_OID 33 /// [`NAMESPACE_URL`]: struct.Uuid.html#associatedconst.NAMESPACE_URL [all …]
|
| D | parser.rs | 2 // Copyright 2018 The Uuid Project Developers. 12 //! [`Uuid`] parsing constructs and utilities. 14 //! [`Uuid`]: ../struct.Uuid.html 19 Uuid, 22 impl str::FromStr for Uuid { implementation 26 Uuid::parse_str(uuid_str) in from_str() 30 impl TryFrom<&'_ str> for Uuid { implementation 34 Uuid::parse_str(uuid_str) in try_from() 38 impl Uuid { impl 39 /// Parses a `Uuid` from a string of hexadecimal digits with optional [all …]
|
| D | lib.rs | 2 // Copyright 2018 The Uuid Project Developers. 14 //! Here's an example of a UUID: 20 //! A UUID is a unique 128-bit value, stored as 16 octets, and regularly 25 //! disparate areas, such as databases and network protocols. Typically a UUID 34 …itions [in draft](https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04). 41 //! [dependencies.uuid] 50 //! When you want a UUID, you can generate one: 56 //! use uuid::Uuid; 58 //! let id = Uuid::new_v4(); 63 //! If you have a UUID value, you can use its string literal form inline: [all …]
|
| /external/python/cpython3/Lib/test/ |
| D | test_uuid.py | 14 py_uuid = import_helper.import_fresh_module('uuid', blocked=['_uuid']) 15 c_uuid = import_helper.import_fresh_module('uuid', fresh=['_uuid']) 32 uuid = None variable in BaseTestUUID 46 'urn:uuid:00000000-0000-0000-0000-000000000000', 47 0, 0, self.uuid.RESERVED_NCS, None), 55 'urn:uuid:00010203-0405-0607-0809-0a0b0c0d0e0f', 56 0x607040500010203, 0x809, self.uuid.RESERVED_NCS, None), 64 'urn:uuid:02d9e6d5-9467-382e-8f9b-9300a64ac3cd', 65 0x82e946702d9e6d5, 0xf9b, self.uuid.RFC_4122, 3), 73 'urn:uuid:12345678-1234-5678-1234-567812345678', [all …]
|
| /external/autotest/server/cros/bluetooth/ |
| D | bluetooth_gatt_client_utils.py | 58 for uuid in servs_json: 59 path = servs_json[uuid]['path'] 60 service_obj = GATT_Service(uuid, path, bluetooth_facade) 64 chrcs_json = servs_json[uuid]['characteristics'] 65 for uuid in chrcs_json: 66 path = chrcs_json[uuid]['path'] 67 chrc_obj = GATT_Characteristic(uuid, path, bluetooth_facade) 71 descs_json = chrcs_json[uuid]['descriptors'] 72 for uuid in descs_json: 73 path = descs_json[uuid]['path'] [all …]
|
| /external/python/cpython3/Doc/library/ |
| D | uuid.rst | 1 :mod:`uuid` --- UUID objects according to :rfc:`4122` 4 .. module:: uuid 5 :synopsis: UUID objects (universally unique identifiers) according to RFC 4122 9 **Source code:** :source:`Lib/uuid.py` 13 This module provides immutable :class:`UUID` objects (the :class:`UUID` class) 19 a UUID containing the computer's network address. :func:`uuid4` creates a 20 random UUID. 23 not return a "safe" UUID. A safe UUID is one which is generated using 25 UUID. All instances of :class:`UUID` have an :attr:`is_safe` attribute 26 which relays any information about the UUID's safety, using this enumeration: [all …]
|
| /external/python/cpython2/Doc/library/ |
| D | uuid.rst | 2 :mod:`uuid` --- UUID objects according to RFC 4122 5 .. module:: uuid 6 :synopsis: UUID objects (universally unique identifiers) according to RFC 4122 13 This module provides immutable :class:`UUID` objects (the :class:`UUID` class) 19 a UUID containing the computer's network address. :func:`uuid4` creates a 20 random UUID. 23 .. class:: UUID([hex[, bytes[, bytes_le[, fields[, int[, version]]]]]]) 25 Create a UUID from either a string of 32 hexadecimal digits, a string of 16 33 expressions all yield the same UUID:: 35 UUID('{12345678-1234-5678-1234-567812345678}') [all …]
|
| /external/python/bumble/bumble/ |
| D | gatt.py | 34 from .core import UUID, get_dict_key_by_value 54 GATT_GENERIC_ACCESS_SERVICE = UUID.from_16_bits(0x1800, 'Generic Access') 55 GATT_GENERIC_ATTRIBUTE_SERVICE = UUID.from_16_bits(0x1801, 'Generic Attribute') 56 GATT_IMMEDIATE_ALERT_SERVICE = UUID.from_16_bits(0x1802, 'Immediate Alert') 57 GATT_LINK_LOSS_SERVICE = UUID.from_16_bits(0x1803, 'Link Loss') 58 GATT_TX_POWER_SERVICE = UUID.from_16_bits(0x1804, 'TX Power') 59 GATT_CURRENT_TIME_SERVICE = UUID.from_16_bits(0x1805, 'Current Time') 60 GATT_REFERENCE_TIME_UPDATE_SERVICE = UUID.from_16_bits(0x1806, 'Reference Time Update') 61 GATT_NEXT_DST_CHANGE_SERVICE = UUID.from_16_bits(0x1807, 'Next DST Change') 62 GATT_GLUCOSE_SERVICE = UUID.from_16_bits(0x1808, 'Glucose') [all …]
|
| D | core.py | 138 # UUID 142 # Base UUID: 00000000-0000-1000-8000- 00805F9B34FB 144 class UUID: class 146 See Bluetooth spec Vol 3, Part B - 2.5.1 UUID 153 UUIDS: List[UUID] = [] # Registry of all instances created 166 raise ValueError('invalid UUID format') 171 raise ValueError(f"invalid UUID format: {uuid_str}") 178 for uuid in self.UUIDS: 179 if self == uuid: 180 if uuid.name is None: [all …]
|
| /external/perfetto/src/base/ |
| D | uuid_unittest.cc | 17 #include "perfetto/ext/base/uuid.h" 28 Uuid a; in TEST() 29 Uuid b; in TEST() 36 Uuid a = Uuidv4(); in TEST() 37 Uuid b = Uuidv4(); in TEST() 44 Uuid uuid = Uuidv4(); in TEST() local 45 EXPECT_EQ(Uuid(uuid.ToString()), uuid); in TEST() 49 Uuid a = Uuidv4(); in TEST() 50 Uuid b; in TEST() 56 Uuid uuid(-6605018796207623390, 1314564453825188563); in TEST() local [all …]
|
| /external/rust/crates/uuid/tests/ui/compile_pass/ |
| D | valid.rs | 1 use uuid::{uuid, Uuid}; 3 const _: Uuid = uuid!("00000000000000000000000000000000"); 4 const _: Uuid = uuid!("67e55044-10b1-426f-9247-bb680e5fe0c8"); 5 const _: Uuid = uuid!("67e55044-10b1-426f-9247-bb680e5fe0c8"); 6 const _: Uuid = uuid!("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4"); 7 const _: Uuid = uuid!("67e5504410b1426f9247bb680e5fe0c8"); 8 const _: Uuid = uuid!("01020304-1112-2122-3132-414243444546"); 9 const _: Uuid = uuid!("urn:uuid:67e55044-10b1-426f-9247-bb680e5fe0c8"); 12 const _: Uuid = uuid!("00000000000000000000000000000000"); 13 const _: Uuid = uuid!("00000000-0000-0000-0000-000000000000"); [all …]
|
| /external/robolectric/robolectric/src/test/java/org/robolectric/shadows/ |
| D | ShadowStorageStatsManagerTest.java | 19 import java.util.UUID; 52 UUID newUuid = UUID.randomUUID(); in getFreeBytes_unregisteredUuid_throwsException() 61 UUID newUuid = UUID.randomUUID(); in getFreeBytes_registeredNewUuid_returnSetupValue() 100 UUID newUuid = UUID.randomUUID(); in getTotalBytes_unregisteredUuid_throwsException() 109 UUID newUuid = UUID.randomUUID(); in getTotalBytes_registeredNewUuid_returnSetupValue() 143 UUID.randomUUID(), "somePackageName", Process.myUserHandle())); in queryPackageWithoutSetup_shouldFail() 152 .queryStatsForUser(UUID.randomUUID(), Process.myUserHandle())); in queryUserWithoutSetup_shouldFail() 159 UUID uuid = UUID.randomUUID(); in queryPackageWithCorrectArguments_shouldReturnSetupValue() local 162 shadowOf(storageStatsManager).addStorageStats(uuid, packageName, userHandle, expected); in queryPackageWithCorrectArguments_shouldReturnSetupValue() 166 shadowOf(storageStatsManager).queryStatsForPackage(uuid, packageName, userHandle); in queryPackageWithCorrectArguments_shouldReturnSetupValue() [all …]
|
| /external/libchrome/device/bluetooth/ |
| D | bluetooth_uuid.cc | 27 // Returns the canonical, 128-bit canonical, and the format of the UUID 28 // in |canonical|, |canonical_128|, and |format| based on |uuid|. 29 void GetCanonicalUuid(std::string uuid, in GetCanonicalUuid() argument 38 if (uuid.empty()) in GetCanonicalUuid() 41 if (uuid.size() < 11 && in GetCanonicalUuid() 42 base::StartsWith(uuid, "0x", base::CompareCase::SENSITIVE)) { in GetCanonicalUuid() 43 uuid = uuid.substr(2); in GetCanonicalUuid() 46 if (!(uuid.size() == 4 || uuid.size() == 8 || uuid.size() == 36)) in GetCanonicalUuid() 49 for (size_t i = 0; i < uuid.size(); ++i) { in GetCanonicalUuid() 51 if (uuid[i] != '-') in GetCanonicalUuid() [all …]
|
| /external/rust/crates/uuid/ |
| D | README.md | 1 # `uuid` 3 [](https://crates.io/crates/uuid) 5 …ous integration](https://github.com/uuid-rs/uuid/actions/workflows/ci.yml/badge.svg)](https://gith… 7 Here's an example of a UUID: 13 A UUID is a unique 128-bit value, stored as 16 octets, and regularly 18 disparate areas, such as databases and network protocols. Typically a UUID 31 [dependencies.uuid] 40 When you want a UUID, you can generate one: 43 use uuid::Uuid; 45 let id = Uuid::new_v4(); [all …]
|