Home
last modified time | relevance | path

Searched refs:attr_len (Results 1 – 11 of 11) sorted by relevance

/system/bt/stack/sdp/
Dsdp_discovery.cc687 uint32_t seq_len, attr_len; in save_attr_seq() local
716 p = sdpu_get_len_from_type(p, p_msg_end, type, &attr_len); in save_attr_seq()
717 if (p == NULL || (p + attr_len) > p_seq_end) { in save_attr_seq()
718 SDP_TRACE_WARNING("%s: Bad len in attr_rsp %d", __func__, attr_len); in save_attr_seq()
721 if (((type >> 3) != UINT_DESC_TYPE) || (attr_len != 2)) { in save_attr_seq()
723 attr_len); in save_attr_seq()
793 uint32_t attr_len; in add_attr() local
804 p = sdpu_get_len_from_type(p, p_end, type, &attr_len); in add_attr()
805 if (p == NULL || (p + attr_len) > p_end) { in add_attr()
809 attr_len &= SDP_DISC_ATTR_LEN_MASK; in add_attr()
[all …]
Dsdp_db.cc348 uint32_t attr_len, uint8_t* p_val) { in SDP_AddAttribute() argument
359 uint32_t len = (attr_len > 200) ? 200 : attr_len; in SDP_AddAttribute()
369 handle, attr_id, attr_type, attr_len, p_val, num_array); in SDP_AddAttribute()
374 handle, attr_id, attr_type, attr_len, p_val, *p_val); in SDP_AddAttribute()
377 if (p_val[attr_len - 1] == '\0') { in SDP_AddAttribute()
381 handle, attr_id, attr_type, attr_len, p_val, (char*)p_val); in SDP_AddAttribute()
385 handle, attr_id, attr_type, attr_len, p_val); in SDP_AddAttribute()
390 handle, attr_id, attr_type, attr_len, p_val); in SDP_AddAttribute()
422 p_attr->len = attr_len; in SDP_AddAttribute()
424 if (p_rec->free_pad_ptr + attr_len >= SDP_MAX_PAD_LEN) { in SDP_AddAttribute()
[all …]
Dsdp_server.cc321 uint16_t attr_len; in process_service_attr_req() local
417 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_attr_req()
420 if (attr_len < p_ccb->cont_info.attr_offset) { in process_service_attr_req()
431 if (p_ccb->cont_info.attr_offset != attr_len) in process_service_attr_req()
436 attr_len) /* Not enough space for attr... so add partially */ in process_service_attr_req()
438 if (attr_len >= SDP_MAX_ATTR_LEN) { in process_service_attr_req()
440 max_list_len, attr_len); in process_service_attr_req()
558 uint16_t seq_len, attr_len; in process_service_search_attr_req() local
678 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_search_attr_req()
681 if (attr_len < p_ccb->cont_info.attr_offset) { in process_service_search_attr_req()
[all …]
Dsdp_utils.cc687 uint32_t list_len, attr_len; in sdpu_extract_attr_seq() local
738 attr_len = 2; in sdpu_extract_attr_seq()
741 attr_len = 4; in sdpu_extract_attr_seq()
745 BE_STREAM_TO_UINT8(attr_len, p); in sdpu_extract_attr_seq()
749 BE_STREAM_TO_UINT16(attr_len, p); in sdpu_extract_attr_seq()
753 BE_STREAM_TO_UINT32(attr_len, p); in sdpu_extract_attr_seq()
761 if (p + attr_len > p_end_list) return NULL; in sdpu_extract_attr_seq()
762 if (attr_len == 2) { in sdpu_extract_attr_seq()
766 } else if (attr_len == 4) { in sdpu_extract_attr_seq()
1137 uint16_t attr_len = sdpu_get_attrib_entry_len(p_attr); in sdpu_build_partial_attrib_entry() local
[all …]
/system/bt/bta/test/
Dbta_hf_client_add_record_test.cc47 uint32_t attr_len, uint8_t* p_val) { in SDP_AddAttribute() argument
/system/bt/test/mock/
Dmock_stack_sdp_db.cc44 uint32_t attr_len, uint8_t* p_val) { in SDP_AddAttribute() argument
/system/bt/stack/test/gatt/
Dmock_gatt_utils_ref.cc86 uint32_t attr_len, uint8_t* p_val) { in SDP_AddAttribute() argument
Dgatt_sr_test.cc139 uint32_t attr_len, uint8_t* p_val) { in SDP_AddAttribute() argument
/system/netd/server/
DSockDiag.cpp240 uint32_t attr_len = nlh->nlmsg_len - NLMSG_LENGTH(sizeof(*msg)); in readDiagMsgWithTcpInfo() local
242 while (RTA_OK(attr, attr_len)) { in readDiagMsgWithTcpInfo()
250 attr = RTA_NEXT(attr, attr_len); in readDiagMsgWithTcpInfo()
/system/bt/packet/avrcp/
Dget_folder_items.cc223 uint16_t attr_len = attr_val.size(); in PushMediaElementItem() local
225 AddPayloadOctets2(pkt, base::ByteSwap(attr_len)); in PushMediaElementItem()
/system/bt/stack/include/
Dsdp_api.h429 uint32_t attr_len, uint8_t* p_val);