/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/rust/crates/uuid/src/adapter/ |
D | mod.rs | 2 // Copyright 2018 The Uuid Project Developers. 20 /// An adaptor for formatting an [`Uuid`] as a hyphenated string. 22 /// Takes an owned instance of the [`Uuid`]. 24 /// [`Uuid`]: ../struct.Uuid.html 26 pub struct Hyphenated(Uuid); 28 /// An adaptor for formatting an [`Uuid`] as a hyphenated string. 30 /// Takes a reference of the [`Uuid`]. 32 /// [`Uuid`]: ../struct.Uuid.html 34 pub struct HyphenatedRef<'a>(&'a Uuid); 36 /// An adaptor for formatting an [`Uuid`] as a simple string. [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_uuid.py | 13 py_uuid = support.import_fresh_module('uuid', blocked=['_uuid']) 14 c_uuid = support.import_fresh_module('uuid', fresh=['_uuid']) 31 uuid = None variable in BaseTestUUID 45 'urn:uuid:00000000-0000-0000-0000-000000000000', 46 0, 0, self.uuid.RESERVED_NCS, None), 54 'urn:uuid:00010203-0405-0607-0809-0a0b0c0d0e0f', 55 0x607040500010203, 0x809, self.uuid.RESERVED_NCS, None), 63 'urn:uuid:02d9e6d5-9467-382e-8f9b-9300a64ac3cd', 64 0x82e946702d9e6d5, 0xf9b, self.uuid.RFC_4122, 3), 72 'urn:uuid:12345678-1234-5678-1234-567812345678', [all …]
|
/external/autotest/server/cros/bluetooth/ |
D | bluetooth_gatt_client_utils.py | 57 for uuid in servs_json: 58 path = servs_json[uuid]['path'] 59 service_obj = GATT_Service(uuid, path, bluetooth_facade) 63 chrcs_json = servs_json[uuid]['characteristics'] 64 for uuid in chrcs_json: 65 path = chrcs_json[uuid]['path'] 66 chrc_obj = GATT_Characteristic(uuid, path, bluetooth_facade) 70 descs_json = chrcs_json[uuid]['descriptors'] 71 for uuid in descs_json: 72 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/rust/crates/uuid/ |
D | README.md | 1 uuid section 4 [![Latest Version](https://img.shields.io/crates/v/uuid.svg)](https://crates.io/crates/uuid) 5 …[Join the chat at https://gitter.im/uuid-rs/Lobby](https://badges.gitter.im/Join%20Chat.svg)](http… 7 …yor.com/api/projects/status/github/uuid-rs/uuid?branch=master&svg=true)](https://ci.appveyor.com/p… 8 [![Build Status](https://travis-ci.org/uuid-rs/uuid.svg?branch=master)](https://travis-ci.org/uuid-… 9 …ttps://isitmaintained.com/badge/resolution/uuid-rs/uuid.svg)](https://isitmaintained.com/project/u… 10 …pen](https://isitmaintained.com/badge/open/uuid-rs/uuid.svg)](https://isitmaintained.com/project/u… 17 Provides support for Universally Unique Identifiers (UUIDs). A UUID is a 23 disparate areas, such as databases and network protocols. Typically a UUID 34 [`Uuid`]s. You need to enable the following Cargo features to enable [all …]
|
D | CONTRIBUTING.md | 1 Contributing to Uuid 3 [Contributing to Uuid]: #contributing-to-uuid argument 5 Thank you for your interest in contributing to the Uuid Project! 16 on [uuid-rs mailing list] or join our [gitter] channel. 25 The `uuid` crate is still in flux. All features desired may not be present. As 26 such you are welcome to request for new features. Keep in mind that `uuid` is 42 [Feature Request Link]: https://github.com/uuid-rs/uuid/issues/new?template=Feature_request.md 69 [Bug Report Link]: https://github.com/uuid-rs/uuid/issues/new?template=Bug_report.md 74 Pull requests(PRs) are the primary mechanism we use to change Uuid. GitHub itself 90 > Uuid Project has a minimum rust version policy. Currently `uuid` should [all …]
|
/external/llvm-project/clang/test/SemaCXX/ |
D | ms-uuid.cpp | 12 // cl.exe's behavior with merging uuid attributes is a bit erratic: 13 // * In []-style attributes, a single [] list must not list a duplicate uuid 14 // (even if it's the same uuid), and only a single declaration of a class 15 // must have a uuid else the compiler errors out (even if two declarations of 16 // a class have the same uuid). 17 // * For __declspec(uuid(...)), it's ok if several declarations of a class have 18 // an uuid, as long as it's the same uuid each time. If uuids on declarations 20 // * If there are several __declspec(uuid(...))s on one declaration, the 21 // compiler only warns about this and uses the last uuid. It even warns if 32 class __declspec(uuid("000000A0-0000-0000-C000-000000000049")) C1; [all …]
|
/external/llvm-project/clang/test/Parser/ |
D | ms-square-bracket-attributes.mm | 12 [uuid( "000000A0-0000-0000-C000-000000000049" )] struct struct_with_uuid; 14 // Optionally, the uuid can be surrounded by one set of braces. 15 [uuid( 20 // expected-error@+1 {{uuid attribute contains a malformed GUID}} 21 [uuid(u8"000000A0-0000-0000-C000-000000000049")] struct struct_with_uuid_u8; 22 // expected-error@+1 {{uuid attribute contains a malformed GUID}} 23 [uuid(L"000000A0-0000-0000-C000-000000000049")] struct struct_with_uuid_L; 26 // allow it for __declspec(uuid()) (u8 literals etc are not allowed there 30 [uuid(R"(000000A0-0000-0000-C000-000000000049)")] struct struct_with_uuid_raw; 32 // Likewise, cl supports UCNs in declspec uuid, but not in []-style uuid. [all …]
|
/external/rust/crates/uuid/src/builder/ |
D | mod.rs | 2 // Copyright 2018 The Uuid Project Developers. 12 //! A Builder type for [`Uuid`]s. 14 //! [`Uuid`]: ../struct.Uuid.html 21 impl Uuid { impl 22 /// The 'nil UUID'. 24 /// The nil UUID is special form of UUID that is specified to have all 34 /// use uuid::Uuid; 36 /// let uuid = Uuid::nil(); 39 /// uuid.to_hyphenated().to_string(), 44 Uuid::from_bytes([0; 16]) in nil() [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/src/ |
D | v5.rs | 4 impl Uuid { implementation 5 /// Creates a UUID using a name from a namespace, based on the SHA-1 hash. 17 /// [`NAMESPACE_DNS`]: struct.Uuid.html#associatedconst.NAMESPACE_DNS 18 /// [`NAMESPACE_OID`]: struct.Uuid.html#associatedconst.NAMESPACE_OID 19 /// [`NAMESPACE_URL`]: struct.Uuid.html#associatedconst.NAMESPACE_URL 20 /// [`NAMESPACE_X500`]: struct.Uuid.html#associatedconst.NAMESPACE_X500 21 pub fn new_v5(namespace: &Uuid, name: &[u8]) -> Uuid { in new_v5() argument 47 static FIXTURE: &'static [(&'static Uuid, &'static str, &'static str)] = &[ variable 49 &Uuid::NAMESPACE_DNS, 54 &Uuid::NAMESPACE_DNS, [all …]
|
D | lib.rs | 2 // Copyright 2018 The Uuid Project Developers. 14 //! Provides support for Universally Unique Identifiers (UUIDs). A UUID is a 20 //! disparate areas, such as databases and network protocols. Typically a UUID 34 //! * `v1` - adds the [`Uuid::new_v1`] function and the ability to create a V1 37 //! * `v3` - adds the [`Uuid::new_v3`] function and the ability to create a V3 38 //! UUID based on the MD5 hash of some data. 39 //! * `v4` - adds the [`Uuid::new_v4`] function and the ability to randomly 40 //! generate a UUID. 41 //! * `v5` - adds the [`Uuid::new_v5`] function and the ability to create a V5 42 //! UUID based on the SHA1 hash of some data. [all …]
|
D | v3.rs | 4 impl Uuid { implementation 5 /// Creates a UUID using a name from a namespace, based on the MD5 22 pub fn new_v3(namespace: &Uuid, name: &[u8]) -> Uuid { in new_v3() argument 47 static FIXTURE: &'static [(&'static Uuid, &'static str, &'static str)] = &[ variable 49 &Uuid::NAMESPACE_DNS, 54 &Uuid::NAMESPACE_DNS, 59 &Uuid::NAMESPACE_DNS, 64 &Uuid::NAMESPACE_DNS, 69 &Uuid::NAMESPACE_URL, 74 &Uuid::NAMESPACE_URL, [all …]
|
/external/llvm-project/lldb/include/lldb/Utility/ |
D | UUID.h | 1 //===-- UUID.h --------------------------------------------------*- C++ -*-===// 23 class UUID { 25 UUID() = default; 35 } Uuid; member 40 /// Create a UUID from CvRecordPdb70. 41 static UUID fromCvRecord(CvRecordPdb70 debug_info); 43 /// Creates a UUID from the data pointed to by the bytes argument. No special 45 static UUID fromData(const void *bytes, uint32_t num_bytes) { in fromData() 48 return UUID(); in fromData() 51 /// Creates a uuid from the data pointed to by the bytes argument. No special [all …]
|
/external/llvm-project/lldb/unittests/Utility/ |
D | UUIDTest.cpp | 11 #include "lldb/Utility/UUID.h" 16 UUID empty; in TEST() 17 UUID a16 = UUID::fromData("1234567890123456", 16); in TEST() 18 UUID b16 = UUID::fromData("1234567890123457", 16); in TEST() 19 UUID a20 = UUID::fromData("12345678901234567890", 20); in TEST() 20 UUID b20 = UUID::fromData("12345678900987654321", 20); in TEST() 38 UUID empty; in TEST() 40 UUID a16 = UUID::fromData(zeroes.data(), 16); in TEST() 41 UUID a20 = UUID::fromData(zeroes.data(), 20); in TEST() 42 UUID a16_0 = UUID::fromOptionalData(zeroes.data(), 16); in TEST() [all …]
|
/external/perfetto/src/base/ |
D | uuid_unittest.cc | 17 #include "perfetto/ext/base/uuid.h" 27 TEST(Uuid, DefaultConstructorIsBlank) { in TEST() argument 28 Uuid a; in TEST() 29 Uuid b; in TEST() 35 TEST(Uuid, TwoUuidsShouldBeDifferent) { in TEST() argument 36 Uuid a = Uuidv4(); in TEST() 37 Uuid b = Uuidv4(); in TEST() 43 TEST(Uuid, CanRoundTripUuid) { in TEST() argument 44 Uuid uuid = Uuidv4(); in TEST() local 45 EXPECT_EQ(Uuid(uuid.ToString()), uuid); in TEST() [all …]
|
/external/arm-trusted-firmware/tools/fiptool/ |
D | tbbr_config.c | 17 .uuid = UUID_TRUSTED_UPDATE_FIRMWARE_SCP_BL2U, 22 .uuid = UUID_TRUSTED_UPDATE_FIRMWARE_BL2U, 27 .uuid = UUID_TRUSTED_UPDATE_FIRMWARE_NS_BL2U, 32 .uuid = UUID_TRUSTED_FWU_CERT, 37 .uuid = UUID_TRUSTED_BOOT_FIRMWARE_BL2, 42 .uuid = UUID_SCP_FIRMWARE_SCP_BL2, 47 .uuid = UUID_EL3_RUNTIME_FIRMWARE_BL31, 52 .uuid = UUID_SECURE_PAYLOAD_BL32, 57 .uuid = UUID_SECURE_PAYLOAD_BL32_EXTRA1, 62 .uuid = UUID_SECURE_PAYLOAD_BL32_EXTRA2, [all …]
|
/external/python/cpython2/Lib/ |
D | uuid.py | 1 r"""UUID objects (universally unique identifiers) according to RFC 4122. 3 This module provides immutable UUID objects (class UUID) and the functions 8 Note that uuid1() may compromise privacy since it creates a UUID containing 9 the computer's network address. uuid4() creates a random UUID. 13 >>> import uuid 15 # make a UUID based on the host ID and current time 16 >>> uuid.uuid1() 17 UUID('a8098c1a-f86e-11da-bd1a-00112444be1e') 19 # make a UUID using an MD5 hash of a namespace UUID and a name 20 >>> uuid.uuid3(uuid.NAMESPACE_DNS, 'python.org') [all …]
|
/external/python/cpython3/Lib/ |
D | uuid.py | 1 r"""UUID objects (universally unique identifiers) according to RFC 4122. 3 This module provides immutable UUID objects (class UUID) and the functions 8 Note that uuid1() may compromise privacy since it creates a UUID containing 9 the computer's network address. uuid4() creates a random UUID. 13 >>> import uuid 15 # make a UUID based on the host ID and current time 16 >>> uuid.uuid1() # doctest: +SKIP 17 UUID('a8098c1a-f86e-11da-bd1a-00112444be1e') 19 # make a UUID using an MD5 hash of a namespace UUID and a name 20 >>> uuid.uuid3(uuid.NAMESPACE_DNS, 'python.org') [all …]
|
/external/rust/crates/uuid/benches/ |
D | invalid_parse_str.rs | 5 use uuid::Uuid; 10 let _ = Uuid::parse_str(""); in bench_parse_invalid_strings() 11 let _ = Uuid::parse_str("!"); in bench_parse_invalid_strings() 12 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E45"); in bench_parse_invalid_strings() 13 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-BBF-329BF39FA1E4"); in bench_parse_invalid_strings() 14 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-BGBF-329BF39FA1E4"); in bench_parse_invalid_strings() 15 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa-B6BFF329BF39FA1E4"); in bench_parse_invalid_strings() 16 let _ = Uuid::parse_str("F9168C5E-CEB2-4faa"); in bench_parse_invalid_strings() 17 let _ = Uuid::parse_str("F9168C5E-CEB2-4faaXB6BFF329BF39FA1E4"); in bench_parse_invalid_strings() 18 let _ = Uuid::parse_str("F9168C5E-CEB-24fa-eB6BFF32-BF39FA1E4"); in bench_parse_invalid_strings() [all …]
|
/external/python/cpython3/Modules/ |
D | _uuidmodule.c | 2 * Python UUID module that wraps libuuid or Windows rpcrt4.dll. 10 #include <uuid/uuid.h> 12 #include <uuid.h> 25 uuid_t uuid; in py_uuid_generate_time_safe() local 29 res = uuid_generate_time_safe(uuid); in py_uuid_generate_time_safe() 30 return Py_BuildValue("y#i", (const char *) uuid, sizeof(uuid), res); in py_uuid_generate_time_safe() 33 uuid_create(&uuid, &status); in py_uuid_generate_time_safe() 35 unsigned char buf[sizeof(uuid)]; in py_uuid_generate_time_safe() 36 uuid_enc_be(buf, &uuid); in py_uuid_generate_time_safe() 37 return Py_BuildValue("y#i", buf, sizeof(uuid), (int) status); in py_uuid_generate_time_safe() [all …]
|
/external/e2fsprogs/lib/uuid/ |
D | tst_uuid.c | 2 * tst_uuid.c --- test program from the UUID library 40 #define UUID MYUUID macro 46 #include <uuid/uuid.h> 48 static int test_uuid(const char * uuid, int isValid) in test_uuid() argument 54 parsedOk = uuid_parse(uuid, uuidBits) == 0; in test_uuid() 56 printf("%s is %s", uuid, validStr[isValid]); in test_uuid() 85 printf("UUID generate = %s\n", str); in main() 86 printf("UUID: "); in main() 92 printf("UUID type = %d, UUID variant = %d\n", type, variant); in main() 94 printf("Incorrect UUID Variant; was expecting DCE!\n"); in main() [all …]
|
/external/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/ |
D | PsshAtomUtil.java | 22 import java.util.UUID; 40 public static byte[] buildPsshAtom(UUID systemId, @Nullable byte[] data) { in buildPsshAtom() 53 UUID systemId, @Nullable UUID[] keyIds, @Nullable byte[] data) { in buildPsshAtom() 67 for (UUID keyId : keyIds) { in buildPsshAtom() 90 * Parses the UUID from a PSSH atom. Version 0 and 1 PSSH atoms are supported. 92 * <p>The UUID is only parsed if the data is a valid PSSH atom. 95 * @return The parsed UUID. Null if the input is not a valid PSSH atom, or if the PSSH atom has an 99 public static UUID parseUuid(byte[] atom) { in parseUuid() 104 return parsedAtom.uuid; in parseUuid() 128 * UUID, or if the data is a valid PSSH atom of any type in the case that the passed UUID is null. [all …]
|