/system/bt/btif/include/ |
H A D | btif_gatt_util.h | 35 uint16_t get_uuid16(tBT_UUID* p_uuid);
|
H A D | btif_util.h | 71 // result in |p_uuid|. |str| must be formatted in this format: 73 // |p_uuid| cannot be null. Returns true if parsing was successful, false 75 bool string_to_uuid(const char* str, bt_uuid_t* p_uuid); 79 void uuid_to_string_legacy(bt_uuid_t* p_uuid, char* str, size_t str_len);
|
H A D | btif_storage.h | 275 size_t btif_split_uuids_string(const char* str, bt_uuid_t* p_uuid,
|
/system/bt/btif/src/ |
H A D | btif_gatt_util.cc | 51 int uuidType(const unsigned char* p_uuid) { argument 59 if (p_uuid[i] == BASE_UUID[i]) ++match; 61 if (p_uuid[i] != 0) all_zero = 0; 175 uint16_t get_uuid16(tBT_UUID* p_uuid) { argument 176 if (p_uuid->len == LEN_UUID_16) { 177 return p_uuid->uu.uuid16; 178 } else if (p_uuid->len == LEN_UUID_128) { 180 uint8_t* p = &p_uuid->uu.uuid128[LEN_UUID_128 - 4]; 183 } else /* p_uuid->len == LEN_UUID_32 */ 185 return (uint16_t)p_uuid [all...] |
H A D | btif_util.cc | 116 bool string_to_uuid(const char* str, bt_uuid_t* p_uuid) { argument 117 CHECK(p_uuid); 134 memcpy(&(p_uuid->uu[0]), &uuid0, 4); 135 memcpy(&(p_uuid->uu[4]), &uuid1, 2); 136 memcpy(&(p_uuid->uu[6]), &uuid2, 2); 137 memcpy(&(p_uuid->uu[8]), &uuid3, 2); 138 memcpy(&(p_uuid->uu[10]), &uuid4, 4); 139 memcpy(&(p_uuid->uu[14]), &uuid5, 2); 144 void uuid_to_string_legacy(bt_uuid_t* p_uuid, char* str, size_t str_len) { argument 148 memcpy(&uuid0, &(p_uuid [all...] |
H A D | btif_profile_queue.cc | 110 static void queue_int_cleanup(uint16_t* p_uuid) { argument 111 if (!p_uuid) { 115 uint16_t uuid = *p_uuid;
|
H A D | btif_storage.cc | 235 bt_uuid_t* p_uuid = (bt_uuid_t*)prop->val + i; local 237 uuid_to_string_legacy(p_uuid, buf, sizeof(buf)); 345 bt_uuid_t* p_uuid = (bt_uuid_t*)prop->val; local 347 btif_split_uuids_string(value, p_uuid, BT_MAX_NUM_UUIDS); 519 size_t btif_split_uuids_string(const char* str, bt_uuid_t* p_uuid, argument 522 CHECK(p_uuid); 526 bool rc = string_to_uuid(str, p_uuid++); 586 bt_uuid_t* p_uuid = (bt_uuid_t*)property->val; local 598 uuid16_to_uuid128(UUID_SERVCLASS_AG_HANDSFREE, p_uuid + num_uuids); 605 p_uuid [all...] |
H A D | btif_ble_scanner.cc | 285 const bt_uuid_t* p_uuid, 318 btif_to_bta_uuid(&bt_uuid, p_uuid); 330 btif_to_bta_uuid_mask(mask, p_uuid_mask, p_uuid);
|
H A D | btif_gatt_client.cc | 361 void btif_gattc_discover_service_by_uuid(int conn_id, const bt_uuid_t& p_uuid) { 363 btif_to_bta_uuid(uuid, &p_uuid);
|
/system/bt/stack/sdp/ |
H A D | sdp_api.cc | 287 * p_uuid - output parameter to save the UUID found. 292 bool SDP_FindServiceUUIDInRec(tSDP_DISC_REC* p_rec, tBT_UUID* p_uuid) { argument 304 p_uuid->len = LEN_UUID_16; 305 p_uuid->uu.uuid16 = p_sattr->attr_value.v.u16; 308 p_uuid->len = LEN_UUID_128; 310 p_uuid->uu.uuid128[i] = 313 p_uuid->len = LEN_UUID_32; 314 p_uuid->uu.uuid32 = p_sattr->attr_value.v.u32; 335 p_uuid->len = 2; 336 p_uuid 371 SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC* p_rec, tBT_UUID* p_uuid) argument 581 SDP_FindServiceUUIDInDb(tSDP_DISCOVERY_DB* p_db, tBT_UUID* p_uuid, tSDP_DISC_REC* p_start_rec) argument [all...] |
H A D | sdp_db.cc | 109 static bool find_uuid_in_seq(uint8_t* p, uint32_t seq_len, uint8_t* p_uuid, argument 123 if (sdpu_compare_uuid_arrays(p, len, p_uuid, uuid_len)) return (true); 125 if (find_uuid_in_seq(p, len, p_uuid, uuid_len, nest_level + 1))
|
H A D | sdpint.h | 267 extern bool sdpu_is_base_uuid(uint8_t* p_uuid);
|
H A D | sdp_utils.cc | 593 bool sdpu_is_base_uuid(uint8_t* p_uuid) { argument 597 if (p_uuid[xx] != sdp_base_uuid[xx]) return (false);
|
/system/bt/bta/dm/ |
H A D | bta_dm_api.cc | 275 p_msg->p_uuid = NULL; 833 p_msg->p_uuid = (tBT_UUID*)(p_msg + 1); 834 memcpy(p_msg->p_uuid, p_services->p_uuid, 851 * p_services->p_uuid. 873 * p_services->p_uuid. 898 * put num_uuid, and p_uuid is the pointer to the 924 p_msg->p_uuid = (tBT_UUID*)(p_msg + 1); 925 memcpy(p_msg->p_uuid, p_services->p_uuid, [all...] |
H A D | bta_dm_int.h | 154 tBT_UUID* p_uuid; member in struct:__anon77 166 tBT_UUID* p_uuid; member in struct:__anon78
|
H A D | bta_dm_act.cc | 1136 p_data->search.p_uuid != NULL) { 1138 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->search.p_uuid, len); 1218 p_data->discover.p_uuid != NULL) { 1220 memcpy(bta_dm_search_cb.p_srvc_uuid, p_data->discover.p_uuid, len); 1487 tBT_UUID* p_uuid = bta_dm_search_cb.p_srvc_uuid; local 1518 if (bta_dm_search_cb.uuid_to_search != 0 && p_uuid != NULL) { 1519 p_uuid += 1522 service = p_uuid->uu.uuid16; 4459 tBT_UUID* p_uuid = bta_dm_search_cb.p_srvc_uuid + bta_dm_search_cb.num_uuid - local 4462 p_uuid [all...] |
/system/bt/stack/gatt/ |
H A D | gatt_utils.cc | 596 uint8_t* p_uuid = *p_data; local 603 STREAM_TO_UINT16(p_uuid_rec->uu.uuid16, p_uuid); 611 if (p_uuid[xx] != base_uuid[xx]) { 617 if ((p_uuid[LEN_UUID_128 - 1] == 0) && 618 (p_uuid[LEN_UUID_128 - 2] == 0)) { 619 p_uuid += (LEN_UUID_128 - 4); 621 STREAM_TO_UINT16(p_uuid_rec->uu.uuid16, p_uuid); 623 p_uuid += (LEN_UUID_128 - LEN_UUID_32); 625 STREAM_TO_UINT32(p_uuid_rec->uu.uuid32, p_uuid); 630 memcpy(p_uuid_rec->uu.uuid128, p_uuid, LEN_UUID_12 880 gatt_add_sdp_record(tBT_UUID* p_uuid, uint16_t start_hdl, uint16_t end_hdl) argument [all...] |
H A D | gatt_sr.cc | 455 tBT_UUID* p_uuid; local 462 p_uuid = gatts_get_service_uuid(el.p_db); 463 if (p_uuid != NULL) { 464 if (op_code == GATT_REQ_READ_BY_GRP_TYPE) handle_len = 4 + p_uuid->len; 481 gatt_uuid_compare(value, *p_uuid)) { 494 gatt_build_uuid_to_stream(&p, *p_uuid); 581 uint8_t*& p, tBT_UUID* p_uuid, 590 CHECK(p_uuid); 592 if (!gatt_parse_uuid_from_cmd(p_uuid, uuid_len, &p)) { 580 gatts_validate_packet_format(uint8_t op_code, uint16_t& len, uint8_t*& p, tBT_UUID* p_uuid, uint16_t& s_hdl, uint16_t& e_hdl) argument
|
H A D | gatt_api.cc | 101 static int uuidType(unsigned char* p_uuid) { argument 102 if (memcmp(p_uuid, BASE_UUID, 12) != 0) return LEN_UUID_128; 103 if (memcmp(p_uuid + 14, BASE_UUID + 14, 2) != 0) return LEN_UUID_32; 341 tBT_UUID* p_uuid = gatts_get_service_uuid(elem.p_db); local 342 elem.sdp_handle = gatt_add_sdp_record(p_uuid, elem.s_hdl, elem.e_hdl);
|
H A D | gatt_int.h | 435 extern uint32_t gatt_add_sdp_record(tBT_UUID* p_uuid, uint16_t start_hdl, 437 extern bool gatt_parse_uuid_from_cmd(tBT_UUID* p_uuid, uint16_t len,
|
/system/bt/stack/include/ |
H A D | sdp_api.h | 304 tBT_UUID* p_uuid, 315 * p_uuid - output parameter to save the UUID found. 320 bool SDP_FindServiceUUIDInRec_128bit(tSDP_DISC_REC* p_rec, tBT_UUID* p_uuid); 639 bool SDP_FindServiceUUIDInRec(tSDP_DISC_REC* p_rec, tBT_UUID* p_uuid);
|
/system/bt/bta/gatt/ |
H A D | bta_gattc_cache.cc | 205 tBT_UUID* p_uuid, 218 memcpy(&p_new_srvc->uuid, p_uuid, sizeof(tBT_UUID)); 234 tBT_UUID* p_uuid, 239 p_uuid->uu.uuid16, property); 262 memcpy(&characteristic->uuid, p_uuid, sizeof(tBT_UUID)); 280 tBTA_GATTC_SERV* p_srvc_cb, uint16_t handle, tBT_UUID* p_uuid, 286 p_uuid->uu.uuid16, property, type); 302 memcpy(&isvc->uuid, p_uuid, sizeof(tBT_UUID)); 320 memcpy(&descriptor->uuid, p_uuid, sizeof(tBT_UUID)); 932 void bta_gattc_search_service(tBTA_GATTC_CLCB* p_clcb, tBT_UUID* p_uuid) { argument 202 bta_gattc_add_srvc_to_cache(tBTA_GATTC_SERV* p_srvc_cb, uint16_t s_handle, uint16_t e_handle, tBT_UUID* p_uuid, bool is_primary) argument 231 bta_gattc_add_char_to_cache(tBTA_GATTC_SERV* p_srvc_cb, uint16_t attr_handle, uint16_t value_handle, tBT_UUID* p_uuid, uint8_t property) argument 279 bta_gattc_add_attr_to_cache( tBTA_GATTC_SERV* p_srvc_cb, uint16_t handle, tBT_UUID* p_uuid, uint8_t property, uint16_t incl_srvc_s_handle, tBTA_GATTC_ATTR_TYPE type) argument [all...] |
H A D | bta_gattc_int.h | 451 extern void bta_gattc_search_service(tBTA_GATTC_CLCB* p_clcb, tBT_UUID* p_uuid);
|
/system/bt/stack/btm/ |
H A D | btm_inq.cc | 124 static uint16_t btm_convert_uuid_to_uuid16(const uint8_t* p_uuid, 2561 * Parameters p_uuid - address of UUID 2568 static uint16_t btm_convert_uuid_to_uuid16(const uint8_t* p_uuid, argument 2580 STREAM_TO_UINT16(uuid16, p_uuid); 2583 STREAM_TO_UINT32(uuid32, p_uuid); 2590 if (p_uuid[xx] != base_uuid[xx]) { 2596 if ((p_uuid[LEN_UUID_128 - 1] == 0) && 2597 (p_uuid[LEN_UUID_128 - 2] == 0)) { 2598 p_uuid += (LEN_UUID_128 - 4); 2599 STREAM_TO_UINT16(uuid16, p_uuid); [all...] |
/system/bt/service/test/ |
H A D | low_energy_scanner_unittest.cc | 76 const bt_uuid_t* p_uuid, 74 ScanFilterAddRemove(int action, int filt_type, int filt_index, int company_id, int company_id_mask, const bt_uuid_t* p_uuid, const bt_uuid_t* p_uuid_mask, const RawAddress* bd_addr, char addr_type, std::vector<uint8_t> data, std::vector<uint8_t> p_mask, FilterConfigCallback cb) argument
|