/external/python/cpython2/Lib/test/ |
D | test_uuid.py | 5 import uuid 28 0, 0, uuid.RESERVED_NCS, None), 37 0x607040500010203L, 0x809, uuid.RESERVED_NCS, None), 46 0x82e946702d9e6d5L, 0xf9b, uuid.RFC_4122, 3), 55 0x678123412345678L, 0x1234, uuid.RESERVED_NCS, None), 64 0x1d19dad6ba7b810L, 0xb4, uuid.RFC_4122, 1), 73 0x1d19dad6ba7b811L, 0xb4, uuid.RFC_4122, 1), 82 0x1d19dad6ba7b812L, 0xb4, uuid.RFC_4122, 1), 91 0x1d19dad6ba7b814L, 0xb4, uuid.RFC_4122, 1), 100 0x1d19dc07d444840L, 0x3245, uuid.RFC_4122, 1), [all …]
|
/external/python/cpython3/Lib/test/ |
D | test_uuid.py | 26 uuid = None variable in BaseTestUUID 41 0, 0, self.uuid.RESERVED_NCS, None), 50 0x607040500010203, 0x809, self.uuid.RESERVED_NCS, None), 59 0x82e946702d9e6d5, 0xf9b, self.uuid.RFC_4122, 3), 68 0x678123412345678, 0x1234, self.uuid.RESERVED_NCS, None), 77 0x1d19dad6ba7b810, 0xb4, self.uuid.RFC_4122, 1), 86 0x1d19dad6ba7b811, 0xb4, self.uuid.RFC_4122, 1), 95 0x1d19dad6ba7b812, 0xb4, self.uuid.RFC_4122, 1), 104 0x1d19dad6ba7b814, 0xb4, self.uuid.RFC_4122, 1), 113 0x1d19dc07d444840, 0x3245, self.uuid.RFC_4122, 1), [all …]
|
/external/libchrome/device/bluetooth/ |
D | bluetooth_uuid.cc | 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() 54 if (!base::IsHexDigit(uuid[i])) in GetCanonicalUuid() 56 uuid[i] = base::ToLowerASCII(uuid[i]); in GetCanonicalUuid() [all …]
|
D | bluetooth_uuid.h | 50 explicit BluetoothUUID(const std::string& uuid); 55 explicit BluetoothUUID(GUID uuid); 67 static GUID GetCanonicalValueAsGUID(base::StringPiece uuid); 93 bool operator<(const BluetoothUUID& uuid) const; 96 bool operator==(const BluetoothUUID& uuid) const; 97 bool operator!=(const BluetoothUUID& uuid) const; 114 PrintTo(const BluetoothUUID& uuid, std::ostream* out); 117 size_t operator()(const device::BluetoothUUID& uuid) const { in operator() 118 return std::hash<std::string>()(uuid.canonical_value()); in operator()
|
/external/vboot_reference/host/lib21/ |
D | host_misc.c | 125 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/lib/e2p/ |
D | uuid.c | 17 struct uuid { struct 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/e2fsprogs/lib/uuid/ |
D | unparse.c | 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()
|
D | Makefile.in | 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 79 tst_uuid.o: $(srcdir)/tst_uuid.c uuid.h [all …]
|
D | uuid_time.c | 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() 85 return ((uuid.time_hi_and_version >> 12) & 0xF); in uuid_type() 90 struct uuid uuid; in uuid_variant() local 93 uuid_unpack(uu, &uuid); in uuid_variant() 94 var = uuid.clock_seq; in uuid_variant()
|
D | parse.c | 45 struct uuid uuid; in uuid_parse() local 66 uuid.time_low = strtoul(in, NULL, 16); in uuid_parse() 67 uuid.time_mid = strtoul(in+9, NULL, 16); in uuid_parse() 68 uuid.time_hi_and_version = strtoul(in+14, NULL, 16); in uuid_parse() 69 uuid.clock_seq = strtoul(in+19, NULL, 16); in uuid_parse() 75 uuid.node[i] = strtoul(buf, NULL, 16); in uuid_parse() 78 uuid_pack(&uuid, uu); in uuid_parse()
|
/external/python/cpython3/Modules/ |
D | _uuidmodule.c | 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() 32 uuid_generate_time(uuid); in py_uuid_generate_time_safe() 33 return Py_BuildValue("y#O", (const char *) uuid, sizeof(uuid), Py_None); in py_uuid_generate_time_safe()
|
/external/u-boot/lib/ |
D | uuid.c | 58 int uuid_str_valid(const char *uuid) in uuid_str_valid() argument 62 if (uuid == NULL) in uuid_str_valid() 65 for (i = 0, valid = 1; uuid[i] && valid; i++) { in uuid_str_valid() 68 valid = (uuid[i] == '-'); in uuid_str_valid() 71 valid = isxdigit(uuid[i]); in uuid_str_valid() 237 struct uuid uuid; in gen_rand_uuid() local 238 unsigned int *ptr = (unsigned int *)&uuid; in gen_rand_uuid() 242 for (i = 0; i < sizeof(struct uuid) / sizeof(*ptr); i++) in gen_rand_uuid() 245 clrsetbits_be16(&uuid.time_hi_and_version, in gen_rand_uuid() 249 clrsetbits_8(&uuid.clock_seq_hi_and_reserved, in gen_rand_uuid() [all …]
|
/external/wpa_supplicant_8/src/utils/ |
D | uuid.c | 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 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() 93 uuid[8] = 0x80 | (uuid[8] & 0x3f); in uuid_random()
|
/external/curl/tests/python_dependencies/impacket/ |
D | uuid.py | 25 def bin_to_string(uuid): argument 26 uuid1, uuid2, uuid3 = unpack('<LHH', uuid[:8]) 27 uuid4, uuid5, uuid6 = unpack('>HHL', uuid[8:16]) 30 def string_to_bin(uuid): argument 31 …dA-Fa-f]{8})-([\dA-Fa-f]{4})-([\dA-Fa-f]{4})-([\dA-Fa-f]{4})-([\dA-Fa-f]{4})([\dA-Fa-f]{8})', uuid) 33 uuid = pack('<LHH', uuid1, uuid2, uuid3) 34 uuid += pack('>HHL', uuid4, uuid5, uuid6) 35 return uuid 67 uuid, (maj, min) = tup 68 return "%s v%d.%d" % (uuid, maj, min)
|
/external/grpc-grpc/test/core/channel/ |
D | channelz_registry_test.cc | 48 intptr_t uuid = ChannelzRegistry::Register(channelz_channel); in TEST() local 49 EXPECT_GT(uuid, 0) << "First uuid chose must be greater than zero. Zero if " in TEST() 53 ChannelzRegistry::Unregister(uuid); in TEST() 72 intptr_t uuid = ChannelzRegistry::Register(channelz_channel); in TEST() local 73 BaseNode* retrieved = ChannelzRegistry::Get(uuid); in TEST() 81 intptr_t uuid = ChannelzRegistry::Register(channelz_channel); in TEST() local 82 BaseNode* retrieved = ChannelzRegistry::Get(uuid); in TEST() 90 intptr_t uuid = ChannelzRegistry::Register(channelz_channel); in TEST() local 92 BaseNode* nonexistant = ChannelzRegistry::Get(uuid + 1); in TEST() 94 BaseNode* retrieved = ChannelzRegistry::Get(uuid); in TEST()
|
/external/clang/test/Parser/ |
D | MicrosoftExtensions.cpp | 47 struct __declspec(uuid(L"00000000-0000-0000-1234-000000000047")) uuid_attr_bad1 { };// expected-err… 48 struct __declspec(uuid(3)) uuid_attr_bad2 { };// expected-error {{'uuid' attribute requires a strin… 49 struct __declspec(uuid("0000000-0000-0000-1234-0000500000047")) uuid_attr_bad3 { };// expected-erro… 50 struct __declspec(uuid("0000000-0000-0000-Z234-000000000047")) uuid_attr_bad4 { };// expected-error… 51 struct __declspec(uuid("000000000000-0000-1234-000000000047")) uuid_attr_bad5 { };// expected-error… 53 __declspec(uuid("000000A0-0000-0000-C000-000000000046")) int i; // expected-warning {{'uuid' attrib… 55 struct __declspec(uuid("000000A0-0000-0000-C000-000000000046")) 59 struct __declspec(uuid("000000A0-0000-0000-C000-000000000049")) 117 struct __declspec(uuid("000000A0-0000-0000-C000-000000000049")) late_defined_uuid; 124 struct __declspec(uuid("{12345678-1234-1234-1234-1234567890aB}")) uuid; [all …]
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue306/ |
D | UuidSupportTest.java | 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() 81 UUID uuid = UUID.fromString("ac4877be-0c31-4458-a86e-0272efe1aaa8"); in dumpBean() local 82 bean.setId(uuid); in dumpBean()
|
/external/e2fsprogs/ |
D | .gitignore | 140 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/wpa_supplicant_8/src/wps/ |
D | wps_er.c | 44 ev->uuid = sta->uuid; in wps_er_sta_event() 60 const u8 *uuid) in wps_er_sta_get() argument 66 (uuid == NULL || in wps_er_sta_get() 67 os_memcmp(uuid, sta->uuid, WPS_UUID_LEN) == 0)) in wps_er_sta_get() 100 struct in_addr *addr, const u8 *uuid, in wps_er_ap_get() argument 106 (uuid == NULL || in wps_er_ap_get() 107 os_memcmp(uuid, ap->uuid, WPS_UUID_LEN) == 0) && in wps_er_ap_get() 137 evap->uuid = ap->uuid; in wps_er_ap_event() 279 const u8 *uuid) in wps_er_ap_get_settings() argument 283 if (os_memcmp(uuid, s->uuid, WPS_UUID_LEN) == 0) in wps_er_ap_get_settings() [all …]
|
/external/grpc-grpc/src/core/lib/channel/ |
D | channelz_registry.h | 46 static void Unregister(intptr_t uuid) { Default()->InternalUnregister(uuid); } in Unregister() argument 47 static BaseNode* Get(intptr_t uuid) { return Default()->InternalGet(uuid); } in Get() argument 76 void InternalUnregister(intptr_t uuid); 80 BaseNode* InternalGet(intptr_t uuid);
|
D | channelz_registry.cc | 59 intptr_t uuid = entities_.size(); in InternalRegister() local 60 return uuid; in InternalRegister() 63 void ChannelzRegistry::InternalUnregister(intptr_t uuid) { in InternalUnregister() argument 64 GPR_ASSERT(uuid >= 1); in InternalUnregister() 66 GPR_ASSERT(static_cast<size_t>(uuid) <= entities_.size()); in InternalUnregister() 67 entities_[uuid - 1] = nullptr; in InternalUnregister() 70 BaseNode* ChannelzRegistry::InternalGet(intptr_t uuid) { in InternalGet() argument 72 if (uuid < 1 || uuid > static_cast<intptr_t>(entities_.size())) { in InternalGet() 75 return entities_[uuid - 1]; in InternalGet()
|
/external/clang/test/CodeGenCXX/ |
D | microsoft-templ-uuidof.cpp | 9 struct __declspec(uuid("{AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA}")) A {}; 14 struct __declspec(uuid("{BBBBBBBB-BBBB-BBBB-BBBB-BBBBBBBBBBBB}")) X<B> {}; 16 struct __declspec(uuid("{CCCCCCCC-CCCC-CCCC-CCCC-CCCCCCCCCCCC}")) C {}; 27 struct __declspec(uuid("{DDDDDDDD-DDDD-DDDD-DDDD-DDDDDDDDDDDD}")) X<C> {}; 30 struct __declspec(uuid("{EEEEEEEE-EEEE-EEEE-EEEE-EEEEEEEEEEEE}")) Y {
|
/external/guice/jdk8-tests/test/com/google/inject/jdk8/ |
D | Java8LanguageFeatureBindingTest.java | 113 UUID uuid = UUID.randomUUID(); in testProvider_usingJdk8Features() local 119 bind(UUID.class).toInstance(uuid); in testProvider_usingJdk8Features() 124 assertEquals(uuid.toString(), injector.getInstance(String.class)); in testProvider_usingJdk8Features() 128 private final UUID uuid; field in Java8LanguageFeatureBindingTest.StringProvider 131 StringProvider(UUID uuid) { in StringProvider() argument 132 this.uuid = uuid; in StringProvider() 137 return Collections.singleton(uuid).stream().map(UUID::toString).findFirst().get(); in get()
|
/external/swiftshader/third_party/llvm-7.0/llvm/test/Assembler/ |
D | dicompositetype-members.ll | 16 …EXT: !3 = !DICompositeType(tag: DW_TAG_structure_type, name: "has-uuid",{{.*}}, identifier: "uuid") 21 …Type(tag: DW_TAG_structure_type, name: "has-uuid", file: !1, line: 2, size: 64, align: 32, identif… 28 ; CHECK-NEXT: !8 = !DICompositeType(tag: DW_TAG_structure_type, name: "no-uuid", file: !1 33 !8 = !DICompositeType(tag: DW_TAG_structure_type, name: "no-uuid", file: !1, line: 2, size: 64, ali… 39 ; Add duplicate fields and members of "no-uuid" in a different file. These 40 ; should stick around, since "no-uuid" does not have an "identifier:" field. 46 ; Add duplicate fields and members of "has-uuid" in a different file. These
|
/external/llvm/test/Assembler/ |
D | dicompositetype-members.ll | 16 …EXT: !3 = !DICompositeType(tag: DW_TAG_structure_type, name: "has-uuid",{{.*}}, identifier: "uuid") 21 …Type(tag: DW_TAG_structure_type, name: "has-uuid", file: !1, line: 2, size: 64, align: 32, identif… 28 ; CHECK-NEXT: !8 = !DICompositeType(tag: DW_TAG_structure_type, name: "no-uuid", file: !1 33 !8 = !DICompositeType(tag: DW_TAG_structure_type, name: "no-uuid", file: !1, line: 2, size: 64, ali… 39 ; Add duplicate fields and members of "no-uuid" in a different file. These 40 ; should stick around, since "no-uuid" does not have an "identifier:" field. 46 ; Add duplicate fields and members of "has-uuid" in a different file. These
|