Home
last modified time | relevance | path

Searched refs:Uuid (Results 1 – 25 of 208) sorted by relevance

123456789

/system/bt/types/test/bluetooth/
Duuid_unittest.cc22 using bluetooth::Uuid;
24 static const Uuid ONES = Uuid::From128BitBE(
25 Uuid::UUID128Bit{{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11,
28 static const Uuid SEQUENTIAL = Uuid::From128BitBE(
29 Uuid::UUID128Bit{{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xab,
32 constexpr Uuid kBase = Uuid::From128BitBE(
33 Uuid::UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80,
37 EXPECT_TRUE(Uuid::kEmpty.IsEmpty()); in TEST()
42 EXPECT_TRUE(Uuid::kNumBytes16 == kBase.GetShortestRepresentationSize()); in TEST()
43 EXPECT_TRUE(Uuid::kNumBytes32 == in TEST()
[all …]
/system/bt/vendor_libs/test_vendor_lib/types/test/bluetooth/
Duuid_unittest.cc22 using bluetooth::Uuid;
24 static const Uuid ONES = Uuid::From128BitBE(
25Uuid::UUID128Bit{{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x…
27 static const Uuid SEQUENTIAL = Uuid::From128BitBE(
28Uuid::UUID128Bit{{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x…
30 constexpr Uuid kBase = Uuid::From128BitBE(
31Uuid::UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x…
34 EXPECT_TRUE(Uuid::kEmpty.IsEmpty()); in TEST()
39 EXPECT_TRUE(Uuid::kNumBytes16 == kBase.GetShortestRepresentationSize()); in TEST()
40 EXPECT_TRUE(Uuid::kNumBytes32 == Uuid::From32Bit(0x01234567).GetShortestRepresentationSize()); in TEST()
[all …]
/system/bt/gd/hci/
Duuid_unittest.cc24 using bluetooth::hci::Uuid;
26 static const Uuid ONES = Uuid::From128BitBE(
27Uuid::UUID128Bit{{0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x11, 0x…
29 static const Uuid SEQUENTIAL = Uuid::From128BitBE(
30Uuid::UUID128Bit{{0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef, 0xab, 0xcd, 0xef, 0x01, 0x23, 0x…
32 static const Uuid kBase = Uuid::From128BitBE(
33Uuid::UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10, 0x00, 0x80, 0x00, 0x00, 0x80, 0x5f, 0x…
36 ASSERT_TRUE(Uuid::kEmpty.IsEmpty()); in TEST()
41 ASSERT_TRUE(Uuid::kNumBytes16 == kBase.GetShortestRepresentationSize()); in TEST()
42 ASSERT_TRUE(Uuid::kNumBytes32 == Uuid::From32Bit(0x01234567).GetShortestRepresentationSize()); in TEST()
[all …]
Duuid.cc29 using UUID128Bit = Uuid::UUID128Bit;
31 const Uuid Uuid::kEmpty = Uuid::From128BitBE(UUID128Bit{{0x00}});
34 Uuid kBase = Uuid::From128BitBE(
38 size_t Uuid::GetShortestRepresentationSize() const { in GetShortestRepresentationSize()
50 bool Uuid::Is16Bit() const { in Is16Bit()
54 uint16_t Uuid::As16Bit() const { in As16Bit()
58 uint32_t Uuid::As32Bit() const { in As32Bit()
62 std::optional<Uuid> Uuid::FromString(const std::string& uuid) { in FromString()
67 Uuid ret = kBase; in FromString()
129 std::optional<Uuid> Uuid::FromLegacyConfigString(const std::string& uuid) { in FromLegacyConfigString()
[all …]
Duuid.h38 class Uuid final : public storage::Serializable<Uuid> {
46 static const Uuid kEmpty; // 00000000-0000-0000-0000-000000000000
50 Uuid() = default;
64 static std::optional<Uuid> FromString(const std::string& uuid);
65 static std::optional<Uuid> FromLegacyConfigString(const std::string& uuid);
72 static Uuid GetRandom();
90 static Uuid From16Bit(uint16_t uuid16bit);
93 static Uuid From32Bit(uint32_t uuid32bit);
96 static Uuid From128BitBE(const UUID128Bit& uuid) { in From128BitBE()
97 Uuid u(uuid); in From128BitBE()
[all …]
/system/bt/bta/test/gatt/
Ddatabase_builder_sample_device_test.cc27 using bluetooth::Uuid;
44 Uuid SERVICE_1_UUID = Uuid::FromString("00001800-0000-1000-8000-00805f9b34fb");
45 Uuid SERVICE_2_UUID = Uuid::FromString("00001801-0000-1000-8000-00805f9b34fb");
46 Uuid SERVICE_3_UUID = Uuid::FromString("0000180f-0000-1000-8000-00805f9b34fb");
47 Uuid SERVICE_4_UUID = Uuid::FromString("0000fef5-0000-1000-8000-00805f9b34fb");
48 Uuid SERVICE_5_UUID = Uuid::FromString("0000180a-0000-1000-8000-00805f9b34fb");
49 Uuid SERVICE_6_UUID = Uuid::FromString("0000fe55-0000-1000-8000-00805f9b34fb");
51 Uuid SERVICE_1_CHAR_1_UUID = Uuid::FromString("00002a00-0000-1000-8000-00805f9b34fb");
52 Uuid SERVICE_1_CHAR_2_UUID = Uuid::FromString("00002a01-0000-1000-8000-00805f9b34fb");
53 Uuid SERVICE_1_CHAR_3_UUID = Uuid::FromString("00002a04-0000-1000-8000-00805f9b34fb");
[all …]
Ddatabase_test.cc27 using bluetooth::Uuid;
32 const Uuid PRIMARY_SERVICE = Uuid::From16Bit(GATT_UUID_PRI_SERVICE);
33 const Uuid SECONDARY_SERVICE = Uuid::From16Bit(GATT_UUID_SEC_SERVICE);
34 const Uuid INCLUDE = Uuid::From16Bit(GATT_UUID_INCLUDE_SERVICE);
35 const Uuid CHARACTERISTIC = Uuid::From16Bit(GATT_UUID_CHAR_DECLARE);
36 const Uuid CHARACTERISTIC_EXTENDED_PROPERTIES =
37 Uuid::From16Bit(GATT_UUID_CHAR_EXT_PROP);
39 Uuid SERVICE_1_UUID = Uuid::FromString("1800");
40 Uuid SERVICE_2_UUID = Uuid::FromString("1801");
41 Uuid SERVICE_1_CHAR_1_UUID = Uuid::FromString("2a00");
[all …]
Ddatabase_builder_test.cc27 using bluetooth::Uuid;
38 Uuid SERVICE_1_UUID = Uuid::FromString("00001800-0000-1000-8000-00805f9b34fb");
39 Uuid SERVICE_2_UUID = Uuid::FromString("00001801-0000-1000-8000-00805f9b34fb");
40 Uuid SERVICE_3_UUID = Uuid::FromString("0000180f-0000-1000-8000-00805f9b34fb");
41 Uuid SERVICE_4_UUID = Uuid::FromString("0000fef5-0000-1000-8000-00805f9b34fb");
42 Uuid SERVICE_5_UUID = Uuid::FromString("0000180a-0000-1000-8000-00805f9b34fb");
43 Uuid SERVICE_1_CHAR_1_UUID =
44 Uuid::FromString("00002a00-0000-1000-8000-00805f9b34fb");
45 Uuid SERVICE_1_CHAR_1_DESC_1_UUID =
46 Uuid::FromString("00002902-0000-1000-8000-00805f9b34fb");
/system/bt/types/bluetooth/
Duuid.cc28 static_assert(sizeof(Uuid) == 16, "Uuid must be 16 bytes long!");
30 using UUID128Bit = Uuid::UUID128Bit;
32 const Uuid Uuid::kEmpty = Uuid::From128BitBE(UUID128Bit{{0x00}});
35 constexpr Uuid kBase = Uuid::From128BitBE(
40 size_t Uuid::GetShortestRepresentationSize() const { in GetShortestRepresentationSize()
51 bool Uuid::Is16Bit() const { in Is16Bit()
55 uint16_t Uuid::As16Bit() const { return (((uint16_t)uu[2]) << 8) + uu[3]; } in As16Bit()
57 uint32_t Uuid::As32Bit() const { in As32Bit()
62 Uuid Uuid::FromString(const std::string& uuid, bool* is_valid) { in FromString()
64 Uuid ret = kBase; in FromString()
[all …]
Duuid.h35 class Uuid final {
43 static const Uuid kEmpty; // 00000000-0000-0000-0000-000000000000
47 Uuid() = default;
50 static Uuid GetRandom();
71 static Uuid FromString(const std::string& uuid, bool* is_valid = nullptr);
74 static Uuid From16Bit(uint16_t uuid16bit);
77 static Uuid From32Bit(uint32_t uuid32bit);
80 static constexpr Uuid From128BitBE(const UUID128Bit& uuid) { in From128BitBE()
81 Uuid u(uuid); in From128BitBE()
87 static Uuid From128BitBE(const uint8_t* uuid);
[all …]
/system/bt/btif/include/
Dbtif_sock_sdp.h27 static const bluetooth::Uuid UUID_OBEX_OBJECT_PUSH =
28 bluetooth::Uuid::From16Bit(0x1105);
29 static const bluetooth::Uuid UUID_PBAP_PSE = bluetooth::Uuid::From16Bit(0x112F);
30 static const bluetooth::Uuid UUID_MAP_MAS = bluetooth::Uuid::From16Bit(0x1132);
31 static const bluetooth::Uuid UUID_SAP = bluetooth::Uuid::From16Bit(0x112D);
32 static const bluetooth::Uuid UUID_SPP = bluetooth::Uuid::From16Bit(0x1101);
33 static const bluetooth::Uuid UUID_DIP = bluetooth::Uuid::From16Bit(0x1200);
34 static const bluetooth::Uuid UUID_MAP_MNS = bluetooth::Uuid::From16Bit(0x1133);
36 int add_rfc_sdp_rec(const char* name, bluetooth::Uuid uuid, int scn);
39 int get_reserved_rfc_channel(const bluetooth::Uuid& uuid);
/system/bt/vendor_libs/test_vendor_lib/types/bluetooth/
Duuid.cc27 static_assert(sizeof(Uuid) == 16, "Uuid must be 16 bytes long!");
29 using UUID128Bit = Uuid::UUID128Bit;
31 const Uuid Uuid::kEmpty = Uuid::From128BitBE(UUID128Bit{{0x00}});
34 constexpr Uuid kBase = Uuid::From128BitBE(
38 size_t Uuid::GetShortestRepresentationSize() const { in GetShortestRepresentationSize()
48 bool Uuid::Is16Bit() const { in Is16Bit()
52 uint16_t Uuid::As16Bit() const { in As16Bit()
56 uint32_t Uuid::As32Bit() const { in As32Bit()
60 Uuid Uuid::FromString(const std::string& uuid, bool* is_valid) { in FromString()
62 Uuid ret = kBase; in FromString()
[all …]
Duuid.h35 class Uuid final {
43 static const Uuid kEmpty; // 00000000-0000-0000-0000-000000000000
47 Uuid() = default;
50 static Uuid GetRandom();
71 static Uuid FromString(const std::string& uuid, bool* is_valid = nullptr);
74 static Uuid From16Bit(uint16_t uuid16bit);
77 static Uuid From32Bit(uint32_t uuid32bit);
80 static constexpr Uuid From128BitBE(const UUID128Bit& uuid) { in From128BitBE()
81 Uuid u(uuid); in From128BitBE()
87 static Uuid From128BitBE(const uint8_t* uuid);
[all …]
/system/bt/service/example/heart_rate/
Dconstants.h31 const bluetooth::Uuid kCCCDescriptorUuid = bluetooth::Uuid::FromString("2902");
32 const bluetooth::Uuid kHRServiceUuid = bluetooth::Uuid::FromString("180D");
33 const bluetooth::Uuid kHRMeasurementUuid = bluetooth::Uuid::FromString("2A37");
34 const bluetooth::Uuid kBodySensorLocationUuid =
35 bluetooth::Uuid::FromString("2A38");
36 const bluetooth::Uuid kHRControlPointUuid = bluetooth::Uuid::FromString("2A39");
/system/bt/stack/test/
Dstack_gatt_sr_hash_test.cc25 using bluetooth::Uuid;
48 gatts_init_service_db(local_db[0], Uuid::From16Bit(0x1800), true, 0x0001, 5); in TEST()
52 Uuid::From16Bit(0x2A00)); in TEST()
54 Uuid::From16Bit(0x2A01)); in TEST()
57 gatts_init_service_db(local_db[1], Uuid::From16Bit(0x1801), true, 0x0006, 8); in TEST()
59 Uuid::From16Bit(0x2A05)); in TEST()
60 gatts_add_char_descr(local_db[1], GATT_CHAR_PROP_BIT_READ, Uuid::From16Bit(0x2902)); in TEST()
64 Uuid::From16Bit(0x2B29)); in TEST()
66 Uuid::From16Bit(0x2B2A)); in TEST()
69 gatts_init_service_db(local_db[2], Uuid::From16Bit(0x1808), true, 0x000E, 6); in TEST()
[all …]
/system/bt/stack/gatt/
Dgatt_sr_hash.cc25 using bluetooth::Uuid;
34 if (attr_it->uuid == Uuid::From16Bit(GATT_UUID_PRI_SERVICE) || in calculate_database_info_size()
35 attr_it->uuid == Uuid::From16Bit(GATT_UUID_SEC_SERVICE)) { in calculate_database_info_size()
38 } else if (attr_it->uuid == Uuid::From16Bit(GATT_UUID_INCLUDE_SERVICE)){ in calculate_database_info_size()
41 } else if (attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_DECLARE)) { in calculate_database_info_size()
44 } else if (attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_DESCRIPTION) || in calculate_database_info_size()
45 attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_CLIENT_CONFIG) || in calculate_database_info_size()
46 attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_SRVR_CONFIG) || in calculate_database_info_size()
47 attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_PRESENT_FORMAT) || in calculate_database_info_size()
48 attr_it->uuid == Uuid::From16Bit(GATT_UUID_CHAR_AGG_FORMAT)) { in calculate_database_info_size()
[all …]
/system/bt/bta/vc/
Dtypes.h39 static const Uuid kVolumeControlUuid = Uuid::From16Bit(0x1844);
40 static const Uuid kVolumeControlStateUuid = Uuid::From16Bit(0x2B7D);
41 static const Uuid kVolumeControlPointUuid = Uuid::From16Bit(0x2B7E);
42 static const Uuid kVolumeFlagsUuid = Uuid::From16Bit(0x2B7F);
/system/bt/service/test/
Dparcelable_unittest.cc40 using bluetooth::Uuid;
85 TEST(ParcelableTest, Uuid) { in TEST() argument
88 Uuid uuid = Uuid::GetRandom(); in TEST()
89 TestData<Uuid, android::bluetooth::UUID>(uuid); in TEST()
118 Uuid uuid = Uuid::GetRandom(); in TEST()
124 Uuid mask = Uuid::GetRandom(); in TEST()
149 Descriptor s = Descriptor(0x0000, Uuid::GetRandom(), in TEST()
151 Descriptor s2 = Descriptor(0xFFFE, Uuid::GetRandom(), in TEST()
153 Descriptor s3 = Descriptor(0x003D, Uuid::GetRandom(), in TEST()
171 Characteristic c = Characteristic(0x0004, Uuid::GetRandom(), 0, 0, in TEST()
[all …]
/system/bt/bta/test/
Dbta_dm_cust_uuid_test.cc24 using bluetooth::Uuid;
47 static const Uuid uuid1 = Uuid::From128BitBE(
48 Uuid::UUID128Bit{{0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88,
50 static const Uuid uuid2 = Uuid::From128BitBE(
51 Uuid::UUID128Bit{{0x00, 0x00, 0x00, 0x00, 0x22, 0x22, 0x22, 0x22, 0x33,
68 curr0_expect.custom_uuid.UpdateUuid(Uuid::kEmpty); in TEST_F()
69 curr1_expect.custom_uuid.UpdateUuid(Uuid::kEmpty); in TEST_F()
72 ASSERT_STREQ(Uuid::kEmpty.ToString().c_str(), curr0.custom_uuid.ToString().c_str()); in TEST_F()
75 ASSERT_STREQ(Uuid::kEmpty.ToString().c_str(), curr1.custom_uuid.ToString().c_str()); in TEST_F()
/system/bt/test/suite/gatt/
Dgatt_unittest.cc29 bluetooth::Uuid gatt_client_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
41 bluetooth::Uuid gatt_server_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
53 bluetooth::Uuid gatt_server_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
60 bluetooth::Uuid srvc_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
63 bluetooth::Uuid char_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
66 bluetooth::Uuid desc_uuid = bluetooth::Uuid::GetRandom(); in TEST_F()
/system/bt/service/common/bluetooth/
Dscan_filter.cc27 if (other.service_uuid_) service_uuid_.reset(new Uuid(*other.service_uuid_)); in ScanFilter()
30 service_uuid_mask_.reset(new Uuid(*other.service_uuid_mask_)); in ScanFilter()
38 service_uuid_.reset(new Uuid(*other.service_uuid_)); in operator =()
43 service_uuid_mask_.reset(new Uuid(*other.service_uuid_mask_)); in operator =()
57 void ScanFilter::SetServiceUuid(const Uuid& service_uuid) { in SetServiceUuid()
58 service_uuid_.reset(new Uuid(service_uuid)); in SetServiceUuid()
62 void ScanFilter::SetServiceUuidWithMask(const Uuid& service_uuid, in SetServiceUuidWithMask()
63 const Uuid& mask) { in SetServiceUuidWithMask()
64 service_uuid_.reset(new Uuid(service_uuid)); in SetServiceUuidWithMask()
65 service_uuid_mask_.reset(new Uuid(mask)); in SetServiceUuidWithMask()
Dscan_filter.h52 const Uuid* service_uuid() const { return service_uuid_.get(); } in service_uuid()
53 const Uuid* service_uuid_mask() const { return service_uuid_mask_.get(); } in service_uuid_mask()
56 void SetServiceUuid(const Uuid& service_uuid);
62 void SetServiceUuidWithMask(const Uuid& service_uuid, const Uuid& mask);
71 std::unique_ptr<Uuid> service_uuid_;
72 std::unique_ptr<Uuid> service_uuid_mask_;
/system/bt/service/
Dgatt_server_old.h74 bool Initialize(const Uuid& service_id, int* gatt_pipe);
77 bool SetAdvertisement(const std::vector<Uuid>& ids,
83 bool SetScanResponse(const std::vector<Uuid>& ids,
89 bool AddCharacteristic(const Uuid& id, int properties, int permissions);
93 bool AddBlob(const Uuid& id, const Uuid& control_id, int properties,
98 bool SetCharacteristicValue(const Uuid& id,
102 bool GetCharacteristicValue(const Uuid& id, std::vector<uint8_t>* value);
Dgatt_client.h38 const Uuid& GetAppIdentifier() const override;
46 GattClient(const Uuid& uuid, int client_id);
49 Uuid app_identifier_;
67 bool RegisterInstance(const Uuid& uuid,
74 const Uuid& app_uuid) override;
78 std::unordered_map<Uuid, RegisterCallback> pending_calls_;
/system/bt/test/suite/rfcomm/
Drfcomm_test.cc22 using bluetooth::Uuid;
26 const Uuid RFCommTest::HFP_UUID = Uuid::From16Bit(0x111E);
55 Uuid* uuids = reinterpret_cast<Uuid*>(uuid_prop->val); in SetUp()
56 int num_uuids = uuid_prop->len / sizeof(Uuid); in SetUp()
59 if (!memcmp(uuids + j, &HFP_UUID, sizeof(Uuid))) { in SetUp()

123456789