Home
last modified time | relevance | path

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

12345678910>>...450

/aosp_15_r20/external/pigweed/pw_bluetooth/public/pw_bluetooth/
H A Dassigned_uuids.h16 // 16-bit UUID Assigned Numbers.
17 // Source: Bluetooth "16-bit UUID Numbers Document" revision 2022-10-07
23 #include "pw_bluetooth/uuid.h"
30 static constexpr Uuid kCharacteristicExtendedProperties{0x2900};
31 static constexpr Uuid kCharacteristicUserDescription{0x2901};
32 static constexpr Uuid kClientCharacteristicConfiguration{0x2902};
33 static constexpr Uuid kServerCharacteristicConfiguration{0x2903};
34 static constexpr Uuid kCharacteristicPresentationFormat{0x2904};
35 static constexpr Uuid kCharacteristicAggregateFormat{0x2905};
36 static constexpr Uuid kValidRange{0x2906};
[all …]
/aosp_15_r20/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DUUIDTest.java20 import java.util.UUID;
29 * @see UUID#UUID(long, long)
32 UUID uuid = new UUID(0xf81d4fae7dec11d0L, 0xa76500a0c91e6bf6L); in test_ConstructorJJ() local
33 assertEquals(2, uuid.variant()); in test_ConstructorJJ()
34 assertEquals(1, uuid.version()); in test_ConstructorJJ()
35 assertEquals(0x1d07decf81d4faeL, uuid.timestamp()); in test_ConstructorJJ()
36 assertEquals(130742845922168750L, uuid.timestamp()); in test_ConstructorJJ()
37 assertEquals(0x2765, uuid.clockSequence()); in test_ConstructorJJ()
38 assertEquals(0xA0C91E6BF6L, uuid.node()); in test_ConstructorJJ()
42 * @see UUID#getLeastSignificantBits()
[all …]
/aosp_15_r20/external/pigweed/pw_bluetooth_sapphire/host/common/
H A Duuid_test.cc15 #include "pw_bluetooth_sapphire/internal/host/common/uuid.h"
90 constexpr UUID uuid(kId1As16);
96 EXPECT_EQ(uuid, kId1As16);
97 EXPECT_NE(uuid, kOther16BitId);
98 EXPECT_EQ(kId1As16, uuid);
99 EXPECT_NE(kOther16BitId, uuid);
102 EXPECT_EQ(uuid, kId1As32);
103 EXPECT_NE(uuid, kId2As32);
104 EXPECT_EQ(kId1As32, uuid);
105 EXPECT_NE(kId2As32, uuid);
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/uuid/src/
Dfmt.rs2 // Copyright 2018 The Uuid Project Developers.
16 Uuid, Variant,
22 impl std::fmt::Debug for Uuid { implementation
29 impl fmt::Display for Uuid { implementation
36 impl From<Uuid> for String {
37 fn from(uuid: Uuid) -> Self { in from()
38 uuid.to_string() in from()
53 impl fmt::LowerHex for Uuid { implementation
59 impl fmt::UpperHex for Uuid { implementation
66 /// Format a [`Uuid`] as a hyphenated string, like
[all …]
Dbuilder.rs2 // Copyright 2018 The Uuid Project Developers.
12 //! A Builder type for [`Uuid`]s.
14 //! [`Uuid`]: ../struct.Uuid.html
16 use crate::{error::*, timestamp, Bytes, Uuid, Variant, Version};
18 /// A builder for creating a UUID.
20 /// This type is useful if you need to mutate individual fields of a [`Uuid`]
21 /// while constructing it. Since the [`Uuid`] type is `Copy`, it doesn't offer
24 /// The `Builder` type also always exposes APIs to construct [`Uuid`]s for any
26 /// lower-level API than the methods on [`Uuid`].
30 /// Creating a version 4 UUID from externally generated random bytes:
[all …]
Dlib.rs2 // Copyright 2018 The Uuid Project Developers.
14 //! Here's an example of a UUID:
20 //! A UUID is a unique 128-bit value, stored as 16 octets, and regularly
25 //! disparate areas, such as databases and network protocols. Typically a UUID
34 …itions [in draft](https://datatracker.ietf.org/doc/html/draft-peabody-dispatch-new-uuid-format-04).
41 //! [dependencies.uuid]
50 //! When you want a UUID, you can generate one:
56 //! use uuid::Uuid;
58 //! let id = Uuid::new_v4();
63 //! If you have a UUID value, you can use its string literal form inline:
[all …]
Dparser.rs2 // Copyright 2018 The Uuid Project Developers.
12 //! [`Uuid`] parsing constructs and utilities.
14 //! [`Uuid`]: ../struct.Uuid.html
19 Uuid,
22 impl str::FromStr for Uuid { implementation
26 Uuid::parse_str(uuid_str) in from_str()
30 impl TryFrom<&'_ str> for Uuid { implementation
34 Uuid::parse_str(uuid_str) in try_from()
38 impl Uuid { impl
39 /// Parses a `Uuid` from a string of hexadecimal digits with optional
[all …]
/aosp_15_r20/tools/test/connectivity/acts_tests/tests/google/fuchsia/bt/gatt/
Dgatt_server_databases.py29 'uuid': '00001802-0000-1000-8000-00805f9b34fb',
36 'uuid': '00001802-0000-1000-8000-00805f9b34fb',
43 'uuid': '00001802-0000-1000-8000-00805f9b34fb',
46 'uuid': '00001803-0000-1000-8000-00805f9b34fb',
53 'uuid': '00001802-0000-1000-8000-00805f9b34fb',
56 'uuid': '00001802-0000-1000-8000-00805f9b34fb',
70 'uuid': '00001811-0000-1000-8000-00805f9b34fb',
73 'uuid': '00002a47-0000-1000-8000-00805f9b34fb',
79 'uuid': '00002a46-0000-1000-8000-00805f9b34fb',
86 'uuid': gatt_char_desc_uuids['client_char_cfg']
[all …]
/aosp_15_r20/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 …]
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_uuid.py15 py_uuid = import_helper.import_fresh_module('uuid', blocked=['_uuid'])
16 c_uuid = import_helper.import_fresh_module('uuid', fresh=['_uuid'])
33 uuid = None variable in BaseTestUUID
54 'urn:uuid:00000000-0000-0000-0000-000000000000',
55 0, 0, self.uuid.RESERVED_NCS, None),
63 'urn:uuid:00010203-0405-0607-0809-0a0b0c0d0e0f',
64 0x607040500010203, 0x809, self.uuid.RESERVED_NCS, None),
72 'urn:uuid:02d9e6d5-9467-382e-8f9b-9300a64ac3cd',
73 0x82e946702d9e6d5, 0xf9b, self.uuid.RFC_4122, 3),
81 'urn:uuid:12345678-1234-5678-1234-567812345678',
[all …]
/aosp_15_r20/external/python/bumble/bumble/
Dgatt.py42 from bumble.core import BaseBumbleError, UUID
66 GATT_GENERIC_ACCESS_SERVICE = UUID.from_16_bits(0x1800, 'Generic Access')
67 GATT_GENERIC_ATTRIBUTE_SERVICE = UUID.from_16_bits(0x1801, 'Generic Attribute')
68 GATT_IMMEDIATE_ALERT_SERVICE = UUID.from_16_bits(0x1802, 'Immediate Alert')
69 GATT_LINK_LOSS_SERVICE = UUID.from_16_bits(0x1803, 'Link Loss')
70 GATT_TX_POWER_SERVICE = UUID.from_16_bits(0x1804, 'TX Power')
71 GATT_CURRENT_TIME_SERVICE = UUID.from_16_bits(0x1805, 'Current Time')
72 GATT_REFERENCE_TIME_UPDATE_SERVICE = UUID.from_16_bits(0x1806, 'Reference Time Update')
73 GATT_NEXT_DST_CHANGE_SERVICE = UUID.from_16_bits(0x1807, 'Next DST Change')
74 GATT_GLUCOSE_SERVICE = UUID.from_16_bits(0x1808, 'Glucose')
[all …]
/aosp_15_r20/packages/modules/Bluetooth/system/bta/test/gatt/
Ddatabase_builder_sample_device_test.cc25 #include "types/bluetooth/uuid.h"
27 using bluetooth::Uuid;
42 Uuid SERVICE_1_UUID = Uuid::FromString("00001800-0000-1000-8000-00805f9b34fb");
43 Uuid SERVICE_2_UUID = Uuid::FromString("00001801-0000-1000-8000-00805f9b34fb");
44 Uuid SERVICE_3_UUID = Uuid::FromString("0000180f-0000-1000-8000-00805f9b34fb");
45 Uuid SERVICE_4_UUID = Uuid::FromString("0000fef5-0000-1000-8000-00805f9b34fb");
46 Uuid SERVICE_5_UUID = Uuid::FromString("0000180a-0000-1000-8000-00805f9b34fb");
47 Uuid SERVICE_6_UUID = Uuid::FromString("0000fe55-0000-1000-8000-00805f9b34fb");
49 Uuid SERVICE_1_CHAR_1_UUID = Uuid::FromString("00002a00-0000-1000-8000-00805f9b34fb");
50 Uuid SERVICE_1_CHAR_2_UUID = Uuid::FromString("00002a01-0000-1000-8000-00805f9b34fb");
[all …]
/aosp_15_r20/external/autotest/server/cros/bluetooth/
H A Dbluetooth_gatt_client_utils.py58 for uuid in servs_json:
59 path = servs_json[uuid]['path']
60 service_obj = GATT_Service(uuid, path, bluetooth_facade)
64 chrcs_json = servs_json[uuid]['characteristics']
65 for uuid in chrcs_json:
66 path = chrcs_json[uuid]['path']
67 chrc_obj = GATT_Characteristic(uuid, path, bluetooth_facade)
71 descs_json = chrcs_json[uuid]['descriptors']
72 for uuid in descs_json:
73 path = descs_json[uuid]['path']
[all …]
/aosp_15_r20/tools/test/connectivity/acts_tests/acts_contrib/test_utils/bt/
Dgatt_test_database.py46 'uuid': '00001800-0000-1000-8000-00805f9b34fb',
49 'uuid': gatt_char_types['device_name'],
56 'uuid': gatt_char_types['appearance'],
64 'uuid': gatt_char_types['peripheral_pref_conn'],
70 'uuid': '00001801-0000-1000-8000-00805f9b34fb',
73 'uuid': gatt_char_types['service_changed'],
81 'uuid': gatt_char_desc_uuids['client_char_cfg'],
86 'uuid': '0000b004-0000-1000-8000-00805f9b34fb',
100 'uuid': '0000a00b-0000-1000-8000-00805f9b34fb',
104 'uuid': '0000b008-0000-1000-8000-00805f9b34fb',
[all …]
/aosp_15_r20/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 …]
/aosp_15_r20/packages/modules/Bluetooth/system/gd/hci/
Duuid_unittest.cc17 #include "hci/uuid.h"
24 using bluetooth::hci::Uuid;
26 static const Uuid ONES =
27 Uuid::From128BitBE(Uuid::UUID128Bit{{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
30 static const Uuid SEQUENTIAL =
31 Uuid::From128BitBE(Uuid::UUID128Bit{{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xab,
34 static const Uuid kBase =
35 Uuid::From128BitBE(Uuid::UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80,
38 static const Uuid kBaseLe =
39 Uuid::From128BitLE(Uuid::UUID128Bit{{0xfb, 0x34, 0x9b, 0x5f, 0x80, 0x00, 0x00, 0x80, 0x00,
[all …]
/aosp_15_r20/libcore/ojluni/src/main/java/java/util/
H A DUUID.java38 * A class that represents an immutable universally unique identifier (UUID).
39 * A UUID represents a 128-bit value.
43 * constructors allow the creation of any variant of UUID (described below).
45 * <p> The layout of a variant 2 (Leach-Salz) UUID is as follows:
62 * {@code UUID}. The bit layout described above is valid only for a {@code
63 * UUID} with a variant value of 2, which indicates the Leach-Salz variant.
66 * UUID}. There are four different basic types of UUIDs: time-based, DCE
70 * <p> For more information including algorithms used to create {@code UUID}s,
72 * Universally Unique IDentifier (UUID) URN Namespace</i></a>, section 4.2
73 * &quot;Algorithms for Creating a Time-Based UUID&quot;.
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/24/libcore/ojluni/src/main/java/java/util/
DUUID.java38 * A class that represents an immutable universally unique identifier (UUID).
39 * A UUID represents a 128-bit value.
43 * constructors allow the creation of any variant of UUID (described below).
45 * <p> The layout of a variant 2 (Leach-Salz) UUID is as follows:
62 * {@code UUID}. The bit layout described above is valid only for a {@code
63 * UUID} with a variant value of 2, which indicates the Leach-Salz variant.
66 * UUID}. There are four different basic types of UUIDs: time-based, DCE
70 * <p> For more information including algorithms used to create {@code UUID}s,
72 * Universally Unique IDentifier (UUID) URN Namespace</i></a>, section 4.2
73 * &quot;Algorithms for Creating a Time-Based UUID&quot;.
[all …]
/aosp_15_r20/out/soong/.intermediates/libcore/core_oj_api_files/gen/gensrcs/libcore/ojluni/src/main/java/java/util/
DUUID.java38 * A class that represents an immutable universally unique identifier (UUID).
39 * A UUID represents a 128-bit value.
43 * constructors allow the creation of any variant of UUID (described below).
45 * <p> The layout of a variant 2 (Leach-Salz) UUID is as follows:
62 * {@code UUID}. The bit layout described above is valid only for a {@code
63 * UUID} with a variant value of 2, which indicates the Leach-Salz variant.
66 * UUID}. There are four different basic types of UUIDs: time-based, DCE
70 * <p> For more information including algorithms used to create {@code UUID}s,
72 * Universally Unique IDentifier (UUID) URN Namespace</i></a>, section 4.2
73 * &quot;Algorithms for Creating a Time-Based UUID&quot;.
[all …]
/aosp_15_r20/frameworks/base/media/java/android/media/soundtrigger/
H A DSoundTriggerDetectionService.java40 import java.util.UUID;
57 * {@link #operationFinished(UUID, int)}. If this does not happen in
59 * {@link #onStopOperation(UUID, Bundle, int)} is called and the service is unbound.
74 * Client indexed by model uuid. This is needed for the {@link #operationFinished(UUID, int)}
78 private final ArrayMap<UUID, ISoundTriggerDetectionServiceClient> mClients =
92 private void setClient(@NonNull UUID uuid, @Nullable Bundle params, in setClient() argument
94 if (DEBUG) Log.i(LOG_TAG, uuid + ": handle setClient"); in setClient()
97 mClients.put(uuid, client); in setClient()
99 onConnected(uuid, params); in setClient()
102 private void removeClient(@NonNull UUID uuid, @Nullable Bundle params) { in removeClient() argument
[all …]
/aosp_15_r20/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 …]
/aosp_15_r20/packages/modules/Bluetooth/system/types/test/bluetooth/
Duuid_unittest.cc19 #include "types/bluetooth/uuid.h"
23 using bluetooth::Uuid;
25 static const Uuid ONES =
26 Uuid::From128BitBE(Uuid::UUID128Bit{{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
29 static const Uuid SEQUENTIAL =
30 Uuid::From128BitBE(Uuid::UUID128Bit{{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xab,
33 constexpr Uuid kBase =
34 Uuid::From128BitBE(Uuid::UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80,
38 EXPECT_TRUE(Uuid::kEmpty.IsEmpty()); in TEST()
43 EXPECT_TRUE(Uuid::kNumBytes16 == kBase.GetShortestRepresentationSize()); in TEST()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/system/types/bluetooth/
Duuid.cc19 #include "uuid.h"
31 static_assert(sizeof(Uuid) == 16, "Uuid must be 16 bytes long!");
33 using UUID128Bit = Uuid::UUID128Bit;
35 const Uuid Uuid::kEmpty = Uuid::From128BitBE(UUID128Bit{{0x00}});
38 constexpr Uuid kBase =
39 Uuid::From128BitBE(UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00,
43 size_t Uuid::GetShortestRepresentationSize() const { in GetShortestRepresentationSize()
56 bool Uuid::Is16Bit() const { return GetShortestRepresentationSize() == kNumBytes16; } in Is16Bit()
58 uint16_t Uuid::As16Bit() const { return (((uint16_t)uu[2]) << 8) + uu[3]; } in As16Bit()
60 uint32_t Uuid::As32Bit() const { in As32Bit()
[all …]
/aosp_15_r20/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothUuid.java30 import java.util.UUID;
35 * bit values in this class are calculated as: uuid * 2^96 + {@link #BASE_UUID}.
44 * UUID corresponding to the Audio sink role (also referred to as the A2DP sink role).
53 * UUID corresponding to the Audio source role (also referred to as the A2DP source role).
62 * UUID corresponding to the Advanced Audio Distribution Profile (A2DP).
71 * UUID corresponding to the Headset Profile (HSP).
80 * UUID corresponding to the Headset Profile (HSP) Audio Gateway role.
89 * UUID corresponding to the Hands-Free Profile (HFP).
98 * UUID corresponding to the Hands-Free Profile (HFP) Audio Gateway role.
107 * UUID corresponding to the Audio Video Remote Control Profile (AVRCP).
[all …]
/aosp_15_r20/external/cronet/base/
H A Duuid.cc5 #include "base/uuid.h"
33 // Returns a canonical Uuid string given that `input` is validly formatted
68 Uuid Uuid::GenerateRandomV4() { in GenerateRandomV4()
77 Uuid Uuid::FormatRandomDataAsV4( in FormatRandomDataAsV4()
84 Uuid Uuid::FormatRandomDataAsV4ForTesting(base::span<const uint8_t, 16> input) { in FormatRandomDataAsV4ForTesting()
89 Uuid Uuid::FormatRandomDataAsV4Impl(base::span<const uint8_t, 16> input) { in FormatRandomDataAsV4Impl()
95 // Set the Uuid to version 4 as described in RFC 4122, section 4.4. in FormatRandomDataAsV4Impl()
96 // The format of Uuid version 4 must be xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx, in FormatRandomDataAsV4Impl()
108 Uuid uuid; in FormatRandomDataAsV4Impl() local
109 uuid.lowercase_ = in FormatRandomDataAsV4Impl()
[all …]

12345678910>>...450