Searched refs:attr_len (Results 1 – 8 of 8) sorted by relevance
/system/bt/stack/sdp/ |
D | sdp_discovery.cc | 696 uint32_t seq_len, attr_len; in save_attr_seq() local 725 p = sdpu_get_len_from_type(p, p_msg_end, type, &attr_len); in save_attr_seq() 726 if (p == NULL || (p + attr_len) > p_seq_end) { in save_attr_seq() 727 SDP_TRACE_WARNING("%s: Bad len in attr_rsp %d", __func__, attr_len); in save_attr_seq() 730 if (((type >> 3) != UINT_DESC_TYPE) || (attr_len != 2)) { in save_attr_seq() 732 attr_len); in save_attr_seq() 802 uint32_t attr_len; in add_attr() local 813 p = sdpu_get_len_from_type(p, p_end, type, &attr_len); in add_attr() 814 if (p == NULL || (p + attr_len) > p_end) { in add_attr() 818 attr_len &= SDP_DISC_ATTR_LEN_MASK; in add_attr() [all …]
|
D | sdp_db.cc | 355 uint32_t attr_len, uint8_t* p_val) { in SDP_AddAttribute() argument 367 uint32_t len = (attr_len > 200) ? 200 : attr_len; in SDP_AddAttribute() 377 handle, attr_id, attr_type, attr_len, p_val, num_array); in SDP_AddAttribute() 382 handle, attr_id, attr_type, attr_len, p_val, *p_val); in SDP_AddAttribute() 387 handle, attr_id, attr_type, attr_len, p_val, p_val); in SDP_AddAttribute() 419 p_attr->len = attr_len; in SDP_AddAttribute() 421 if (p_rec->free_pad_ptr + attr_len >= SDP_MAX_PAD_LEN) { in SDP_AddAttribute() 426 attr_len, SDP_MAX_PAD_LEN - p_rec->free_pad_ptr); in SDP_AddAttribute() 428 attr_len = SDP_MAX_PAD_LEN - p_rec->free_pad_ptr; in SDP_AddAttribute() 432 attr_len = 0; in SDP_AddAttribute() [all …]
|
D | sdp_server.cc | 317 uint16_t attr_len; in process_service_attr_req() local 413 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_attr_req() 416 if (attr_len < p_ccb->cont_info.attr_offset) { in process_service_attr_req() 427 if (p_ccb->cont_info.attr_offset != attr_len) in process_service_attr_req() 432 attr_len) /* Not enough space for attr... so add partially */ in process_service_attr_req() 434 if (attr_len >= SDP_MAX_ATTR_LEN) { in process_service_attr_req() 436 max_list_len, attr_len); in process_service_attr_req() 553 uint16_t seq_len, attr_len; in process_service_search_attr_req() local 660 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_search_attr_req() 663 if (attr_len < p_ccb->cont_info.attr_offset) { in process_service_search_attr_req() [all …]
|
D | sdp_utils.cc | 691 uint32_t list_len, attr_len; in sdpu_extract_attr_seq() local 742 attr_len = 2; in sdpu_extract_attr_seq() 745 attr_len = 4; in sdpu_extract_attr_seq() 749 BE_STREAM_TO_UINT8(attr_len, p); in sdpu_extract_attr_seq() 753 BE_STREAM_TO_UINT16(attr_len, p); in sdpu_extract_attr_seq() 757 BE_STREAM_TO_UINT32(attr_len, p); in sdpu_extract_attr_seq() 765 if (p + attr_len > p_end_list) return NULL; in sdpu_extract_attr_seq() 766 if (attr_len == 2) { in sdpu_extract_attr_seq() 770 } else if (attr_len == 4) { in sdpu_extract_attr_seq() 1141 uint16_t attr_len = sdpu_get_attrib_entry_len(p_attr); in sdpu_build_partial_attrib_entry() local [all …]
|
/system/bt/bta/test/ |
D | bta_hf_client_add_record_test.cc | 24 uint32_t attr_len, uint8_t* p_val) { in SDP_AddAttribute() argument
|
/system/netd/server/ |
D | SockDiag.cpp | 228 uint32_t attr_len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*msg)); in readDiagMsgWithTcpInfo() local 230 while (RTA_OK(attr, attr_len)) { in readDiagMsgWithTcpInfo() 238 attr = RTA_NEXT(attr, attr_len); in readDiagMsgWithTcpInfo()
|
/system/bt/packet/avrcp/ |
D | get_folder_items.cc | 223 uint16_t attr_len = attr_val.size(); in PushMediaElementItem() local 225 AddPayloadOctets2(pkt, base::ByteSwap(attr_len)); in PushMediaElementItem()
|
/system/bt/stack/include/ |
D | sdp_api.h | 394 uint32_t attr_len, uint8_t* p_val);
|