Home
last modified time | relevance | path

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

12345678910>>...43

/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/python/cpython3/Lib/test/
Dtest_uuid.py13 py_uuid = support.import_fresh_module('uuid', blocked=['_uuid'])
14 c_uuid = support.import_fresh_module('uuid', fresh=['_uuid'])
26 uuid = None variable in BaseTestUUID
40 'urn:uuid:00000000-0000-0000-0000-000000000000',
41 0, 0, self.uuid.RESERVED_NCS, None),
49 'urn:uuid:00010203-0405-0607-0809-0a0b0c0d0e0f',
50 0x607040500010203, 0x809, self.uuid.RESERVED_NCS, None),
58 'urn:uuid:02d9e6d5-9467-382e-8f9b-9300a64ac3cd',
59 0x82e946702d9e6d5, 0xf9b, self.uuid.RFC_4122, 3),
67 'urn:uuid:12345678-1234-5678-1234-567812345678',
[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/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 …]
Dbluetooth_uuid.h21 // Opaque wrapper around a Bluetooth UUID. Instances of UUID represent the
25 // constructed using a string representing 16, 32, or 128 bit UUID formats.
36 // Single argument constructor. |uuid| can be a 16, 32, or 128 bit UUID
45 // 16 and 32 bit UUIDs will be internally converted to a 128 bit UUID using
46 // the base UUID defined in the Bluetooth specification, hence custom UUIDs
47 // should be provided in the 128-bit format. If |uuid| is in an unsupported
50 explicit BluetoothUUID(const std::string& uuid);
55 explicit BluetoothUUID(GUID uuid);
61 // UUID by definition and the string accessors will return an empty string.
66 // The canonical UUID string format is device::BluetoothUUID.value().
[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/u-boot/lib/
Duuid.c15 * UUID - Universally Unique IDentifier - 128 bits unique number.
16 * There are 5 versions and one variant of UUID defined by RFC4122
17 * specification. A UUID contains a set of fields. The set varies
18 * depending on the version of the UUID, as shown below:
25 * Layout of UUID:
34 * UUID binary format (16 bytes):
38 * UUID string is 36 length of characters (36 bytes):
45 * When converting to a binary UUID, le means the field should be converted
48 * UUID is also used as GUID (Globally Unique Identifier) with the same binary
58 int uuid_str_valid(const char *uuid) in uuid_str_valid() argument
[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/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 …]
Duuid_time.c2 * uuid_time.c --- Interpret the time field from a uuid. This program
3 * violates the UUID abstraction barrier by reaching into the guts
4 * of a UUID and interpreting it.
42 #define UUID MYUUID macro
61 struct uuid uuid; in uuid_time() local
65 uuid_unpack(uu, &uuid); in uuid_time()
67 high = uuid.time_mid | ((uuid.time_hi_and_version & 0xFFF) << 16); in uuid_time()
68 clock_reg = uuid.time_low | ((uint64_t) high << 32); in uuid_time()
82 struct uuid uuid; in uuid_type() local
84 uuid_unpack(uu, &uuid); in uuid_type()
[all …]
DMakefile.in1 # Makefile for the UUID library
8 my_dir = lib/uuid
15 SMANPAGES= uuid.3 uuid_clear.3 uuid_compare.3 uuid_copy.3 \
42 LIBDIR= uuid
47 ELF_MYDIR = uuid
53 BSDLIB_MYDIR = uuid
70 all:: tst_uuid uuid_time $(SMANPAGES) uuid.pc
72 uuid.h: $(srcdir)/uuid.h.in
74 $(Q) cp $(srcdir)/uuid.h.in uuid.h
76 $(top_builddir)/lib/uuid/uuid_types.h: $(srcdir)/uuid_types.h.in $(top_builddir)/config.status
[all …]
Dunparse.c2 * unparse.c -- convert a UUID to string
54 struct uuid uuid; in uuid_unparse_x() local
56 uuid_unpack(uu, &uuid); in uuid_unparse_x()
58 uuid.time_low, uuid.time_mid, uuid.time_hi_and_version, in uuid_unparse_x()
59 uuid.clock_seq >> 8, uuid.clock_seq & 0xFF, in uuid_unparse_x()
60 uuid.node[0], uuid.node[1], uuid.node[2], in uuid_unparse_x()
61 uuid.node[3], uuid.node[4], uuid.node[5]); in uuid_unparse_x()
/external/e2fsprogs/lib/e2p/
Duuid.c2 * uuid.c -- utility routines for manipulating UUID's.
17 struct uuid { struct
25 /* Returns 1 if the uuid is the NULL uuid */ argument
37 static void e2p_unpack_uuid(void *in, struct uuid *uu) in e2p_unpack_uuid()
65 struct uuid uuid; in e2p_uuid_to_str() local
67 e2p_unpack_uuid(uu, &uuid); in e2p_uuid_to_str()
70 uuid.time_low, uuid.time_mid, uuid.time_hi_and_version, in e2p_uuid_to_str()
71 uuid.clock_seq >> 8, uuid.clock_seq & 0xFF, in e2p_uuid_to_str()
72 uuid.node[0], uuid.node[1], uuid.node[2], in e2p_uuid_to_str()
73 uuid.node[3], uuid.node[4], uuid.node[5]); in e2p_uuid_to_str()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue306/
DUuidSupportTest.java24 import java.util.UUID;
34 public static final Tag UUID_TAG = new Tag(Tag.PREFIX + "java.util.UUID");
44 UUID uuid = UUID.randomUUID(); in dumpAsString() local
45 String str = uuid.toString(); in dumpAsString()
50 assertEquals(str + "\n", yaml.dump(uuid)); in dumpAsString()
57 UUID uuid = (UUID) yaml.load("7f511847-781a-45df-9c8d-1e32e028b9b3"); in loadAsUuid() local
58 assertEquals("7f511847-781a-45df-9c8d-1e32e028b9b3", uuid.toString()); in loadAsUuid()
71 UUID uuid = UUID.randomUUID(); in dumpUuid() local
73 String output = yaml.dump(uuid); in dumpUuid()
74 assertEquals("!!java.util.UUID '" + uuid.toString() + "'\n", output); in dumpUuid()
[all …]
/external/python/cpython3/Modules/
D_uuidmodule.c5 #include <uuid/uuid.h>
8 #include <uuid.h>
15 uuid_t uuid; in py_uuid_generate_time_safe() local
19 res = uuid_generate_time_safe(uuid); in py_uuid_generate_time_safe()
20 return Py_BuildValue("y#i", (const char *) uuid, sizeof(uuid), res); in py_uuid_generate_time_safe()
23 uuid_create(&uuid, &status); in py_uuid_generate_time_safe()
25 unsigned char buf[sizeof(uuid)]; in py_uuid_generate_time_safe()
26 uuid_enc_be(buf, &uuid); in py_uuid_generate_time_safe()
27 return Py_BuildValue("y#i", buf, sizeof(uuid), (int) status); in py_uuid_generate_time_safe()
29 return Py_BuildValue("y#i", (const char *) &uuid, sizeof(uuid), (int) status); in py_uuid_generate_time_safe()
[all …]
/external/vboot_reference/host/lib21/
Dhost_misc.c125 guid->uuid.time_low = htole32(time_low); in vb2_str_to_guid()
126 guid->uuid.time_mid = htole16(time_mid); in vb2_str_to_guid()
127 guid->uuid.time_high_and_version = htole16(time_high_and_version); in vb2_str_to_guid()
129 guid->uuid.clock_seq_high_and_reserved = chunk[3] & 0xff; in vb2_str_to_guid()
130 guid->uuid.clock_seq_low = chunk[4] & 0xff; in vb2_str_to_guid()
131 guid->uuid.node[0] = chunk[5] & 0xff; in vb2_str_to_guid()
132 guid->uuid.node[1] = chunk[6] & 0xff; in vb2_str_to_guid()
133 guid->uuid.node[2] = chunk[7] & 0xff; in vb2_str_to_guid()
134 guid->uuid.node[3] = chunk[8] & 0xff; in vb2_str_to_guid()
135 guid->uuid.node[4] = chunk[9] & 0xff; in vb2_str_to_guid()
[all …]
/external/u-boot/include/configs/
Devb_rk3229.h22 "name=loader_a,start=4M,size=4M,uuid=${uuid_gpt_loader};" \
23 "name=loader_b,size=4M,uuid=${uuid_gpt_reserved};" \
24 "name=trust_a,size=4M,uuid=${uuid_gpt_reserved};" \
25 "name=trust_b,size=4M,uuid=${uuid_gpt_reserved};" \
26 "name=misc,size=4M,uuid=${uuid_gpt_misc};" \
27 "name=metadata,size=16M,uuid=${uuid_gpt_metadata};" \
28 "name=boot_a,size=32M,uuid=${uuid_gpt_boot_a};" \
29 "name=boot_b,size=32M,uuid=${uuid_gpt_boot_b};" \
30 "name=system_a,size=818M,uuid=${uuid_gpt_system_a};" \
31 "name=system_b,size=818M,uuid=${uuid_gpt_system_b};" \
[all …]
/external/e2fsprogs/misc/
Duuidgen.1.in10 uuidgen \- command\-line utility to create a new UUID value
22 a new universally unique identifier (UUID) using the
24 library. The new UUID can reasonably be considered unique among
29 There are two types of UUID's which
31 can generate: time-based UUID's and random-based UUID's. By
34 will generate a random-based UUID if a high-quality random number
35 generator is present. Otherwise, it will chose a time-based UUID. It
37 UUID types by using the
45 Generate a random-based UUID. This method creates a UUID consisting mostly
51 Generate a time-based UUID. This method creates a UUID based on the system
/external/llvm/unittests/IR/
DDebugTypeODRUniquingTest.cpp28 MDString &UUID = *MDString::get(Context, "string"); in TEST() local
32 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, 0, nullptr, in TEST()
37 EXPECT_FALSE(DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST()
41 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, 0, nullptr, in TEST()
43 EXPECT_EQ(UUID.getString(), CT.getIdentifier()); in TEST()
46 EXPECT_EQ(&CT, DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST()
48 &CT, DICompositeType::getODRType(Context, UUID, dwarf::DW_TAG_class_type, in TEST()
52 Context, UUID, dwarf::DW_TAG_class_type, in TEST()
58 EXPECT_FALSE(DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST()
62 EXPECT_FALSE(DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DDebugTypeODRUniquingTest.cpp28 MDString &UUID = *MDString::get(Context, "string"); in TEST() local
32 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, 0, nullptr, in TEST()
37 EXPECT_FALSE(DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST()
41 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, 0, nullptr, in TEST()
43 EXPECT_EQ(UUID.getString(), CT.getIdentifier()); in TEST()
46 EXPECT_EQ(&CT, DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST()
48 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, in TEST()
53 Context, UUID, dwarf::DW_TAG_class_type, in TEST()
59 EXPECT_FALSE(DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST()
63 EXPECT_FALSE(DICompositeType::getODRTypeIfExists(Context, UUID)); in TEST()
[all …]
/external/e2fsprogs/
D.gitignore140 lib/uuid/subdirs
141 lib/uuid/tst_uuid
142 lib/uuid/uuid.3
143 lib/uuid/uuid.h
144 lib/uuid/uuid.pc
145 lib/uuid/uuid_clear.3
146 lib/uuid/uuid_compare.3
147 lib/uuid/uuid_copy.3
148 lib/uuid/uuid_generate.3
149 lib/uuid/uuid_is_null.3
[all …]
/external/u-boot/include/environment/ti/
Dboot.h21 ",uuid=${uuid_gpt_vbmeta};"
31 "name=bootloader,start=384K,size=1792K,uuid=${uuid_gpt_bootloader};" \
32 "name=rootfs,start=2688K,size=-,uuid=${uuid_gpt_rootfs}\0" \
36 "name=xloader,start=128K,size=256K,uuid=${uuid_gpt_xloader};" \
37 "name=bootloader,size=1792K,uuid=${uuid_gpt_bootloader};" \
38 "name=environment,size=128K,uuid=${uuid_gpt_environment};" \
39 "name=misc,size=128K,uuid=${uuid_gpt_misc};" \
40 "name=reserved,size=256K,uuid=${uuid_gpt_reserved};" \
41 "name=efs,size=16M,uuid=${uuid_gpt_efs};" \
42 "name=crypto,size=16K,uuid=${uuid_gpt_crypto};" \
[all …]
/external/wpa_supplicant_8/src/utils/
Duuid.c2 * Universally Unique IDentifier (UUID)
13 #include "uuid.h"
65 int is_nil_uuid(const u8 *uuid) in is_nil_uuid() argument
69 if (uuid[i]) in is_nil_uuid()
75 int uuid_random(u8 *uuid) in uuid_random() argument
81 * os_get_random() output in the UUID field. */ in uuid_random()
83 if (os_get_random(uuid, UUID_LEN) < 0 || in uuid_random()
84 hmac_sha256(uuid, UUID_LEN, (const u8 *) &t, sizeof(t), hash) < 0) in uuid_random()
87 os_memcpy(uuid, hash, UUID_LEN); in uuid_random()
90 uuid[6] = (4 << 4) | (uuid[6] & 0x0f); in uuid_random()
[all …]
/external/e2fsprogs/tests/t_change_uuid_mcsum_seed_mounted/
Dexpect2 Filesystem UUID: 6b33f586-a183-4383-921d-30da3fef2e5c
3 change UUID
4 Filesystem UUID: 6b33f586-a183-4383-921d-30da3fef2e5c
7 Filesystem UUID: 6b33f586-a183-4383-921d-30da3fef2e5c
9 Filesystem UUID: 6b33f586-a183-4383-921d-30da3fef2e5c
13 Filesystem UUID: 6b33f586-a183-4383-921d-30da3fef2e5c
15 change UUID
16 Filesystem UUID: a61be2e0-b3b8-4fbc-b2cd-d84b306b9731
20 Filesystem UUID: a61be2e0-b3b8-4fbc-b2cd-d84b306b9731

12345678910>>...43