/external/bluetooth/bluedroid/stack/sdp/ |
D | sdp_api.c | 267 tSDP_DISC_ATTR *p_attr; in SDP_FindAttributeInDb() local 280 p_attr = p_rec->p_first_attr; in SDP_FindAttributeInDb() 281 while (p_attr) in SDP_FindAttributeInDb() 283 if (p_attr->attr_id == attr_id) in SDP_FindAttributeInDb() 286 p_attr = p_attr->p_next_attr; in SDP_FindAttributeInDb() 310 tSDP_DISC_ATTR *p_attr; in SDP_FindAttributeInRec() local 312 p_attr = p_rec->p_first_attr; in SDP_FindAttributeInRec() 313 while (p_attr) in SDP_FindAttributeInRec() 315 if (p_attr->attr_id == attr_id) in SDP_FindAttributeInRec() 316 return(p_attr); in SDP_FindAttributeInRec() [all …]
|
D | sdp_utils.c | 178 UINT8 *sdpu_build_attrib_seq (UINT8 *p_out, UINT16 *p_attr, UINT16 num_attrs) in sdpu_build_attrib_seq() argument 184 if (!p_attr) in sdpu_build_attrib_seq() 201 if (!p_attr) in sdpu_build_attrib_seq() 210 for (xx = 0; xx < num_attrs; xx++, p_attr++) in sdpu_build_attrib_seq() 213 UINT16_TO_BE_STREAM (p_out, *p_attr); in sdpu_build_attrib_seq() 232 UINT8 *sdpu_build_attrib_entry (UINT8 *p_out, tSDP_ATTRIBUTE *p_attr) in sdpu_build_attrib_entry() argument 236 UINT16_TO_BE_STREAM (p_out, p_attr->id); in sdpu_build_attrib_entry() 240 switch(p_attr->type) in sdpu_build_attrib_entry() 247 if(p_attr->len > 0xFFFF) in sdpu_build_attrib_entry() 249 UINT8_TO_BE_STREAM (p_out, (p_attr->type << 3) | SIZE_IN_NEXT_LONG); in sdpu_build_attrib_entry() [all …]
|
D | sdp_db.c | 63 tSDP_ATTRIBUTE *p_attr; in sdp_db_service_search() local 78 p_attr = &p_rec->attribute[0]; in sdp_db_service_search() 79 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) in sdp_db_service_search() 81 if (p_attr->type == UUID_DESC_TYPE) in sdp_db_service_search() 83 if (sdpu_compare_uuid_arrays (p_attr->value_ptr, p_attr->len, in sdp_db_service_search() 88 else if (p_attr->type == DATA_ELE_SEQ_DESC_TYPE) in sdp_db_service_search() 90 if (find_uuid_in_seq (p_attr->value_ptr, p_attr->len, in sdp_db_service_search() 444 tSDP_ATTRIBUTE *p_attr = &p_rec->attribute[0]; in SDP_AddAttribute() local 447 for (xx = 0; xx < p_rec->num_attributes; xx++, p_attr++) in SDP_AddAttribute() 450 if (p_attr->id == attr_id) in SDP_AddAttribute() [all …]
|
D | sdp_discovery.c | 898 tSDP_DISC_ATTR *p_attr; in add_attr() local 928 p_attr = (tSDP_DISC_ATTR *) p_db->p_free_mem; in add_attr() 929 p_attr->attr_id = attr_id; in add_attr() 930 p_attr->attr_len_type = (UINT16)attr_len | (attr_type << 12); in add_attr() 931 p_attr->p_next_attr = NULL; in add_attr() 958 … p = add_attr (p, p_db, p_rec, ATTR_ID_PROTOCOL_DESC_LIST, p_attr, (UINT8)(nest_level + 1)); in add_attr() 969 p_attr->attr_value.v.u8 = *p++; in add_attr() 972 BE_STREAM_TO_UINT16 (p_attr->attr_value.v.u16, p); in add_attr() 975 BE_STREAM_TO_UINT32 (p_attr->attr_value.v.u32, p); in add_attr() 978 BE_STREAM_TO_ARRAY (p, p_attr->attr_value.v.array, (INT32)attr_len); in add_attr() [all …]
|
D | sdp_server.c | 313 tSDP_ATTRIBUTE *p_attr; in process_service_attr_req() local 403 …p_attr = sdp_db_find_attr_in_rec (p_rec, attr_seq.attr_entry[xx].start, attr_seq.attr_entry[xx].en… in process_service_attr_req() 405 if (p_attr) in process_service_attr_req() 414 p_ccb->cont_info.next_attr_start_id = p_attr->id; in process_service_attr_req() 418 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_attr_req() 422 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, rem_len, in process_service_attr_req() 441 p_rsp = sdpu_build_partial_attrib_entry (p_rsp, p_attr, (UINT16)rem_len, in process_service_attr_req() 445 p_ccb->cont_info.next_attr_start_id = p_attr->id; in process_service_attr_req() 449 p_rsp = sdpu_build_attrib_entry (p_rsp, p_attr); in process_service_attr_req() 455 attr_seq.attr_entry[xx].start = p_attr->id + 1; in process_service_attr_req() [all …]
|
D | sdpint.h | 281 extern UINT8 *sdpu_build_attrib_seq (UINT8 *p_out, UINT16 *p_attr, UINT16 num_attrs); 282 extern UINT8 *sdpu_build_attrib_entry (UINT8 *p_out, tSDP_ATTRIBUTE *p_attr); 292 extern BOOLEAN sdpu_compare_uuid_with_attr (tBT_UUID *p_btuuid, tSDP_DISC_ATTR *p_attr); 297 extern UINT16 sdpu_get_attrib_entry_len(tSDP_ATTRIBUTE *p_attr); 298 extern UINT8 *sdpu_build_partial_attrib_entry (UINT8 *p_out, tSDP_ATTRIBUTE *p_attr, UINT16 len, UI…
|
/external/bluetooth/bluedroid/bta/gatt/ |
D | bta_gattc_cache.c | 70 tBTA_GATTC_CACHE_ATTR *p_attr; in bta_gattc_display_cache_server() local 83 p_attr = p_cur_srvc->p_attr; in bta_gattc_display_cache_server() 85 for (j = 0; p_attr; j ++ ) in bta_gattc_display_cache_server() 88 j + 1, p_attr->attr_handle, p_attr->p_uuid->uuid16, p_attr->inst_id, in bta_gattc_display_cache_server() 89 bta_gattc_attr_type[p_attr->attr_type], p_attr->property); in bta_gattc_display_cache_server() 91 p_attr = p_attr->p_next; in bta_gattc_display_cache_server() 239 tBTA_GATTC_CACHE_ATTR *p_attr; in bta_gattc_get_char_inst_id() local 242 p_attr = p_service_cache->p_attr; in bta_gattc_get_char_inst_id() 244 while (p_attr) in bta_gattc_get_char_inst_id() 246 bta_gattc_pack_attr_uuid(p_attr, &attr_uuid); in bta_gattc_get_char_inst_id() [all …]
|
D | bta_gattc_ci.c | 83 tBTA_GATTC_NV_ATTR *p_attr, tBTA_GATT_STATUS status, in bta_gattc_ci_cache_load() argument 98 if (p_evt->num_attr > 0 && p_attr != NULL) in bta_gattc_ci_cache_load() 100 memcpy(p_evt->attr, p_attr, p_evt->num_attr * sizeof(tBTA_GATTC_NV_ATTR)); in bta_gattc_ci_cache_load()
|
D | bta_gattc_utils.c | 588 void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid) in bta_gattc_pack_attr_uuid() argument 590 UINT8 *pp = (UINT8 *)p_attr->p_uuid; in bta_gattc_pack_attr_uuid() 594 p_uuid->len = p_attr->uuid_len; in bta_gattc_pack_attr_uuid() 596 if (p_attr->uuid_len == LEN_UUID_16) in bta_gattc_pack_attr_uuid() 758 tGATT_VALUE *p_attr, in bta_gattc_pack_read_cb_data() argument 761 UINT8 i = 0, *pp = p_attr->value; in bta_gattc_pack_read_cb_data() 769 while (p_attr->len >= 2 && i < BTA_GATTC_MULTI_MAX) in bta_gattc_pack_read_cb_data() 784 p_attr->len -= 2; in bta_gattc_pack_read_cb_data() 791 p_value->unformat.len = p_attr->len; in bta_gattc_pack_read_cb_data() 792 p_value->unformat.p_value = p_attr->value; in bta_gattc_pack_read_cb_data()
|
D | bta_gattc_int.h | 260 tBTA_GATTC_CACHE_ATTR *p_attr; member 508 extern void bta_gattc_pack_attr_uuid(tBTA_GATTC_CACHE_ATTR *p_attr, tBT_UUID *p_uuid); 510 …ad_cb_data(tBTA_GATTC_SERV *p_srcb, tBT_UUID *p_descr_uuid, tGATT_VALUE *p_attr, tBTA_GATT_READ_VA… 530 …uild_cache(tBTA_GATTC_SERV *p_srcv, UINT16 num_attr, tBTA_GATTC_NV_ATTR *p_attr, UINT16 attr_index…
|
/external/bluetooth/bluedroid/stack/gatt/ |
D | gatt_db.c | 41 static BOOLEAN deallocate_attr_in_db(tGATT_SVC_DB *p_db, void *p_attr); 116 static tGATT_STATUS gatts_check_attr_readability(tGATT_ATTR16 *p_attr, in gatts_check_attr_readability() argument 123 tGATT_PERM perm = p_attr->permission; in gatts_check_attr_readability() 165 switch (p_attr->uuid) in gatts_check_attr_readability() 204 static tGATT_STATUS read_attr_value (void *p_attr, in read_attr_value() argument 217 tGATT_ATTR16 *p_attr16 = (tGATT_ATTR16 *)p_attr; in read_attr_value() 226 …status = gatts_check_attr_readability((tGATT_ATTR16 *)p_attr, offset, read_long, sec_flag, key_siz… in read_attr_value() 329 tGATT_ATTR16 *p_attr; in gatts_db_read_attr_value_by_type() local 336 p_attr = (tGATT_ATTR16 *)p_db->p_attr_list; in gatts_db_read_attr_value_by_type() 338 while (p_attr && p_attr->handle <= e_handle) in gatts_db_read_attr_value_by_type() [all …]
|
D | gatt_auth.c | 45 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; in gatt_sign_data() local 54 p_data = (UINT8 *)GKI_getbuf((UINT16)(p_attr->len + 3)); /* 3 = 2 byte handle + opcode */ in gatt_sign_data() 60 UINT16_TO_STREAM(p, p_attr->handle); in gatt_sign_data() 61 ARRAY_TO_STREAM(p, p_attr->value, p_attr->len); in gatt_sign_data() 64 if ((payload_size - GATT_AUTH_SIGN_LEN - 3) < p_attr->len) in gatt_sign_data() 65 p_attr->len = payload_size - GATT_AUTH_SIGN_LEN - 3; in gatt_sign_data() 67 p_signature = p_attr->value + p_attr->len; in gatt_sign_data() 70 (UINT16)(p_attr->len + 3), /* 3 = 2 byte handle + opcode */ in gatt_sign_data() 73 p_attr->len += BTM_BLE_AUTH_SIGN_LEN; in gatt_sign_data()
|
D | gatt_cl.c | 220 tGATT_VALUE *p_attr = (tGATT_VALUE *)p_clcb->p_attr_buf; in gatt_act_write() local 222 if (p_attr) in gatt_act_write() 227 p_clcb->s_handle = p_attr->handle; in gatt_act_write() 232 p_attr->handle, in gatt_act_write() 233 p_attr->len, in gatt_act_write() 235 p_attr->value); in gatt_act_write() 239 if (p_attr->len <= (p_tcb->payload_size - GATT_HDR_SIZE)) in gatt_act_write() 241 p_clcb->s_handle = p_attr->handle; in gatt_act_write() 246 p_attr->handle, in gatt_act_write() 247 p_attr->len, in gatt_act_write() [all …]
|
D | gatt_sr.c | 623 tGATT_ATTR16 *p_attr = NULL; in gatt_build_find_info_rsp() local 630 p_attr = (tGATT_ATTR16 *) p_rcb->p_db->p_attr_list; in gatt_build_find_info_rsp() 634 while (p_attr) in gatt_build_find_info_rsp() 636 if (p_attr->handle > e_hdl) in gatt_build_find_info_rsp() 641 if (p_attr->handle >= s_hdl) in gatt_build_find_info_rsp() 644 …p_msg->offset = (p_attr->uuid_type == GATT_ATTR_UUID_TYPE_128) ? GATT_INFO_TYPE_PAIR_128 : GATT_IN… in gatt_build_find_info_rsp() 648 … if (p_msg->offset == GATT_INFO_TYPE_PAIR_16 && p_attr->uuid_type == GATT_ATTR_UUID_TYPE_16) in gatt_build_find_info_rsp() 650 UINT16_TO_STREAM(p, p_attr->handle); in gatt_build_find_info_rsp() 651 UINT16_TO_STREAM(p, p_attr->uuid); in gatt_build_find_info_rsp() 654 p_attr->uuid_type == GATT_ATTR_UUID_TYPE_128 ) in gatt_build_find_info_rsp() [all …]
|
/external/bluetooth/bluedroid/stack/hid/ |
D | hidh_api.c | 79 tSDP_DISC_ATTR *p_attr; in hidh_get_str_attr() local 82 if ((p_attr = SDP_FindAttributeInRec(p_rec, attr_id)) != NULL) in hidh_get_str_attr() 84 if((name_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type)) < max_len ) in hidh_get_str_attr() 86 memcpy( str, (char *) p_attr->attr_value.v.array, name_len ); in hidh_get_str_attr() 91 memcpy( str, (char *) p_attr->attr_value.v.array, max_len-1 ); in hidh_get_str_attr() 104 tSDP_DISC_ATTR *p_attr, *p_subattr1, *p_subattr2, *p_repdesc; in hidh_search_callback() local 129 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_DESCRIPTOR_LIST)) == NULL) in hidh_search_callback() 130 || (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE) in hidh_search_callback() 131 || ((p_subattr1 = p_attr->attr_value.v.p_sub_attr) == NULL) in hidh_search_callback() 144 if (((p_attr = SDP_FindAttributeInRec (p_rec, ATTR_ID_HID_VIRTUAL_CABLE)) != NULL) && in hidh_search_callback() [all …]
|
/external/bluetooth/bluedroid/stack/a2dp/ |
D | a2d_api.c | 57 tSDP_DISC_ATTR *p_attr; in a2d_sdp_cback() local 78 if ((p_attr = SDP_FindAttributeInRec(p_rec, in a2d_sdp_cback() 81 a2d_svc.p_service_name = (char *) p_attr->attr_value.v.array; in a2d_sdp_cback() 82 a2d_svc.service_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in a2d_sdp_cback() 86 if ((p_attr = SDP_FindAttributeInRec(p_rec, in a2d_sdp_cback() 89 a2d_svc.p_provider_name = (char *) p_attr->attr_value.v.array; in a2d_sdp_cback() 90 a2d_svc.provider_len = SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in a2d_sdp_cback() 94 if ((p_attr = SDP_FindAttributeInRec(p_rec, in a2d_sdp_cback() 97 a2d_svc.features = p_attr->attr_value.v.u16; in a2d_sdp_cback()
|
/external/bluetooth/bluedroid/bta/hl/ |
D | bta_hl_sdp.c | 38 BOOLEAN bta_hl_fill_sup_feature_list( const tSDP_DISC_ATTR *p_attr, in bta_hl_fill_sup_feature_list() argument 46 for (p_attr = p_attr->attr_value.v.p_sub_attr; p_attr; p_attr = p_attr->p_next_attr) in bta_hl_fill_sup_feature_list() 49 if (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) != DATA_ELE_SEQ_DESC_TYPE) in bta_hl_fill_sup_feature_list() 53 seq_len =SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_hl_fill_sup_feature_list() 56 …for (p_sattr = p_attr->attr_value.v.p_sub_attr; p_sattr && (item_cnt < 4) ; p_sattr = p_sattr->p_n… in bta_hl_fill_sup_feature_list() 587 tSDP_DISC_ATTR *p_attr, *p_sattr; in bta_hl_find_sink_or_src_srv_class_in_db() local 606 p_attr = p_rec->p_first_attr; in bta_hl_find_sink_or_src_srv_class_in_db() 607 while (p_attr) in bta_hl_find_sink_or_src_srv_class_in_db() 609 if ((p_attr->attr_id == ATTR_ID_SERVICE_CLASS_ID_LIST) in bta_hl_find_sink_or_src_srv_class_in_db() 610 && (SDP_DISC_ATTR_TYPE(p_attr->attr_len_type) == DATA_ELE_SEQ_DESC_TYPE)) in bta_hl_find_sink_or_src_srv_class_in_db() [all …]
|
D | bta_hl_act.c | 1690 tSDP_DISC_ATTR *p_attr; in bta_hl_sdp_cback() local 1742 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_NAME)) != NULL) in bta_hl_sdp_cback() 1744 if (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) < BT_MAX_SERVICE_NAME_LEN) in bta_hl_sdp_cback() 1745 name_len = (UINT16)SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_hl_sdp_cback() 1748 memcpy(p_hdp_rec->srv_name, p_attr->attr_value.v.array, name_len); in bta_hl_sdp_cback() 1752 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SERVICE_DESCRIPTION)) != NULL) in bta_hl_sdp_cback() 1754 if (SDP_DISC_ATTR_LEN(p_attr->attr_len_type) < BT_MAX_SERVICE_NAME_LEN) in bta_hl_sdp_cback() 1755 name_len = (UINT16)SDP_DISC_ATTR_LEN(p_attr->attr_len_type); in bta_hl_sdp_cback() 1758 memcpy(p_hdp_rec->srv_desp, p_attr->attr_value.v.array, name_len); in bta_hl_sdp_cback() 1763 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_PROVIDER_NAME)) != NULL) in bta_hl_sdp_cback() [all …]
|
D | bta_hl_int.h | 611 extern BOOLEAN bta_hl_fill_sup_feature_list( const tSDP_DISC_ATTR *p_attr,
|
/external/bluetooth/bluedroid/bta/ag/ |
D | bta_ag_sdp.c | 308 tSDP_DISC_ATTR *p_attr; in bta_ag_sdp_find_attr() local 366 if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_SUPPORTED_FEATURES)) != NULL) in bta_ag_sdp_find_attr() 372 p_scb->peer_features = p_attr->attr_value.v.u16; in bta_ag_sdp_find_attr() 377 … if ((p_attr = SDP_FindAttributeInRec(p_rec, ATTR_ID_REMOTE_AUDIO_VOLUME_CONTROL)) != NULL) in bta_ag_sdp_find_attr() 380 if (p_attr->attr_value.v.u8) in bta_ag_sdp_find_attr()
|
/external/bluetooth/bluedroid/bta/include/ |
D | bta_gattc_co.h | 79 UINT16 num_attr, tBTA_GATTC_NV_ATTR *p_attr,
|
/external/bluetooth/bluedroid/bta/av/ |
D | bta_av_act.c | 1619 tSDP_DISC_ATTR *p_attr; in bta_av_check_peer_features() local 1659 if ((p_attr = SDP_FindAttributeInRec(p_rec, in bta_av_check_peer_features() 1662 categories = p_attr->attr_value.v.u16; in bta_av_check_peer_features()
|