/external/bluetooth/bluedroid/stack/sdp/ |
D | sdp_discovery.c | 786 UINT32 seq_len, attr_len; in save_attr_seq() local 820 p = sdpu_get_len_from_type (p, type, &attr_len); in save_attr_seq() 821 if (((type >> 3) != UINT_DESC_TYPE) || (attr_len != 2)) in save_attr_seq() 823 SDP_TRACE_WARNING ("SDP - Bad type: 0x%02x or len: %d in attr_rsp", type, attr_len); in save_attr_seq() 899 UINT32 attr_len; in add_attr() local 910 p = sdpu_get_len_from_type (p, type, &attr_len); in add_attr() 912 attr_len &= SDP_DISC_ATTR_LEN_MASK; in add_attr() 916 if (attr_len > 4) in add_attr() 917 total_len = attr_len - 4 + (UINT16)sizeof (tSDP_DISC_ATTR); in add_attr() 930 p_attr->attr_len_type = (UINT16)attr_len | (attr_type << 12); in add_attr() [all …]
|
D | sdp_db.c | 399 UINT32 attr_len, UINT8 *p_val) in SDP_AddAttribute() argument 416 UINT32 len = (attr_len > 200) ? 200 : attr_len; in SDP_AddAttribute() 424 handle,attr_id,attr_type,attr_len,p_val,num_array); in SDP_AddAttribute() 429 handle,attr_id,attr_type,attr_len,p_val,*p_val); in SDP_AddAttribute() 434 handle,attr_id,attr_type,attr_len,p_val,p_val); in SDP_AddAttribute() 474 p_attr->len = attr_len; in SDP_AddAttribute() 476 if (p_rec->free_pad_ptr + attr_len >= SDP_MAX_PAD_LEN) in SDP_AddAttribute() 482 attr_len, SDP_MAX_PAD_LEN - p_rec->free_pad_ptr ); in SDP_AddAttribute() 484 attr_len = SDP_MAX_PAD_LEN - p_rec->free_pad_ptr; in SDP_AddAttribute() 489 attr_len = 0; in SDP_AddAttribute() [all …]
|
D | sdp_utils.c | 487 UINT32 list_len, attr_len; in sdpu_extract_attr_seq() local 536 attr_len = 2; in sdpu_extract_attr_seq() 539 attr_len = 4; in sdpu_extract_attr_seq() 542 BE_STREAM_TO_UINT8 (attr_len, p); in sdpu_extract_attr_seq() 545 BE_STREAM_TO_UINT16 (attr_len, p); in sdpu_extract_attr_seq() 548 BE_STREAM_TO_UINT32 (attr_len, p); in sdpu_extract_attr_seq() 556 if (attr_len == 2) in sdpu_extract_attr_seq() 561 else if (attr_len == 4) in sdpu_extract_attr_seq() 774 UINT16 attr_len = SDP_DISC_ATTR_LEN (p_attr->attr_len_type); in sdpu_compare_uuid_with_attr() local 777 if (p_btuuid->len != attr_len) in sdpu_compare_uuid_with_attr() [all …]
|
D | sdp_server.c | 330 UINT16 attr_len; in process_service_attr_req() local 438 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_attr_req() 446 if (p_ccb->cont_info.attr_offset != attr_len) in process_service_attr_req() 451 else if (rem_len < attr_len) /* Not enough space for attr... so add partially */ in process_service_attr_req() 453 if (attr_len >= SDP_MAX_ATTR_LEN) in process_service_attr_req() 455 … SDP_TRACE_ERROR("SDP attr too big: max_list_len=%d,attr_len=%d", max_list_len, attr_len); in process_service_attr_req() 587 UINT16 seq_len, attr_len; in process_service_search_attr_req() local 709 attr_len = sdpu_get_attrib_entry_len(p_attr); in process_service_search_attr_req() 717 if (p_ccb->cont_info.attr_offset != attr_len) in process_service_search_attr_req() 725 else if (rem_len < attr_len) /* Not enough space for attr... so add partially */ in process_service_search_attr_req() [all …]
|
/external/wpa_supplicant_8/src/p2p/ |
D | p2p_parse.c | 311 u16 attr_len; in p2p_parse_p2p_ie() local 316 attr_len = WPA_GET_LE16(pos + 1); in p2p_parse_p2p_ie() 318 pos[0], attr_len); in p2p_parse_p2p_ie() 319 if (pos + 3 + attr_len > end) { in p2p_parse_p2p_ie() 322 attr_len, (int) (end - pos - 3)); in p2p_parse_p2p_ie() 326 if (p2p_parse_attribute(pos[0], pos + 3, attr_len, msg)) in p2p_parse_p2p_ie() 328 pos += 3 + attr_len; in p2p_parse_p2p_ie()
|
/external/wpa_supplicant_8/src/eap_common/ |
D | eap_sim_common.c | 1053 int attr_len = 2 + len; in eap_sim_msg_add_full() local 1060 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add_full() 1061 attr_len += pad_len; in eap_sim_msg_add_full() 1062 if (wpabuf_resize(&msg->buf, attr_len)) in eap_sim_msg_add_full() 1066 wpabuf_put_u8(msg->buf, attr_len / 4); in eap_sim_msg_add_full() 1077 int attr_len = 4 + len; in eap_sim_msg_add() local 1084 pad_len = (4 - attr_len % 4) % 4; in eap_sim_msg_add() 1085 attr_len += pad_len; in eap_sim_msg_add() 1086 if (wpabuf_resize(&msg->buf, attr_len)) in eap_sim_msg_add() 1090 wpabuf_put_u8(msg->buf, attr_len / 4); in eap_sim_msg_add()
|
/external/libpcap/ |
D | pcap-netfilter-linux.c | 145 int attr_len = nlh->nlmsg_len - NLMSG_ALIGN(HDR_LENGTH); in netfilter_read_linux() local 147 while (NFA_OK(attr, attr_len)) { in netfilter_read_linux() 169 attr = NFA_NEXT(attr, attr_len); in netfilter_read_linux()
|
/external/e2fsprogs/lib/blkid/ |
D | probe.c | 689 int mft_record_size, attr_off, attr_len; in probe_ntfs() local 752 attr_len = blkid_le16(attr->len); in probe_ntfs() 757 attr_off += attr_len; in probe_ntfs() 760 (attr_len == 0)) in probe_ntfs()
|
/external/bluetooth/bluedroid/stack/include/ |
D | sdp_api.h | 484 UINT8 attr_type, UINT32 attr_len,
|
/external/javassist/src/main/javassist/bytecode/ |
D | CodeAttribute.java | 100 int attr_len = in.readInt(); in CodeAttribute() local
|
/external/wpa_supplicant_8/src/ap/ |
D | wps_hostapd.c | 306 size_t attr_len) in hapd_new_ap_event() argument 308 size_t blen = attr_len * 2 + 1; in hapd_new_ap_event() 311 wpa_snprintf_hex(buf, blen, attr, attr_len); in hapd_new_ap_event()
|