Home
last modified time | relevance | path

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

12345678910>>...58

/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.py15 py_uuid = support.import_fresh_module('uuid', blocked=['_uuid'])
16 c_uuid = support.import_fresh_module('uuid', fresh=['_uuid'])
28 uuid = None variable in BaseTestUUID
42 'urn:uuid:00000000-0000-0000-0000-000000000000',
43 0, 0, self.uuid.RESERVED_NCS, None),
51 'urn:uuid:00010203-0405-0607-0809-0a0b0c0d0e0f',
52 0x607040500010203, 0x809, self.uuid.RESERVED_NCS, None),
60 'urn:uuid:02d9e6d5-9467-382e-8f9b-9300a64ac3cd',
61 0x82e946702d9e6d5, 0xf9b, self.uuid.RFC_4122, 3),
69 '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/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/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/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/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.c17 * UUID - Universally Unique IDentifier - 128 bits unique number.
18 * There are 5 versions and one variant of UUID defined by RFC4122
19 * specification. A UUID contains a set of fields. The set varies
20 * depending on the version of the UUID, as shown below:
27 * Layout of UUID:
36 * UUID binary format (16 bytes):
40 * UUID string is 36 length of characters (36 bytes):
47 * When converting to a binary UUID, le means the field should be converted
50 * UUID is also used as GUID (Globally Unique Identifier) with the same binary
60 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 …]
/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/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/python/cpython3/Modules/
D_uuidmodule.c2 * Python UUID module that wraps libuuid -
10 #include <uuid/uuid.h>
12 #include <uuid.h>
19 uuid_t uuid; in py_uuid_generate_time_safe() local
23 res = uuid_generate_time_safe(uuid); in py_uuid_generate_time_safe()
24 return Py_BuildValue("y#i", (const char *) uuid, sizeof(uuid), res); in py_uuid_generate_time_safe()
27 uuid_create(&uuid, &status); in py_uuid_generate_time_safe()
29 unsigned char buf[sizeof(uuid)]; in py_uuid_generate_time_safe()
30 uuid_enc_be(buf, &uuid); in py_uuid_generate_time_safe()
31 return Py_BuildValue("y#i", buf, sizeof(uuid), (int) status); in py_uuid_generate_time_safe()
[all …]
/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/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/drm/
DDrmInitData.java30 import java.util.UUID;
47 * UUID.
75 if (data.hasData() && !containsSchemeDataWithUuid(result, manifestDatasCount, data.uuid)) { in createSessionCreationData()
148 * Retrieves data for a given DRM scheme, specified by its UUID.
150 * @deprecated Use {@link #get(int)} and {@link SchemeData#matches(UUID)} instead.
151 * @param uuid The DRM scheme's UUID.
156 public SchemeData get(UUID uuid) { in get() argument
158 if (schemeData.matches(uuid)) { in get()
232 return C.UUID_NIL.equals(first.uuid) ? (C.UUID_NIL.equals(second.uuid) ? 0 : 1) in compare()
233 : first.uuid.compareTo(second.uuid); in compare()
[all …]
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/drm/
DFrameworkMediaDrm.java45 import java.util.UUID;
56 * UUID. Returns a {@link DummyExoMediaDrm} if the protection scheme identified by the given UUID
60 uuid -> {
62 return newInstance(uuid);
64 Log.e(TAG, "Failed to instantiate a FrameworkMediaDrm for uuid: " + uuid + ".");
74 private final UUID uuid; field in FrameworkMediaDrm
82 * @param uuid The scheme uuid.
86 public static FrameworkMediaDrm newInstance(UUID uuid) throws UnsupportedDrmException { in newInstance() argument
88 return new FrameworkMediaDrm(uuid); in newInstance()
96 private FrameworkMediaDrm(UUID uuid) throws UnsupportedSchemeException { in FrameworkMediaDrm() argument
[all …]
DDefaultDrmSessionManager.java43 import java.util.UUID;
57 private UUID uuid; field in DefaultDrmSessionManager.Builder
69 * <li>{@link #setUuidAndExoMediaDrmProvider UUID}: {@link C#WIDEVINE_UUID}.
81 uuid = C.WIDEVINE_UUID; in Builder()
106 * Sets the UUID of the DRM scheme and the {@link ExoMediaDrm.Provider} to use.
108 * @param uuid The UUID of the DRM scheme.
113 UUID uuid, ExoMediaDrm.Provider exoMediaDrmProvider) { in setUuidAndExoMediaDrmProvider() argument
114 this.uuid = Assertions.checkNotNull(uuid); in setUuidAndExoMediaDrmProvider()
186 uuid, in build()
199 * not contain scheme data for the required UUID.
[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/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 …]

12345678910>>...58