Home
last modified time | relevance | path

Searched full:uuid (Results 1 – 25 of 2231) sorted by relevance

12345678910>>...90

/external/python/cpython2/Lib/test/
Dtest_uuid.py5 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/
Dmod.rs2 // 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/
Dtest_uuid.py14 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/
Dbluetooth_gatt_client_utils.py57 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/
Duuid.rst1 :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/
Duuid.rst2 :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/
Dgatt.py47 GATT_GENERIC_ACCESS_SERVICE = UUID.from_16_bits(0x1800, 'Generic Access')
48 GATT_GENERIC_ATTRIBUTE_SERVICE = UUID.from_16_bits(0x1801, 'Generic Attribute')
49 GATT_IMMEDIATE_ALERT_SERVICE = UUID.from_16_bits(0x1802, 'Immediate Alert')
50 GATT_LINK_LOSS_SERVICE = UUID.from_16_bits(0x1803, 'Link Loss')
51 GATT_TX_POWER_SERVICE = UUID.from_16_bits(0x1804, 'TX Power')
52 GATT_CURRENT_TIME_SERVICE = UUID.from_16_bits(0x1805, 'Current Time')
53 GATT_REFERENCE_TIME_UPDATE_SERVICE = UUID.from_16_bits(0x1806, 'Reference Time Update')
54 GATT_NEXT_DST_CHANGE_SERVICE = UUID.from_16_bits(0x1807, 'Next DST Change')
55 GATT_GLUCOSE_SERVICE = UUID.from_16_bits(0x1808, 'Glucose')
56 GATT_HEALTH_THERMOMETER_SERVICE = UUID.from_16_bits(0x1809, 'Health Thermometer')
[all …]
Dcore.py105 # UUID
109 # Base UUID: 00000000-0000-1000-8000- 00805F9B34FB
111 class UUID: class
113 See Bluetooth spec Vol 3, Part B - 2.5.1 UUID
124 raise ValueError('invalid UUID format')
129 raise ValueError('invalid UUID format')
135 for uuid in self.UUIDS:
136 if self == uuid:
137 if uuid.name is None:
138 uuid.name = self.name
[all …]
/external/rust/crates/uuid/
DREADME.md1 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 …]
DCONTRIBUTING.md1 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/rust/crates/uuid/src/builder/
Dmod.rs2 // 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/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowStorageStatsManagerTest.java19 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/rust/crates/uuid/src/
Dlib.rs2 // 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 …]
Dv5.rs4 impl Uuid { impl
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 …]
Dv3.rs4 impl Uuid { impl
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/libchrome/device/bluetooth/
Dbluetooth_uuid.cc27 // 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/python/cpython2/Lib/
Duuid.py1 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/arm-trusted-firmware/tools/fiptool/
Dtbbr_config.c17 .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/perfetto/src/base/
Duuid_unittest.cc17 #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/python/cpython3/Lib/
Duuid.py1 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/bcc/tools/
Ddirtop_example.txt6 # ./dirtop.py -d '/hdfs/uuid/*/yarn'
12 1030 2852 8 147341 /hdfs/uuid/c11da291-28de-4a77-873e-44bb452d238b/yarn
13 3308 2459 10980 24893 /hdfs/uuid/bf829d08-1455-45b8-81fa-05c3303e8c45/yarn
14 2227 7165 6484 11157 /hdfs/uuid/76dc0b77-e2fd-4476-818f-2b5c3c452396/yarn
15 1985 9576 6431 6616 /hdfs/uuid/99c178d5-a209-4af2-8467-7382c7f03c1b/yarn
16 1986 398 6474 6486 /hdfs/uuid/7d512fe7-b20d-464c-a75a-dbf8b687ee1c/yarn
17 764 3685 5 7069 /hdfs/uuid/250b21c8-1714-45fe-8c08-d45d0271c6bd/yarn
18 432 1603 259 6402 /hdfs/uuid/4a833770-767e-43b3-b696-dc98901bce26/yarn
19 993 5856 320 129 /hdfs/uuid/b94cbf3f-76b1-4ced-9043-02d450b9887c/yarn
20 612 5645 4 249 /hdfs/uuid/8138a53b-b942-44d3-82df-51575f1a3901/yarn
[all …]
/external/rust/crates/uuid/benches/
Dinvalid_parse_str.rs5 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.c2 * 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/exoplayer/tree/library/extractor/src/main/java/com/google/android/exoplayer2/extractor/mp4/
DPsshAtomUtil.java22 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 …]
/external/e2fsprogs/lib/uuid/
Dtst_uuid.c2 * 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 …]

12345678910>>...90