Searched refs:uuid (Results 1 - 25 of 116) sorted by relevance

12345

/system/bt/btcore/test/
H A Duuid_test.cc22 #include "btcore/include/uuid.h"
37 bt_uuid_t* uuid; local
39 uuid = uuid_new("incorrect length");
40 EXPECT_EQ(NULL, uuid);
42 uuid = uuid_new("correct length but missing dashes --");
43 EXPECT_EQ(NULL, uuid);
45 uuid = uuid_new(UUID_ONES);
46 ASSERT_TRUE(uuid != NULL);
48 EXPECT_EQ(0x11, uuid->uu[i]);
50 uuid_free(uuid);
92 bt_uuid_t* uuid = NULL; local
106 bt_uuid_t* uuid = NULL; local
122 bt_uuid_t* uuid = NULL; local
138 bt_uuid_t* uuid = NULL; local
[all...]
/system/bt/service/test/
H A Duuid_unittest.cc23 #include "service/common/bluetooth/uuid.h"
39 UUID uuid; local
40 ASSERT_TRUE(uuid.is_valid());
41 ASSERT_TRUE(uuid.GetFullBigEndian() == kBtSigBaseUUID);
50 UUID uuid(UUID::UUID16Bit({{0xde, 0xad}}));
51 ASSERT_TRUE(uuid.is_valid());
52 ASSERT_TRUE(uuid.GetFullBigEndian() == my_uuid_16);
53 ASSERT_TRUE(UUID::kNumBytes16 == uuid.GetShortestRepresentationSize());
62 UUID uuid("dead");
63 ASSERT_TRUE(uuid
[all...]
/system/bt/btcore/src/
H A Duuid.cc24 #include "btcore/include/uuid.h"
41 static bool uuid_is_base(const bt_uuid_t* uuid);
63 bt_uuid_t* uuid = static_cast<bt_uuid_t*>(osi_calloc(sizeof(bt_uuid_t)));
70 uuid->uu[i] = strtoul(buf, NULL, 16);
81 return uuid;
84 void uuid_free(bt_uuid_t* uuid) { osi_free(uuid); } argument
86 bool uuid_is_empty(const bt_uuid_t* uuid) { argument
87 return !uuid || !memcmp(uuid,
102 uuid_128_to_16(const bt_uuid_t* uuid, uint16_t* uuid16) argument
112 uuid_128_to_32(const bt_uuid_t* uuid, uint32_t* uuid32) argument
123 uuid_to_string(const bt_uuid_t* uuid, uuid_string_t* uuid_string) argument
156 uuid_is_base(const bt_uuid_t* uuid) argument
[all...]
/system/bt/service/common/bluetooth/
H A Duuid.cc17 #include "bluetooth/uuid.h"
68 UUID::UUID(std::string uuid) { argument
72 if (uuid.empty()) return;
74 if (uuid.size() < 11 && uuid.find("0x") == 0) uuid = uuid.substr(2);
76 if (uuid.size() != 4 && uuid.size() != 8 && uuid
104 UUID(const bt_uuid_t& uuid) argument
109 UUID(const UUID16Bit& uuid) argument
114 UUID(const UUID32Bit& uuid) argument
119 UUID(const UUID128Bit& uuid) argument
[all...]
H A Ddescriptor.h19 #include <bluetooth/uuid.h>
27 Descriptor(uint16_t handle, const UUID& uuid, uint16_t permissions) argument
28 : handle_(handle), uuid_(uuid), permissions_(permissions){};
38 const UUID& uuid() const { return uuid_; } function in class:bluetooth::Descriptor
H A Duuid.h52 explicit UUID(const bt_uuid_t& uuid);
55 explicit UUID(std::string uuid);
58 explicit UUID(const UUID16Bit& uuid);
59 explicit UUID(const UUID32Bit& uuid);
60 explicit UUID(const UUID128Bit& uuid);
H A Dcharacteristic.h20 #include <bluetooth/uuid.h>
29 Characteristic(uint16_t handle, const UUID& uuid, uint8_t properties, argument
33 uuid_(uuid),
46 const UUID& uuid() const { return uuid_; } function in class:bluetooth::Characteristic
H A Dservice.h20 #include <bluetooth/uuid.h>
29 Service(uint16_t handle, bool primary, const UUID& uuid, argument
34 uuid_(uuid),
47 const UUID& uuid() const { return uuid_; } function in class:bluetooth::Service
/system/bt/btif/include/
H A Dbtif_profile_queue.h32 typedef bt_status_t (*btif_connect_cb_t)(RawAddress* bda, uint16_t uuid);
34 bt_status_t btif_queue_connect(uint16_t uuid, const RawAddress* bda,
36 void btif_queue_cleanup(uint16_t uuid);
H A Dbtif_sock_rfc.h34 bt_status_t btsock_rfc_listen(const char* name, const uint8_t* uuid,
37 bt_status_t btsock_rfc_connect(const RawAddress* bd_addr, const uint8_t* uuid,
H A Dbtif_sock_sdp.h42 static inline bool is_uuid_empty(const uint8_t* uuid) { argument
44 return uuid == NULL || memcmp(uuid, empty_uuid, sizeof(empty_uuid)) == 0;
47 int add_rfc_sdp_rec(const char* name, const uint8_t* uuid, int scn);
50 int get_reserved_rfc_channel(const uint8_t* uuid);
/system/bt/btcore/include/
H A Duuid.h26 // Creates uuid string structure to hold a well formed UUID
31 // Frees a uuid string structure created from |uuid_string_new|.
39 // Creates uuid structure from a well formed UUID string
40 // |uuid_string|. The caller takes ownership of the uuid
50 // Frees a uuid structure created from |uuid_new| and friends.
51 // |uuid| may be NULL.
52 void uuid_free(bt_uuid_t* uuid);
55 // |uuid| may not be NULL.
56 bool uuid_is_empty(const bt_uuid_t* uuid);
62 // Copies uuid |sr
[all...]
/system/bt/service/common/android/bluetooth/
H A Dscan_filter.cc18 #include "android/bluetooth/uuid.h"
43 // uuid won't really keep ownership, it's just for type casting
44 std::unique_ptr<UUID> uuid;
49 uuid.reset(&tmp);
51 uuid.reset(nullptr);
53 status = parcel->writeNullableParcelable(uuid);
54 uuid.release();
59 uuid.reset(&tmp);
61 uuid.reset(nullptr);
63 status = parcel->writeNullableParcelable(uuid);
80 std::unique_ptr<UUID> uuid; local
[all...]
H A Dbluetooth_gatt_descriptor.cc18 #include "android/bluetooth/uuid.h"
42 UUID uuid; local
43 status_t status = parcel->readParcelable(&uuid);
45 uuid_ = (bluetooth::UUID)uuid;
H A Dbluetooth_gatt_included_service.cc19 #include "android/bluetooth/uuid.h"
43 UUID uuid; local
44 status_t status = parcel->readParcelable(&uuid);
46 uuid_ = uuid;
H A Duuid.h19 #include "bluetooth/uuid.h"
35 UUID(const ::bluetooth::UUID& uuid) : ::bluetooth::UUID(uuid){}; // NOLINT argument
/system/bt/service/
H A Dgatt_client.cc29 GattClient::GattClient(const UUID& uuid, int client_id) argument
30 : app_identifier_(uuid), client_id_(client_id) {}
56 bool GattClientFactory::RegisterInstance(const UUID& uuid, argument
58 VLOG(1) << __func__ << " - UUID: " << uuid.ToString();
61 if (pending_calls_.find(uuid) != pending_calls_.end()) {
63 << "UUID: " << uuid.ToString();
69 bt_uuid_t app_uuid = uuid.GetBlueDroid();
73 pending_calls_[uuid] = callback;
81 UUID uuid(app_uuid);
83 auto iter = pending_calls_.find(uuid);
[all...]
H A Dlow_energy_scanner.cc68 LowEnergyScanner::LowEnergyScanner(Adapter& adapter, const UUID& uuid, argument
71 app_identifier_(uuid),
173 const UUID& uuid, const RegisterCallback& callback) {
174 VLOG(1) << __func__ << " - UUID: " << uuid.ToString();
177 if (pending_calls_.find(uuid) != pending_calls_.end()) {
179 << "UUID: " << uuid.ToString();
188 base::Unretained(this), callback, uuid));
190 pending_calls_.insert(uuid);
198 UUID uuid(app_uuid);
200 VLOG(1) << __func__ << " - UUID: " << uuid
172 RegisterInstance( const UUID& uuid, const RegisterCallback& callback) argument
[all...]
H A Dlow_energy_client.cc34 LowEnergyClient::LowEnergyClient(Adapter& adapter, const UUID& uuid, argument
37 app_identifier_(uuid),
208 const UUID& uuid, const RegisterCallback& callback) {
209 VLOG(1) << __func__ << " - UUID: " << uuid.ToString();
212 if (pending_calls_.find(uuid) != pending_calls_.end()) {
214 << "UUID: " << uuid.ToString();
220 bt_uuid_t app_uuid = uuid.GetBlueDroid();
224 pending_calls_[uuid] = callback;
232 UUID uuid(app_uuid);
234 VLOG(1) << __func__ << " - UUID: " << uuid
207 RegisterInstance( const UUID& uuid, const RegisterCallback& callback) argument
[all...]
/system/bt/btif/src/
H A Dbtif_profile_queue.cc52 uint16_t uuid; member in struct:__anon640
81 if (((connect_node_t*)list_node(node))->uuid == p_param->uuid) {
85 __func__, p_param->uuid, p_param->bda.ToString().c_str(),
93 __func__, p_param->uuid, p_param->bda.ToString().c_str(), p_param->busy);
104 __func__, p_head->uuid, p_head->bda.ToString().c_str(),
115 uint16_t uuid = *p_uuid; local
116 LOG_INFO(LOG_TAG, "%s: UUID=%04X", __func__, uuid);
125 if (connection_request->uuid == uuid) {
165 btif_queue_connect(uint16_t uuid, const RawAddress* bda, btif_connect_cb_t connect_cb) argument
186 btif_queue_cleanup(uint16_t uuid) argument
[all...]
H A Dbtif_sock_sdp.cc152 // Registers a service with the given |name|, |uuid|, and |channel| in the SDP
153 // database as a generic L2CAP RFCOMM protocol, storing its |uuid| as a service
155 static int add_sdp_by_uuid(const char* name, const uint8_t* uuid, argument
168 // Convert the |uuid| into a big-endian representation and add it as a
186 { ARRAY_TO_BE_STREAM(tmp, uuid, UUID_MAX_LENGTH); }
376 // Adds an RFCOMM SDP record for a service with the given |name|, |uuid|, and
378 // upon its |uuid|, and will override the |channel| with a reserved channel
379 // number if the |uuid| matches one of the preregistered bluez SDP records.
380 static int add_rfc_sdp_by_uuid(const char* name, const uint8_t* uuid, argument
397 int final_channel = get_reserved_rfc_channel(uuid);
432 get_reserved_rfc_channel(const uint8_t* uuid) argument
445 add_rfc_sdp_rec(const char* name, const uint8_t* uuid, const int channel) argument
[all...]
/system/bt/btif/test/
H A Dbtif_storage_test.cc29 bt_uuid_t uuid; local
30 memset(&uuid, 0, sizeof(uuid));
31 EXPECT_FALSE(memcmp(&uuid, u1, sizeof(u1)) == 0);
33 bool rc = string_to_uuid(s1, &uuid);
35 EXPECT_TRUE(memcmp(&uuid, u1, sizeof(u1)) == 0);
39 bt_uuid_t uuid; local
40 bool rc = string_to_uuid("This is not a UUID", &uuid);
/system/bt/test/suite/gatt/
H A Dgatt_unittest.cc29 static void create_random_uuid(bt_uuid_t* uuid, int seed) { argument
32 uuid->uu[i] = (uint8_t)(rand() % 256);
91 {.type = BTGATT_DB_PRIMARY_SERVICE, .uuid = srvc_uuid},
93 .uuid = char_uuid,
96 {.type = BTGATT_DB_DESCRIPTOR, .uuid = desc_uuid, .permissions = 0x01}};
/system/bt/stack/gap/
H A Dgap_ble.cc33 uint16_t uuid; member in struct:__anon896::__anon897
48 uint16_t uuid; member in struct:__anon896::__anon899
125 if (db_attr.uuid != GATT_UUID_GAP_DEVICE_NAME && is_long == true)
128 switch (db_attr.uuid) {
243 uint16_t uuid = req.uuid; local
249 param.service.uuid.len = LEN_UUID_16;
250 param.service.uuid.uu.uuid16 = uuid;
256 clcb.cl_op_uuid = uuid;
356 accept_client_operation(const RawAddress& peer_bda, uint16_t uuid, tGAP_BLE_CMPL_CBACK* p_cback) argument
[all...]
/system/bt/stack/gatt/
H A Dgatt_db.cc41 static tGATT_ATTR& allocate_attr_in_db(tGATT_SVC_DB& db, const tBT_UUID& uuid,
62 tBT_UUID uuid = {LEN_UUID_16, {0}}; local
63 uuid.uu.uuid16 = is_pri ? GATT_UUID_PRI_SERVICE : GATT_UUID_SEC_SERVICE;
64 tGATT_ATTR& attr = allocate_attr_in_db(db, uuid, GATT_PERM_READ);
66 memcpy(&attr.p_value->uuid, p_service, sizeof(tBT_UUID));
74 return &p_db->attr_list[0].p_value->uuid;
122 if (read_long && attr.uuid.len == LEN_UUID_16) {
123 switch (attr.uuid.uu.uuid16) {
171 " uuid=0x%04x perm=0x%02x sec_flag=0x%x offset=%d read_long=%d",
172 attr16.uuid
332 tBT_UUID uuid = {LEN_UUID_16, {GATT_UUID_INCLUDE_SERVICE}}; local
370 tBT_UUID uuid = {LEN_UUID_16, {GATT_UUID_CHAR_DECLARE}}; local
716 allocate_attr_in_db(tGATT_SVC_DB& db, const tBT_UUID& uuid, tGATT_PERM perm) argument
[all...]

Completed in 210 milliseconds

12345