Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/stack/sdp/
Dsdp_discovery.cc297 uint32_t attr_len; in add_attr() local
308 p = sdpu_get_len_from_type(p, p_end, type, &attr_len); in add_attr()
309 if (p == NULL || (p + attr_len) > p_end) { in add_attr()
313 attr_len &= SDP_DISC_ATTR_LEN_MASK; in add_attr()
317 if (attr_len > 4) in add_attr()
318 total_len = attr_len - 4 + (uint16_t)sizeof(tSDP_DISC_ATTR); in add_attr()
322 p_attr_end = p + attr_len; in add_attr()
336 p_attr->attr_len_type = (uint16_t)attr_len | (attr_type << 12); in add_attr()
342 if ((is_additional_list != 0) && (attr_len == 2)) { in add_attr()
369 switch (attr_len) { in add_attr()
[all …]
Dsdp_db.cc255 uint32_t attr_len, uint8_t* p_val) { in SDP_AddAttribute() argument
275 uint32_t len = (attr_len > MAX_ARR_LEN) ? MAX_ARR_LEN : attr_len; in SDP_AddAttribute()
285 handle, attr_id, attr_type, attr_len, fmt::ptr(p_val), num_array); in SDP_AddAttribute()
290 handle, attr_id, attr_type, attr_len, fmt::ptr(p_val), *p_val); in SDP_AddAttribute()
293 if (p_val[attr_len - 1] == '\0') { in SDP_AddAttribute()
297 handle, attr_id, attr_type, attr_len, fmt::ptr(p_val), in SDP_AddAttribute()
303 handle, attr_id, attr_type, attr_len, fmt::ptr(p_val)); in SDP_AddAttribute()
308 handle, attr_id, attr_type, attr_len, fmt::ptr(p_val)); in SDP_AddAttribute()
324 return SDP_AddAttributeToRecord(p_rec, attr_id, attr_type, attr_len, in SDP_AddAttribute()
445 uint8_t attr_type, uint32_t attr_len, in SDP_AddAttributeToRecord() argument
[all …]
Dsdp_server.cc456 uint16_t attr_len; in process_service_attr_req() local
588 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_attr_req()
591 if (attr_len < p_ccb->cont_info.attr_offset) { in process_service_attr_req()
601 if (p_ccb->cont_info.attr_offset != attr_len) in process_service_attr_req()
606 attr_len) /* Not enough space for attr... so add partially */ in process_service_attr_req()
608 if (attr_len >= SDP_MAX_ATTR_LEN) { in process_service_attr_req()
610 max_list_len, attr_len); in process_service_attr_req()
831 uint16_t seq_len, attr_len; in process_service_search_attr_req() local
980 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_search_attr_req()
983 if (attr_len < p_ccb->cont_info.attr_offset) { in process_service_search_attr_req()
[all …]
Dsdp_utils.cc876 uint32_t list_len, attr_len; in sdpu_extract_attr_seq() local
927 attr_len = 2; in sdpu_extract_attr_seq()
930 attr_len = 4; in sdpu_extract_attr_seq()
934 BE_STREAM_TO_UINT8(attr_len, p); in sdpu_extract_attr_seq()
938 BE_STREAM_TO_UINT16(attr_len, p); in sdpu_extract_attr_seq()
942 BE_STREAM_TO_UINT32(attr_len, p); in sdpu_extract_attr_seq()
950 if (p + attr_len > p_end_list) return NULL; in sdpu_extract_attr_seq()
951 if (attr_len == 2) { in sdpu_extract_attr_seq()
955 } else if (attr_len == 4) { in sdpu_extract_attr_seq()
1360 uint16_t attr_len = sdpu_get_attrib_entry_len(p_attr); in sdpu_build_partial_attrib_entry() local
[all …]
Dsdpint.h289 uint8_t attr_type, uint32_t attr_len,
/packages/modules/Bluetooth/system/packet/avrcp/
Dget_folder_items.cc228 uint16_t attr_len = attr_val.size(); in PushMediaElementItem() local
230 AddPayloadOctets2(pkt, base::ByteSwap(attr_len)); in PushMediaElementItem()
/packages/modules/Bluetooth/system/stack/sdp/internal/
Dsdp_api.h279 uint32_t attr_len, uint8_t* p_val);
/packages/modules/Bluetooth/system/stack/include/
Dsdp_api.h354 uint8_t attr_type, uint32_t attr_len,